Hi Mary, thank you so much for the help!!!<br><br>With the followin symbolic link:<br><br>/usr/lib/libcurl.so.3 -> /usr/lib/libcurl.so<br><br>and this new example, NCL works perfectly.<br><br>By the way, I'm using a 32-bit linux system.<br>
<br>Best regards,<br><br>Mateus<br><br><br><div class="gmail_quote">2009/4/6 Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu">haley@ucar.edu</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Here's a better test to use to see if your version of NCL has OPeNDAP<br>
capabilities:<br>
<br>
url = "<a href="http://test.opendap.org/opendap/data/nc/" target="_blank">http://test.opendap.org/opendap/data/nc/</a>"<br>
filename = url + "<a href="http://123.nc" target="_blank">123.nc</a>"<br>
<br>
exists = isfilepresent(filename)<br>
if(.not.exists) then<br>
print("OPeNDAP isfilepresent test unsuccessful.")<br>
print("Either file doesn't exist, or NCL does not have OPeNDAP capabilities on this system")<br>
else<br>
print("OPeNDAP isfilepresent test successful.")<br>
f = addfile(filename,"r")<br>
vars = getfilevarnames(f)<br>
print(vars) ; should be (in any order): "l","j","i","cross","aloan",<br>
; "shot","order","bears"<br>
end if<br>
<br>
<br>
I've updated the Applications page to reflect this new example.<br>
<br>
--Mary<br>
<br>
<br>
On Tue, 31 Mar 2009, Mateus Teixeira wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi David,<br>
<br>
Thanks for your suggestion, now NCL doesn't complains about any library, but<br>
I would like to know if the example given in<br>
<br>
<a href="http://www.ncl.ucar.edu/Applications/opendap.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/opendap.shtml</a><br>
<br>
really works? Is the internet address correct?<br>
<br>
NCL gives the following answer when I try to access the file shown in that<br>
example:<br>
<br>
ncl 0> url = "<a href="http://www.cdc.noaa.gov/cgi-bin/nph-nc/Datasets/" target="_blank">http://www.cdc.noaa.gov/cgi-bin/nph-nc/Datasets/</a>"<br>
ncl 1> filename = "ncep.reanalysis.dailyavgs/pressure/<a href="http://air.1948.nc" target="_blank">air.1948.nc</a>"<br>
ncl 2> f = addfile(url + filename,"r")<br>
fatal:<br>
fatal:Could not open (<br>
<a href="http://www.cdc.noaa.gov/cgi-bin/nph-nc/Datasets/ncep.reanalysis.dailyavgs/pressure/air.1948.nc" target="_blank">http://www.cdc.noaa.gov/cgi-bin/nph-nc/Datasets/ncep.reanalysis.dailyavgs/pressure/air.1948.nc</a><br>
)<br>
<br>
In order to use NCL-opendap enabled, I have installed the following packages<br>
in my fedora 10 installation:<br>
<br>
openssl.i686 0.9.8g-12.fc10<br>
openssl-devel.i386 0.9.8g-12.fc10<br>
<br>
libcurl.i386 7.19.4-3.fc10<br>
libcurl-devel.i386 7.19.4-3.fc10<br>
<br>
libxml2.i386 2.7.3-1.fc10<br>
libxml2-devel.i386 2.7.3-1.fc10<br>
<br>
libdap.i386 3.8.2-1.fc10<br>
libdap-devel.i386 3.8.2-1.fc10<br>
<br>
libnc-dap.i386 3.7.3-1.fc10<br>
libnc-dap-devel.i386 3.7.3-1.fc10<br>
<br>
zlib.i386 1.2.3-18.fc9<br>
zlib-devel.i386 1.2.3-18.fc9<br>
<br>
<br>
It seems that all versions of the packages needed for NCL-opendap enabled to<br>
work are installed. I only not sure if the libcurl package installed was<br>
build with zlib.<br>
<br>
If the file location of that example is correct, I think that something<br>
isn't working properly in my system. If it is the case, is it possible to<br>
identify the source of the problem?<br>
<br>
Thanks for the help.<br>
<br>
Best regards,<br>
<br>
<br>
Mateus<br>
<br>
<br>
<br>
2009/3/30 David Brown <<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Mateus,<br>
I have seen a report that suggests a pretty simple work-around:<br>
<br>
If you have root access the most straightforward thing to do is to create<br>
the following symbolic link:<br>
ln -s /usr/lib/libcurl.so /usr/lib/libcurl.so.3<br>
<br>
This is assuming that your existing libcurl is in /usr/lib/.<br>
<br>
/usr/lib/libcurl.so is usually itself a symbolic link to the current<br>
version of libcurl.<br>
<br>
If you don't have root access or you don't want to modify the system<br>
library directories at all, then another option would be to<br>
create the symbolic link in your own directory space, e.g.<br>
<br>
ln -s /usr/lib/libcurl.so <my-directory-path>/libcurl.so.3<br>
<br>
you would then need to add <my-directory-path> to LD_LIBRARY_PATH:<br>
<br>
(using csh): setenv LD_LIBRARY_PATH <my-directory-path>:$LD_LIBRARY_PATH<br>
<br>
If this does not work, let us know. The other alternative is to actually<br>
install a copy of libcurl.so.3, but it has other dependencies that<br>
make it a somewhat painful process.<br>
-dave<div class="im"><br>
<br>
<br>
<br>
On Mar 29, 2009, at 11:31 AM, Mateus Teixeira wrote:<br>
<br>
Dear NCL users,<br>
<br>
I'm trying to run NCL 5.1.0 OPeNDAP-enabled binaries on Fedora 10, but it<br>
complains about libcurl.so.3 file. I checked my system and found that there<br>
is a version of libcurl package that provides the file libcurl.so.4. I<br>
didn't find a package providing the requered file.<br>
<br>
Is there a solution or a workaround to this problem?<br>
<br>
Best regards,<br>
<br>
<br>
--<br>
Mateus da Silva Teixeira<br>
<br>
Registered Linux User #466740<br></div>
_______________________________________________<br>
ncl-install mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br>
<br>
<br>
<br>
</blockquote><div class="im">
<br>
<br>
-- <br>
Mateus da Silva Teixeira<br>
<br>
Registered Linux User #466740<br>
<br>
</div></blockquote>
</blockquote></div><br><br clear="all"><br>-- <br>Mateus da Silva Teixeira<br><br>Registered Linux User #466740<br>