[ncl-install] problem running graphics
Mary Haley
haley at ucar.edu
Thu Jul 29 16:29:09 MDT 2010
Hi Craig,
Thanks for the helpful email on this. I thought I had this covered at:
http://www.ncl.ucar.edu/Download/linux.shtml#InstallSoftware
Are there additional commands you have to run other than the ones mentioned here? I'm not familiar with administering a LINUX system,
so I'm not sure what the latest requirements are for installing the X11 development libraries.
--Mary
On Jul 29, 2010, at 9:52 AM, Craig Miller wrote:
> Mary
>
> I hope you don't mind revisiting an old thread, but I've just encountered a similar problem to the one that Ben had. In my case I definitely had the X11 libraries installed, because I could successfully execute the command 'ng4ex gsun01n' and get an X11 window. On trying to execute the command 'ncargex cpex08' however I ended up with the same error that Ben had. Trying your suggestion to use the '-L' option to specify the location of the libXext library also failed.
>
> The problem appears to be that many Linux distributions only have the library components needed to run X11 applications. If you want to compile code that includes the X11 libraries you have to make sure that you have also downloaded the associated development packages in addition to the standard library packages. In my case downloading and installing the libXext development package solved the problem.
>
> Craig
>
> Mary Haley wrote:
>> 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
>>
More information about the ncl-install
mailing list