<div dir="ltr">All,<br><div><br></div><div> I'd like to share some of my experience building GrADS v2.0.a3 on Ubuntu, more precisely:</div><div><br></div><div><span class="Apple-style-span" style="border-collapse: collapse; ">- Linux Niteroi 2.6.24-19-generic #1 SMP Fri Jul 11 21:01:46 UTC 2008<br>
x86_64 GNU/Linux<br>- gcc (GCC) 4.2.3 (<span class="nfakPe" style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 136); background-position: initial initial; ">Ubuntu</span> 4.2.3-2ubuntu7)</span><br>
</div><div><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse;">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. </span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse;"> Has anybody else experienced this problem?</span></div><div>
<span class="Apple-style-span" style="border-collapse: collapse;"><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse;"> Arlindo</span></div><div><br></div><div><br><div class="gmail_quote">
On Tue, Sep 9, 2008 at 8:35 PM, Wang Jun <span dir="ltr"><<a href="mailto:daxiawj@gmail.com">daxiawj@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr">Hey, You don't need to do these things at all. You can just link<br>your /usr/lib/libncurses.so to libtermcap.so.2 and that would be OK!<br><br>Just try. :-)<br><br><div class="gmail_quote">2008/9/10 Ryo Furue <span dir="ltr"><<a href="mailto:furue@hawaii.edu" target="_blank">furue@hawaii.edu</a>></span><div>
<div></div><div class="Wj3C7c"><br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div>| I have Grads 2.0a3 installed on a Ubuntu system right now. I used<br>
| the i686 pre-compiled version that is offered on the site but I had<br>
| to make a few tweeks to get around the libtermcap issue.<br>
|<br>
| Heres what I had to do:<br>
| install the following Deb packages:<br>
| ldso_1.9.11-15_i386.deb<br>
| glibc5_5.4.46-15_i386.deb<br>
| termcap-compat_1.2.3_i386.deb<br>
<br>
</div>Another route may be to find RPM packages and convert them to Deb<br>
packages. Suppose you want version 2 of libtermcap. Then search<br>
Google for libtermcap . You'll find RPM packages containing<br>
libtermcap version 2, such as<br>
<br>
libtermcap-2.0.8-41.i386.rpm<br>
<br>
Download one of them. Then convert it to a .deb package, like so:<br>
<br>
$ su -<br>
# cd /var/tmp<br>
# alien /your/path/to/libtermcap-2.0.8-41.i386.rpm<br>
<br>
This produces a .deb package like<br>
<br>
libtermcap_2.0.8-42_i386.deb<br>
<br>
Finally, install it as<br>
<br>
# dpkg -i libtermcap_2.0.8-42_i386.deb<br>
<br>
If you don't have the alien command, install it using apt-get,<br>
aptitude, or an equivalent commend.<br>
<br>
This method is helpful when a Deb package is not available.<br>
For example, I don't think termcap-compat is available<br>
for the current Debian distributions. (I vaguely remember<br>
I used to use it.)<br>
<br>
Hope this helps,<br>
<font color="#888888">Ryo<br>
</font></blockquote></div></div></div><br><br clear="all"><br>-- <br>Regards,<br>Wang Jun<br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>
</div></div>