[ncl-install] install PyNIO to read hdf files
Alberti, Andrea
alberti3 at illinois.edu
Thu Jul 14 13:10:32 MDT 2016
Hi,
my name is Andrea Alberti and I am interested in your packages in order to be able to print form hdf files.
openID: https://www.earthsystemgrid.org/myopenid/andrea.alberti88
I am running my code in a cluster and then I simply would like to read (and plot) the hdf files in my machine (MacBook, where I have Anaconda for OS X with PYTHON 2.7).
Following the instructions, I downloaded the precompiled binaries for NCL and I used conda for PyNIO (i.e. conda install -c ncar pynio).
1) I have NCL in:
/Users/andrea/WORKSPACE/ncl_ncarg-6.2.1.MacOS_10.9_64bit_nodap_gcc481
2) I added in the .bash_profile:
export NCARG_ROOT=/Users/andrea/WORKSPACE/ncl_ncarg-6.2.1.MacOS_10.9_64bit_nodap_gcc481
export PATH=$NCARG_ROOT/bin:$PATH
export DISPLAY=:0.0
export DISPLAY=128.117.14.12:0
export DISPLAY=localhost:13.0
3) then, after source ~/.bash_profile, I close the terminal and I open a new one.
4)
which gcc
/Users/andrea/anaconda2/bin/gcc
gcc --version
gcc (GCC) 4.8.5
5) If I try the test:
ng4ex gsun01n
I obtain the error:
dyld: Library not loaded: /usr/local/lib/libgomp.1.dylib
Referenced from: /Users/andrea/WORKSPACE/ncl_ncarg-6.2.1.MacOS_10.9_64bit_nodap_gcc481/bin/ncargpath
Reason: image not found
6) According to the error page, I try to use MacPort to install gcc48
sudo port install gcc48
(but I obtain an error), so I try:
sudo port install gcc49
(and everything is ok)
7) At this point I have libgomp.1.dylib in /usr/local/lib/gcc/4.9/
QUESTION: I do not know what to do now. I guess that when I run "ng4ex gsun01n", NCL should be linked with /usr/local/lib/gcc/4.9/ and look for libgomp.1.dylib (and other libraries) in /usr/local/lib/gcc/4.9/ (instead of /usr/local/lib/)
Thanks in advance for the help,
Andrea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20160714/4bb58169/attachment.html
More information about the ncl-install
mailing list