Re: NCL 5.1.0 and libcurl

From: Mateus Teixeira <mateus.teixeira_at_nyahnyahspammersnyahnyah>
Date: Wed, 8 Apr 2009 21:18:04 -0300

Hi Mary, thank you so much for the help!!!

With the followin symbolic link:

/usr/lib/libcurl.so.3 -> /usr/lib/libcurl.so

and this new example, NCL works perfectly.

By the way, I'm using a 32-bit linux system.

Best regards,

Mateus

2009/4/6 Mary Haley <haley_at_ucar.edu>

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

-- 
Mateus da Silva Teixeira
Registered Linux User #466740
Received on Wed Apr 08 2009 - 18:18:04 MDT

This archive was generated by hypermail 2.2.0 : Thu Apr 16 2009 - 10:06:19 MDT