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 . |
Welcome to LQ.
Quote:
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 - |
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. |
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 - |
solved
thanks a lot all problems solved :) :hattip:
|
All times are GMT -5. The time now is 01:48 AM. |