GrADS on Ubuntu Linux

Arlindo da Silva dasilva at ALUM.MIT.EDU
Tue Sep 9 21:10:50 EDT 2008


All,

  I'd like to share some of my experience building GrADS v2.0.a3 on Ubuntu,
more precisely:

- Linux Niteroi 2.6.24-19-generic #1 SMP Fri Jul 11 21:01:46 UTC 2008
x86_64 GNU/Linux
- gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)

Using the supplibs-2.0.1, if you "configure --without-gui"  and "make" you
obtain grads and gradsdap executables as usual . However, they coredump when
opening a netcdf file. I was able to trace this problem to the compilation
of "gasdf.c". By default all is compiled with flags "-g -O2". However,
gasdf.c needs to be compiled without the "-O2". This appears to be an issue
associated with gcc 4.2 on x86_64. Jennifer's Ubuntu build uses gcc 4.1 and
does not have this problem.

  Has anybody else experienced this problem?

       Arlindo


On Tue, Sep 9, 2008 at 8:35 PM, Wang Jun <daxiawj at gmail.com> wrote:

> Hey, You don't need to do these things at all. You can just link
> your /usr/lib/libncurses.so to libtermcap.so.2 and that would be OK!
>
> Just try. :-)
>
> 2008/9/10 Ryo Furue <furue at hawaii.edu>
>
> | I have Grads 2.0a3 installed on a Ubuntu system right now.  I used
>> | the i686 pre-compiled version that is offered on the site but I had
>> | to make a few tweeks to get around the libtermcap issue.
>> |
>> | Heres what I had to do:
>> | install the following Deb packages:
>> | ldso_1.9.11-15_i386.deb
>> | glibc5_5.4.46-15_i386.deb
>> | termcap-compat_1.2.3_i386.deb
>>
>> Another route may be to find RPM packages and convert them to Deb
>> packages.  Suppose you want version 2 of libtermcap.  Then search
>> Google for libtermcap .  You'll find RPM packages containing
>> libtermcap version 2, such as
>>
>>   libtermcap-2.0.8-41.i386.rpm
>>
>> Download one of them.  Then convert it to a .deb package, like so:
>>
>>   $ su -
>>   # cd /var/tmp
>>   # alien /your/path/to/libtermcap-2.0.8-41.i386.rpm
>>
>> This produces a .deb package like
>>
>>   libtermcap_2.0.8-42_i386.deb
>>
>> Finally, install it as
>>
>>   # dpkg -i libtermcap_2.0.8-42_i386.deb
>>
>> If you don't have the alien command, install it using apt-get,
>> aptitude, or an equivalent commend.
>>
>> This method is helpful when a Deb package is not available.
>> For example, I don't think termcap-compat is available
>> for the current Debian distributions.  (I vaguely remember
>> I used to use it.)
>>
>> Hope this helps,
>> Ryo
>>
>
>
>
> --
> Regards,
> Wang Jun
>



--
Arlindo da Silva
dasilva at alum.mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20080909/b5c43a29/attachment.html 


More information about the gradsusr mailing list