[ncl-install] install open-dap enabled/ 64 bit ubuntu 12.04
Sam McClatchie
sam.mcclatchie at noaa.gov
Sun May 20 20:58:56 MDT 2012
Hello
I've recently done a clean install of Ubuntu 12.04 on a 64 bit machine
and decided to try to get the open-dap enabled NCL working (I got NCL
running previously but without open-dap, which I need).
I am having what looks to be an architecture-related problem with some
of the libraries. Please take a look at the attached documentation of my
install process and let me know if I have done something silly.
If the attachment does not reach the list, I will copy and resend.
Thanks
Sam
--
Sam McClatchie,
Supervisory oceanographer, Fisheries oceanography
Southwest Fisheries Science Center, NOAA,
8604 La Jolla Shores Drive
La Jolla, CA 92037-1508, U.S.A.
email<Sam.McClatchie at noaa.gov>
Cellular: 858 752 8495
Research home page<www.fishocean.info>
/\
...>><xX(¡>
//// \\\\
<¡)Xx><<
///// \\\\\\
><(((¡>
>><(((¡> ...>><xX(¡>O<¡)Xx><<
-------------- next part --------------
### test installation of open-dap enabled binary
smcc at nakrasana:/data/Dropbox/dynamic_data/projects2012/visualization/ncl$ ng4ex gsun01n
NCAR Graphics NCL Example <gsun01n>
This example was set up to display the output to an
X11 window.
Copying gsun01n.ncl
Running NCL...
ncl: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory
ncl failed.
### check that openSSL is installed
smcc at nakrasana:/data/Dropbox/dynamic_data/projects2012/visualization/ncl$ sudo apt-get install openssl
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssl is already the newest version.
### look for the missing library
smcc at nakrasana:/data/Dropbox/dynamic_data/projects2012/visualization/ncl$ locate libssl.so.0.9.8
/lib/i386-linux-gnu/libssl.so.0.9.8
/opt/Adobe/Reader9/Reader/intellinux/lib/libssl.so.0.9.8
/opt/mendeleydesktop/lib/ssl/libssl.so.0.9.8
/usr/lib/i386-linux-gnu/libssl.so.0.9.8
/var/lib/dropbox/.dropbox-dist/libssl.so.0.9.8
smcc at nakrasana:/data/Dropbox/dynamic_data/projects2012/visualization/ncl$
### determine the shell
smcc at nakrasana:/data/Dropbox/dynamic_data/projects2012/visualization/ncl$ ps -p $$
PID TTY TIME CMD
9300 pts/1 00:00:00 bash
### set the ld_library_path to a 32-bit library location
smcc at nakrasana:/data/Dropbox/dynamic_data/projects2012/visualization/ncl$ export LD_LIBRARY_PATH=/usr/lib/i386-linux-gnu
smcc at nakrasana:/data/Dropbox/dynamic_data/projects2012/visualization/ncl$ echo $LD_LIBRARY_PATH
/usr/lib/i386-linux-gnu
### close terminal, open new terminal, check $LD_LIBRARY_PATH variable
smcc at nakrasana:~$ echo $LD_LIBRARY_PATH
smcc at nakrasana:~$
path is lost!
### add shell variables to end of ~/.bashrc
# settings for NCL smcc 5/20/2012
export NCARG_ROOT=/usr/share
export PATH=$NCARG_ROOT/bin:$PATH
export LD_LIBRARY_PATH=/usr/lib/i386-linux-gnu
### close terminal, open new terminal, check $LD_LIBRARY_PATH variable
smcc at nakrasana:~$ echo $NCARG_ROOT
/usr/share
smcc at nakrasana:~$ echo $LD_LIBRARY_PATH
/usr/lib/i386-linux-gnu
smcc at nakrasana:~$
### test the installation again
smcc at nakrasana:/data/Dropbox/dynamic_data/projects2012/visualization/ncl$ ng4ex gsun01n
NCAR Graphics NCL Example <gsun01n>
This example was set up to display the output to an
X11 window.
Copying gsun01n.ncl
Running NCL...
ncl: error while loading shared libraries: libssl.so.0.9.8: wrong ELF class: ELFCLASS32
ncl failed.
### suggests a problem with the architecture
smcc at nakrasana:/data/Dropbox/dynamic_data/projects2012/visualization/ncl$ uname -m
x86_64
smcc at nakrasana:/data/Dropbox/dynamic_data/projects2012/visualization/ncl$ gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
I used the ncl_?ncarg-?6.?0.?0.?Linux_?Debian_?x86_?64_?gcc445.?tar.?gz binary.
Was this the wrong one?
More information about the ncl-install
mailing list