comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » curl error with IDL 8.5
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
curl error with IDL 8.5 [message #94291] Thu, 30 March 2017 12:00 Go to next message
allisonjaynes is currently offline  allisonjaynes
Messages: 26
Registered: May 2012
Junior Member
After upgrading from 8.2 to 8.5, I'm now getting a strange error when spawning a curl command. Have tried uninstalling and reinstalling curl, and setting my path to point to where it should. I'm running OS 10.8 currently. Just curious: anyone else having this problem? I figured that tons of people use curl in IDL, but perhaps not?



[macd2591:~] alja2778% idl
IDL Version 8.5.1, Mac OS X (darwin x86_64 m64).
(c) 2015, Exelis Visual Information Solutions, Inc., a subsidiary of Harris Corporation.
Installation number: 100-550.
Licensed for use by: University of Colorado

IDL> spawn, 'curl google.com'
dyld: Library not loaded: /opt/local/lib/libcurl.4.dylib
Referenced from: /opt/local/bin/curl
Reason: Incompatible library version: curl requires version 9.0.0 or later, but libcurl.4.dylib provides version 8.0.0
Trace/BPT trap


Same command works fine on my laptop running IDL 8.4. Any ideas?
Re: curl error with IDL 8.5 [message #94295 is a reply to message #94291] Fri, 31 March 2017 06:46 Go to previous messageGo to next message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
I have IDL 8.5.1 on linux and do not have this problem.

IDL> help, !version
** Structure !VERSION, 8 tags, length=104, data length=100:
ARCH STRING 'x86_64'
OS STRING 'linux'
OS_FAMILY STRING 'unix'
OS_NAME STRING 'linux'
RELEASE STRING '8.5.1'
BUILD_DATE STRING 'Nov 14 2015'
MEMORY_BITS INT 64
FILE_OFFSET_BITS
INT 64
IDL>
IDL>
IDL> spawn, 'curl google.com'
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>
Re: curl error with IDL 8.5 [message #94299 is a reply to message #94291] Fri, 31 March 2017 09:35 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Thursday, March 30, 2017 at 1:00:48 PM UTC-6, allison jaynes wrote:
> After upgrading from 8.2 to 8.5, I'm now getting a strange error when spawning a curl command. Have tried uninstalling and reinstalling curl, and setting my path to point to where it should. I'm running OS 10.8 currently. Just curious: anyone else having this problem? I figured that tons of people use curl in IDL, but perhaps not?
>
>
>
> [macd2591:~] alja2778% idl
> IDL Version 8.5.1, Mac OS X (darwin x86_64 m64).
> (c) 2015, Exelis Visual Information Solutions, Inc., a subsidiary of Harris Corporation.
> Installation number: 100-550.
> Licensed for use by: University of Colorado
>
> IDL> spawn, 'curl google.com'
> dyld: Library not loaded: /opt/local/lib/libcurl.4.dylib
> Referenced from: /opt/local/bin/curl
> Reason: Incompatible library version: curl requires version 9.0.0 or later, but libcurl.4.dylib provides version 8.0.0
> Trace/BPT trap
>
>
> Same command works fine on my laptop running IDL 8.4. Any ideas?

Hi Allison,

Check your DYLD_LIBRARY_PATH and see if it is pointing to somewhere that might cause problems:

IDL> getenv('DYLD_LIBRARY_PATH')
/Applications/harris/idl86/bin/bin.darwin.x86_64

Cheers,
Chris
Re: curl error with IDL 8.5 [message #94306 is a reply to message #94299] Mon, 03 April 2017 09:45 Go to previous messageGo to next message
allisonjaynes is currently offline  allisonjaynes
Messages: 26
Registered: May 2012
Junior Member
Here's my path:
/Applications/exelis/idl85/bin/bin.darwin.x86_64

Looks fine to me. I'm not sure if this is an IDL-only issue or something to do with the combination of IDL and OSX.
Re: curl error with IDL 8.5 [message #94309 is a reply to message #94306] Tue, 04 April 2017 20:53 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Monday, April 3, 2017 at 10:45:53 AM UTC-6, allison jaynes wrote:
> Here's my path:
> /Applications/exelis/idl85/bin/bin.darwin.x86_64
>
> Looks fine to me. I'm not sure if this is an IDL-only issue or something to do with the combination of IDL and OSX.

Hmmm, I think I have an idea. IDL 8.5 is only supported on OSX 10.9 and 10.10, not 10.8. I bet that the version of curl on OSX 10.8 is too old.

So I think your options are either upgrade OSX to a newer version, or downgrade your IDL to 8.4.

-Chris
Re: curl error with IDL 8.5 [message #94311 is a reply to message #94291] Wed, 05 April 2017 02:42 Go to previous messageGo to next message
Markus Schmassmann is currently offline  Markus Schmassmann
Messages: 129
Registered: April 2016
Senior Member
On 03/30/2017 09:00 PM, allison jaynes wrote:
> After upgrading from 8.2 to 8.5, I'm now getting a strange error
> when spawning a curl command. Have tried uninstalling and reinstalling curl,
> and setting my path to point to where it should. I'm running OS 10.8
> currently. Just curious: anyone else having this problem? I figured that
> tons of people use curl in IDL, but perhaps not?
>
> [macd2591:~] alja2778% idl
> IDL Version 8.5.1, Mac OS X (darwin x86_64 m64).
> (c) 2015, Exelis Visual Information Solutions, Inc., a subsidiary of Harris Corporation.
> Installation number: 100-550.
> Licensed for use by: University of Colorado
>
> IDL> spawn, 'curl google.com'
> dyld: Library not loaded: /opt/local/lib/libcurl.4.dylib
> Referenced from: /opt/local/bin/curl
> Reason: Incompatible library version: curl requires version 9.0.0 or later, but libcurl.4.dylib provides version 8.0.0
> Trace/BPT trap
>
>
> Same command works fine on my laptop running IDL 8.4. Any ideas?

have you tried using curl outside IDL?

[macd2591:~] alja2778% curl google.com

Does that give you the same problem?
If so, the problem has nothing to do with IDL.

If you can't get it to work with CURL, and don't need the options curl
provides, you might try WGET.

https://www.gnu.org/software/wget/manual/wget.html
https://daniel.haxx.se/docs/curl-vs-wget.html
Re: curl error with IDL 8.5 [message #94316 is a reply to message #94311] Thu, 06 April 2017 18:20 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Wednesday, April 5, 2017 at 3:42:46 AM UTC-6, Markus Schmassmann wrote:
> On 03/30/2017 09:00 PM, allison jaynes wrote:
>> After upgrading from 8.2 to 8.5, I'm now getting a strange error
>> when spawning a curl command. Have tried uninstalling and reinstalling curl,
>> and setting my path to point to where it should. I'm running OS 10.8
>> currently. Just curious: anyone else having this problem? I figured that
>> tons of people use curl in IDL, but perhaps not?
>>
>> [macd2591:~] alja2778% idl
>> IDL Version 8.5.1, Mac OS X (darwin x86_64 m64).
>> (c) 2015, Exelis Visual Information Solutions, Inc., a subsidiary of Harris Corporation.
>> Installation number: 100-550.
>> Licensed for use by: University of Colorado
>>
>> IDL> spawn, 'curl google.com'
>> dyld: Library not loaded: /opt/local/lib/libcurl.4.dylib
>> Referenced from: /opt/local/bin/curl
>> Reason: Incompatible library version: curl requires version 9.0.0 or later, but libcurl.4.dylib provides version 8.0.0
>> Trace/BPT trap
>>
>>
>> Same command works fine on my laptop running IDL 8.4. Any ideas?
>
> have you tried using curl outside IDL?
>
> [macd2591:~] alja2778% curl google.com
>
> Does that give you the same problem?
> If so, the problem has nothing to do with IDL.
>
> If you can't get it to work with CURL, and don't need the options curl
> provides, you might try WGET.
>
> https://www.gnu.org/software/wget/manual/wget.html
> https://daniel.haxx.se/docs/curl-vs-wget.html

Funny thing is that we just added WGET to IDL 8.5, but it uses IDLnetURL which of course requires curl.
-Chris
Re: curl error with IDL 8.5 [message #94324 is a reply to message #94311] Mon, 10 April 2017 11:30 Go to previous message
allisonjaynes is currently offline  allisonjaynes
Messages: 26
Registered: May 2012
Junior Member
Yes, I've tried outside of IDL. Should have mentioned that it works fine through a Terminal instance. IDL is definitely the problem, but now seems like a combination of IDL and OSX. Darn.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: % Attempt to call undefined procedure/function: 'BARPLOT'.
Next Topic: Taylor Diagrams in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:10:37 PDT 2025

Total time taken to generate the page: 0.00529 seconds