LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 10-05-2012, 04:24 AM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,186

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367

# 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".

.
 
Old 10-08-2012, 05:37 AM   #17
cent_sangeeta
LQ Newbie
 
Registered: Sep 2012
Location: kathmandu,Nepal
Posts: 22

Original Poster
Rep: Reputation: Disabled
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
 
Old 10-08-2012, 06:06 AM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,186

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
# 17

Quote:
.. along with expat-2.0.1-11.el6_2.i686.rpm but still could not ..
Quote:
/usr/bin/ld: cannot find -lexpat
Please see post # 9 : Required is "expat-devel".
 
Old 10-11-2012, 06:19 AM   #19
cent_sangeeta
LQ Newbie
 
Registered: Sep 2012
Location: kathmandu,Nepal
Posts: 22

Original Poster
Rep: Reputation: Disabled
Hi Knudlf,
Thanks for your valued information and suggestion to solve my problem.Now NCL has installed succesfully.

Sangeeta Maharjan.
 
Old 07-09-2013, 02:10 AM   #20
fereshteh
LQ Newbie
 
Registered: Jul 2013
Posts: 24

Rep: Reputation: Disabled
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

Last edited by fereshteh; 07-09-2013 at 02:12 AM.
 
Old 07-09-2013, 03:41 AM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,186

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
# 20, @fereshteh : Welcome to LQ.
Quote:
error while loading shared libraries: libbz2.so.1.0: cannot open shared object file
cd /lib/ ; # ln -s libbz2.so.1.0.6 libbz2.so.1.0



-

Last edited by knudfl; 07-09-2013 at 03:43 AM.
 
Old 07-09-2013, 04:10 AM   #22
fereshteh
LQ Newbie
 
Registered: Jul 2013
Posts: 24

Rep: Reputation: Disabled
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
 
Old 07-09-2013, 04:17 AM   #23
fereshteh
LQ Newbie
 
Registered: Jul 2013
Posts: 24

Rep: Reputation: Disabled
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.
 
Old 07-09-2013, 04:25 AM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,186

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
# 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

-
 
Old 07-09-2013, 04:37 AM   #25
fereshteh
LQ Newbie
 
Registered: Jul 2013
Posts: 24

Rep: Reputation: Disabled
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?
 
Old 07-09-2013, 07:39 AM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,186

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
# 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.

-
 
Old 07-09-2013, 10:01 AM   #27
fereshteh
LQ Newbie
 
Registered: Jul 2013
Posts: 24

Rep: Reputation: Disabled
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.

Last edited by fereshteh; 07-09-2013 at 10:28 AM.
 
Old 07-11-2013, 12:31 PM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,186

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
# 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.

-
 
1 members found this post helpful.
  


Reply

Tags
ncar, ncl


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Shared Libraries miggety Linux - Newbie 9 06-08-2011 10:46 AM
[SOLVED] Unresolvable Dependencies installing ncl and ncl-common rodyz Red Hat 4 04-04-2010 04:05 PM
error while loading shared libraries... installing Midnight Commander Ook Debian 7 05-09-2008 04:57 PM
Problem placing shared libraries iali Linux - General 1 02-01-2006 10:18 PM
[B]Shared libraries problem, help please[/B] turalo Linux - Software 3 12-25-2005 12:22 PM


All times are GMT -5. The time now is 03:41 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration