Problem in installing CISL's NCL due to shared libraries: libbz2.so.1.0
Hi
I have i686 machine with centos 6.I am trying to install CISL's NCAR Command Language but problem arises due to libbz2.so.1.0 on giving command I get, [root@tu-localhos Desktop]# 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: libbz2.so.1.0: cannot open shared object file: No such file or directory ncl failed. so I tried to locate libbz2.so.1.0 and I got [root@tu-localhost Desktop]# locate libbz2.so.1.0 /lib/libbz2.so.1.0.4 Sangeeta Maharjan |
CentOS 6, bzip2-libs-1.0.5-*
Providing : /lib/libbz2.so.1 ,/lib/libbz2.so.1.0.4 You can just add the symlink "libbz2.so.1.0" : 1) cd lib/ 2) su 3) ln -s libbz2.so.1.0.4 libbz2.so.1.0 . |
Quote:
[root@tu-localhost Desktop]# ln -s /lib/libbz2.so.1.0.4 /lib/libbz2.so.1.0 ln: creating symbolic link `/lib/libbz2.so.1.0': File exists Sorry, I didn't understand u well.do I need to download bzip2-libs-1.0.5-* and I have no idea about symlink so I try to find it Thanks, Sangeeta Maharjan |
hi Knudfl,
I have Downloaded bzip2-libs-1.0.5-7.el6_0.i686.rpm and installed it but again my ncl didnot worke well so I removed it.To my surprise ,I get following messages 1st command-> [root@tu-localhost Downloads]# rpm -q bzip2-libs-1.0.5-7.el6_0.i686.rpm package bzip2-libs-1.0.5-7.el6_0.i686.rpm is not installed 2nd command -> [root@tu-localhost Downloads]# rpm -i bzip2-libs-1.0.5-7.el6_0.i686.rpm package bzip2-libs-1.0.5-7.el6_0.i686 is already installed 3rd command-> [root@tu-localhost Downloads]# rpm -q bzip2-libs-1.0.5-7.el6_0.i686.rpm package bzip2-libs-1.0.5-7.el6_0.i686.rpm is not installed 4th command -> [root@tu-localhost Downloads]# rpm -i bzip2-libs-1.0.5-7.el6_0.i686.rpm package bzip2-libs-1.0.5-7.el6_0.i686 is already installed Thanks, Sangeeta Maharjan |
You are not supposed to install anything with # rpm -i
'rpm -i ' is for the exceptions, where you want two versions of a library. And from the beginning you already had the correct package. ( The system command for package install is # rpm -Uvh ) For all package install, please use yum, if possible. rpm -q bzip2-libs-1.0.5-7.el6_0.i686.rpm : Not a valid package name. The package name can be verified with : $ rpm -qa | grep bzip2-libs Post # 1 says you have : /lib/libbz2.so.1.0.4 Then it's simply # ln -s libbz2.so.1.0.4 libbz2.so.1.0 . |
Quote:
It worked, rpm -Uvh bzip2-libs-1.0.5-7.el6_0.i686.rpm [root@tu-localhost Desktop]# locate libbz2.so.1.0 /lib/libbz2.so.1.0 /lib/libbz2.so.1.0.4 But another thing I didnt understand is while giving command ng4ex gsun01n it worked but didn't get [root@tu-localhost Desktop]# to go further [root@tu-localhost Desktop]# 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... Copyright (C) 1995-2012 - All Rights Reserved University Corporation for Atmospheric Research NCAR Command Language Version 6.1.0-beta The use of this software is governed by a License Agreement. See http://www.ncl.ucar.edu/ for more details. Thanks, Sangeeta Maharjan |
Quote:
[root@tu-bjoe5p8o88wl Desktop]# 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... Copyright (C) 1995-2012 - All Rights Reserved University Corporation for Atmospheric Research NCAR Command Language Version 6.1.0-beta The use of this software is governed by a License Agreement. See http://www.ncl.ucar.edu/ for more details. Finished running 'ncl < gsun01n'... But again I encountered the problem in next command [root@tu-bjoe5p8o88wl Desktop]# ncargex cpex08 -clean NCAR Graphics Fortran Example <cpex08> Copying cpex08.f Copying cpexcc.f Compiling and linking... gfortran -fPIC -fno-second-underscore -fno-range-check -O -o cpex08 cpexcc.f cpex08.f -L/usr/local/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lXrender -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lbz2 -lpthread /usr/bin/ld: cannot find -lexpat collect2: ld returned 1 exit status The compile and link failed. Sangeeta Maharjan |
# 6
User commands are not supposed to be run as root. Your "user command" examples : [root@tu-localhos Desktop]# ng4ex gsun01n [root@tu-localhost Desktop]# locate libbz2.so.1.0 [root@tu-localhost Downloads]# rpm -q bzip2-libs-1.0.5-7.el6_0.i686.rpm [root@tu-localhost Desktop]# locate libbz2.so.1.0 They can all be run as unprivileged user. And : The most "GUI applications commands" will not work as root. Please try the "ng4ex gsun01n command" as unprivileged user. Root is for administrative tasks only. And using root is unsafe. . |
# 7
Quote:
$ yum provides */libexpat.so # yum install libexpat-devel EDIT : # yum install expat-devel . |
Quote:
I have downloaded expat-devel-2.0.1-11.el6_2.i686.rpm. [root@localhost Downloads]# rpm -Uvh expat-devel-2.0.1-11.el6_2.i686.rpm error: Failed dependencies: expat = 2.0.1-11.el6_2 is needed by expat-devel-2.0.1-11.el6_2.i686 --------------------------------------------------------------------------- [root@localhost Downloads]# yum install libexpat-devel Loaded plugins: fastestmirror, refresh-packagekit Loading mirror speeds from cached hostfile * base: ftp.iitm.ac.in * extras: ftp.iitm.ac.in * updates: ftp.iitm.ac.in http://ftp.iitm.ac.in/centos/6.3/ext...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://virror.hanoilug.org/centos/6....ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirrors.vonline.vn/centos/6.3...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://centos.aol.in/6.3/extras/i386...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirror-fpt-telecom.fpt.net/ce...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirrors.digipower.vn/centos/6...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirrors.fibo.vn/centos/6.3/ex...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirror.vpshosting.com.hk/pub/...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://centos.communilink.net/6.3/ex...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://centos.01link.hk/6.3/extras/i...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://centos-hn.viettelidc.com.vn/6...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://centos-hcm.viettelidc.com.vn/...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirror.sunnyvision.com/centos...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirror.vietoss.com/CentOS/6.3...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://ftp.cuhk.edu.hk/pub/Linux/cen...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirrors.ispros.com.bd/centos/...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirrors.hns.net.in/centos/6.3...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://centos.uhost.hk/6.3/extras/i3...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://centosmirror.go4hosting.in/ce...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. ftp://glug.nith.ac.in/centos/6.3/ext...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://ftp.iitm.ac.in/centos/6.3/upd...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://virror.hanoilug.org/centos/6....ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://centos.aol.in/6.3/updates/i38...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirror-fpt-telecom.fpt.net/ce...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirrors.digipower.vn/centos/6...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirrors.tuna.tsinghua.edu.cn/...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirrors.fibo.vn/centos/6.3/up...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirror.vpshosting.com.hk/pub/...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://centos.communilink.net/6.3/up...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirror.nus.edu.sg/centos/6.3/...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirror.neu.edu.cn/centos/6.3/...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://centos-hn.viettelidc.com.vn/6...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://centos-hcm.viettelidc.com.vn/...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirror.sunnyvision.com/centos...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirror.vietoss.com/CentOS/6.3...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://ftp.cuhk.edu.hk/pub/Linux/cen...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirrors.ispros.com.bd/centos/...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://mirrors.hns.net.in/centos/6.3...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. http://centosmirror.go4hosting.in/ce...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. ftp://ftp.oss.eznetsols.org/linux/ce...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - "" Trying other mirror. Setting up Install Process No package libexpat-devel available. Error: Nothing to do I will try to migrate in unprivileged user as soon as I set all the environment variables. Thank you, Sangeeta Maharjan. |
# 10
It looks like you have no Internet connection ? Or that something in the network setup in preventing the connection. |
Quote:
|
# 12
Note : Generally, please do not quote complete posts. That's only making the thread more or less unreadable. Dependencies for expat-devel : expat > expat-2.0.1-11.el6_2.i686.rpm > http://mirror.centos.org/centos/6.3/os/i386/Packages/ > http://mirror.centos.org/centos/6.3/...el6_2.i686.rpm . |
Quote:
then yum install expat [root@tu-localhost Downloads]# ncargex cpex08 -clean NCAR Graphics Fortran Example <cpex08> Copying cpex08.f Copying cpexcc.f Compiling and linking... gfortran -fPIC -fno-second-underscore -fno-range-check -O -o cpex08 cpexcc.f cpex08.f -L/usr/local/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lXrender -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lbz2 -lpthread /usr/bin/ld: cannot find -lexpat collect2: ld returned 1 exit status The compile and link failed. Sangeeta Maharjan |
Knudlf,
I have 2 unprivileged users. In order to run NCL in every unprivileged users, do I have to set all environment variables in all of them or do we have some method to manage it from the superuser(root). Thank you, Sangeeta Maharjan |
# 13
I don't know. And I don't know the NCL program. But if it's only two users, it shouldn't be that time consuming to set up both. Save a text backup for the first. And reuse the most of the settings for "number 2". . |
I have recently installed pixman-devel-0.18.4-1.el6_0.1.i686.rpm and
cairo-devel-1.8.8-3.1.el6.i686.rpm along with expat-2.0.1-11.el6_2.i686.rpm but still could not run the command ncargex cpex08 -clean. [root@tu-localhost Downloads]# ncargex cpex08 -clean NCAR Graphics Fortran Example <cpex08> Copying cpex08.f Copying cpexcc.f Compiling and linking... gfortran -fPIC -fno-second-underscore -fno-range-check -O -o cpex08 cpexcc.f cpex08.f -L/usr/local/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lXrender -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lbz2 -lpthread /usr/bin/ld: cannot find -lexpat collect2: ld returned 1 exit status The compile and link failed. Thanks, Sangeeta Maharjan |
# 17
Quote:
Quote:
|
Hi Knudlf,
Thanks for your valued information and suggestion to solve my problem.Now NCL has installed succesfully. Sangeeta Maharjan. |
libbz2
hi dear
i have a problem same as frist problem of cent_sangeeta but my system is linux fedore 16 arch i686 when i run NCL by typing: [code] ng4ex gsun01n -clean it reply: ng4ex gsun01n -clean 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: libbz2.so.1.0: cannot open shared object file: No such file or directory ncl failed. “ there for i “locate libbz2.so.1.0” it reply : /lib/libbz2.so.1.0.6 and i set : export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib in .bashrc file. how i can solve following error due to libbz2.so.1.0 thanks fereshte |
# 20, @fereshteh : Welcome to LQ.
Quote:
- |
dont solve
dear
it made me crazy i use yum install bzip2-lib and yum reinstall bzip2-lib yum install bzip2-devel but when type :ls /lib | grep libbz2 libbz2.so.1 libbz2.so.1.0.6 and again does not have libbz2.so.1.0 what can i do? please help me |
wow
oh thanks
fortunatlly when i use cd /lib/ ; # ln -s libbz2.so.1.0.6 libbz2.so.1.0 libbz2.so.1.0 appear in /bin/ what does this command do? please tell me , it makes me surprise. |
# 23.
Delete the link in /bin/ . And redo with : 1) su 2) cd /lib/ 3) ln -s libbz2.so.1.0.6 libbz2.so.1.0 The command 'ln -s' creates a symlink. See $ man ln http://linux.about.com/od/commands/l/blcmdl1_ln.htm - |
you mean that there was libbz2.so.1.0 in other place than /bin/ in my system and ln -s link that with libbz2.so.1.0.6 that located in /bin/ ?
there fore if libbz2.so.1.0 was not on my system this camman (ln -s) did not work? |
# 25 .
There are not supposed to be any libraries at all in /bin/. And neither will libraries be found, if located in /bin/. /bin/ is not in the LD_LIBRARY_PATH, and shouldn't be. - |
you are on right. but i want to know that, if "ln -s .."create libbz2.so.1.0 in /bin/ or its task is just linking two libraries that were located previously? this quesion is because at first i did not have mentioned library in /bin/. and suddenly it was seen in home directory.
|
# 27 .
$ pwd : If your location is /home/name/, and you type ... $ ln -s libbz2.so.1.0.6 libbz2.so.1.0 .. you can then test with .. $ ls -l libbz2.so.1.0 : And get this reply .. lrwxrwxrwx 1 name name <date> <time> libbz2.so.1.0 -> libbz2.so.1.0.6 .. and observe that libbz2.so.1.0 and libbz2.so.1.0.6 are blinking red to tell that it's not a valid link. - |
All times are GMT -5. The time now is 07:34 AM. |