>
> Help !!!
>
> I just installed NCAR Graphics version 4.1.1 under linux and I have a
> problem when try to check the installation with the following command :
>
> [root@neblina ~]# ncargex example
>
> NCAR Graphics Fortran Example <example>
>
> Copying example.f
>
> Compiling and linking...
> g77 -o example example.f -L/ncar/usr/local/ncarg/lib -L/usr/X11R6/lib
> -L/usr/local/lib -lncarg -lncarg_gks -lncarg_c -lX11
> /usr/bin/ld: cannot open -lX11: Arquivo ou diretório não encontrado
> collect2: ld returned 1 exit status
> .
> .
> .
> yoshihiro yamazaki
Dear Yoshihiro Yamazaki,
While I'm not sure what "Arquivo ou diretório não encontrado"
translates to in English, I'm guessing that this error message is
indicating that the compiler cannot find the X11 library on your
system. On our Linux system, the X11 library is in /usr/X11R6/lib,
hence the "-L/usr/X11R6/lib" option that you see on the command line.
You can try one of two things:
1. Try to find the X11 library on your system, and then modify the
files $NCARG_ROOT/bin/ncargcc and $NCARG_ROOT/bin/ncargf77 and
change "-L/usr/X11R6/lib" to this new path.
2. If you can't find the X11 library, then you can try compiling your
NCAR Graphics codes without using the X11 library. In doing this,
you can only send your output to an NCGM, and not an X11 window.
To try this option, add the option "-nox11" whenever you
invoke "ncargex", "ncargf77", or "ncargcc". For example:
ncargex -nox11 example
ncargf77 -nox11 example.f
The best option is #1, so this way you can send your output to an X11
window.
Hope this gets you up and running.
--Mary Haley
haley AT unknown
This archive was generated by hypermail 2b29 : Wed Jun 27 2001 - 08:55:12 MDT