LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-28-2013, 02:47 AM   #1
saurabhsingh123op
LQ Newbie
 
Registered: Feb 2013
Posts: 8

Rep: Reputation: Disabled
Unhappy NCl installation problem


[cee@localhost ~]$ ncargex cpex08

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/ncl/lib -L/usr/X11R6/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lpthread -lbz2 -lXrender
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status

The compile and link failed.

[cee@localhost ~]$ lx11
bash: lx11: command not found

one of my friend using the same commands is able to compile it well but its not happening on my desktop...suggestion please .
 
Old 02-28-2013, 03:01 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Welcome to LQ.
Quote:
/usr/bin/ld: cannot find -lX11
'-lX11' : Means libX11.so

Please install the libX11 development package.
I.e. all packages required for compiling files / apps must be (lib)<name>-dev(el)

Ubuntu, Debian : apt-get install libx11-dev
Fedora, CentOS : yum install libX11-devel

*** Note : You will need all the other libs too :
-lXext -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lpthread -lbz2 -lXrender

-

Last edited by knudfl; 02-28-2013 at 03:02 AM.
 
Old 02-28-2013, 03:25 AM   #3
saurabhsingh123op
LQ Newbie
 
Registered: Feb 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Question error in bz2

i get the following error
[root@localhost lib]# sudo yum install libbz2-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.internode.on.net
* extras: ftp.swin.edu.au
* updates: ftp.swin.edu.au
Setting up Install Process
No package libbz2-devel available.
 
Old 02-28-2013, 04:38 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Which Fedora / CentOS etc. are you using ?

Finding a package : yum search <name> ( or part of name.)

Finding the package name that provides <file name> :
yum provides */libbz2.so

# yum install bzip2-devel

-
 
Old 02-28-2013, 04:54 AM   #5
saurabhsingh123op
LQ Newbie
 
Registered: Feb 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Smile solved

thanks a lot all problems solved
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problem in installing CISL's NCL due to shared libraries: libbz2.so.1.0 cent_sangeeta Linux - Software 27 07-11-2013 01:31 PM
LXer: Scientific Visualization with NCL LXer Syndicated Linux News 0 02-01-2013 03:40 AM
[SOLVED] Unresolvable Dependencies installing ncl and ncl-common rodyz Red Hat 4 04-04-2010 05:05 PM
Redhat/Linux Installation Support??? Is It Red hat installation problem??? wanux Red Hat 1 08-01-2006 11:32 PM
Fedora 5 Asus NCL-DS motherboard OggysDnis Linux - Hardware 0 06-02-2006 06:13 AM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration