curl error with IDL 8.5 [message #94291] |
Thu, 30 March 2017 12:00  |
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 #94299 is a reply to message #94291] |
Fri, 31 March 2017 09:35   |
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 #94311 is a reply to message #94291] |
Wed, 05 April 2017 02:42   |
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   |
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  |
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.
|
|
|