LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   NCl installation problem (https://www.linuxquestions.org/questions/linux-newbie-8/ncl-installation-problem-4175452029/)

saurabhsingh123op 02-28-2013 01:47 AM

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 .

knudfl 02-28-2013 02:01 AM

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

-

saurabhsingh123op 02-28-2013 02:25 AM

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.

knudfl 02-28-2013 03:38 AM

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

-

saurabhsingh123op 02-28-2013 03:54 AM

solved
 
thanks a lot all problems solved :) :hattip:


All times are GMT -5. The time now is 01:48 AM.