[ncl-install] problem running graphics
Mary Haley
haley at ucar.edu
Thu Jul 2 09:02:18 MDT 2009
Ben,
You don't appear to have the X11 libraries installed on your system.
Either that, or they are
not installed to /usr/X11R6/lib.
I *think* you can compile without X11, but then you will not be able
to send your output
to an X11 window. Try:
ncargex -noX11 cpex08
For the longer term, I recommend getting the X11 libraries installed
on your system.
If you do have the X11 libraries (libX11.a, libXext.a, etc) already on
your system,
then use the "-L" option to point to this location, and compile the
program with:
gfortran -fPIC -fno-second-underscore -fno-range-check -O -o cpex08
cpexcc.f cpex08.f -L/usr/local/lib -L/path/to/X11/libs -lncarg -
lncarg_gks -lncarg_c -lX11 -lXext -lpng -lz
where "/path/to/X11/libs" should be replaced by the path to your X11
libraries.
--Mary
On Jul 2, 2009, at 7:07 AM, Benjamin Laken wrote:
> I am having some trouble getting the NCL graphics runnng.
> Upon running the test 'ncargex cpex08' i get the following error.
>
> 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 -L/usr/X11R6/lib -lncarg -
> lncarg_gks
> -lncarg_c -lX11 -lXext -lpng -lz
> /usr/bin/ld: cannot find -lXext
> collect2: ld returned 1 exit status
>
> The compile and link failed
>
> --Anyone got any suggestions?
>
> Thanks in advance,
> --Ben
> //
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
More information about the ncl-install
mailing list