Re: problem running graphics

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu Jul 29 2010 - 16:29:09 MDT

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
>>

_______________________________________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Thu Jul 29 16:29:15 2010

This archive was generated by hypermail 2.1.8 : Tue Aug 03 2010 - 15:12:09 MDT