[kepler-users] Mac OS, Matlab, and library paths
Joe Futrelle
jfutrelle at whoi.edu
Tue Jun 28 12:03:30 PDT 2011
Yep, edited it, and rebooted.
Check out this transcript:
bash-3.2# launchctl setenv DYLD_LIBRARY_PATH /Applications/MATLAB_R2011a.app/bin/maci64
bash-3.2# echo $DYLD_LIBRARY_PATH
bash-3.2#
It's the environment variable that refuses to be set! I set it, and ... crickets
On Jun 28, 2011, at 2:57 PM, Daniel Crawl wrote:
>
> Hi Joe,
>
> Did you edit launchd.conf directly? If so, you'll need to reboot.
> Alternatively, you could use launchctl:
>
> launchctl setenv DYLD_LIBRARY_PATH /Applications/MATLAB...
>
> This worked for me. If this still doesn't work for you, try
> starting Kepler from a terminal window:
>
> # echo $DYLD_LIBRARY_PATH
> /Applications/MATLAB_R2010a.app/bin/maci64/
> # open /Applications/Kepler-2.2/Kepler.app
>
>
> --dan
>
>
> On 6/28/11 11:27 AM, Joe Futrelle wrote:
>> I tried that, didn't work.
>>
>> Again, I have no problem setting system-wide environment variables in launchd.conf. If I set "foo" to "bar" then "foo" is set to "bar" in my environment. But if I set DYLD_LIBRARY_PATH to anything, it's like I didn't set it at all.
>>
>> Exactly the same behavior with environment.plist. It seems to me like DYLD_LIBRARY_PATH is on some kind of blacklist.
>>
>> On Jun 28, 2011, at 2:15 PM, Sean Riddle wrote:
>>
>>> I always heard that if you wanted to set environment variables for GUI
>>> applications in OS X, you needed to edit the environment.plist file. A
>>> stackoverflow thread
>>> (http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x)
>>> says it can be set on a per-user basis at ~/.MacOSX/environment.plist.
>>> However, that thread also says that launchd.conf also works for GUI
>>> applications. Maybe try setting it in environment.plist to see if that
>>> makes a difference.
>>>
>>> - Sean
>>>
>>> PS - Property List Editor in Utilities is what creates and edits .plist files.
>>>
>>> On Tue, Jun 28, 2011 at 11:09 AM, Joe Futrelle<jfutrelle at whoi.edu> wrote:
>>>> Hi, I'm trying to run Matlab codes from Kepler in Mac OS (Snow Leopard). As an inexperienced user I'm simply firing up the prepackaged Mac OS distribution of Kepler and double-clicking on the app icon.
>>>>
>>>> It's no problem constructing a workflow with a "Matlab expression" in it, but when I run I get a stacktrace about the Matlab libraries not being on the DYLD_LIBRARY_PATH.
>>>>
>>>> I'm having no trouble finding those libraries manually; they're right where they should be in my Matlab install, and they're 64 bit, and everything seems in order.
>>>>
>>>> Setting DYLD_LIBRARY_PATH doesn't seem possible in Mac OS; I can set environment variables in launchd.conf, but launchd appears to silently ignore DYLD_LIBRARY_PATH; maybe it's special-casing it for some reason.
>>>>
>>>> I'm having trouble finding a previous post on this list, or a bug in Kepler's bugzilla database, or a documentation section or FAQ entry that explains how to solve this. It's clear that some people have had problems with this in the past, but I don't see a clear description of what I should be doing. Any and all advice welcome.
>>>>
>>>> Mac OS version: 10.6.7
>>>> Java version: 1.6.0_24 (Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode))
>>>> Kepler version: 2.2
>>>> Matlab version: R2011a
>>>>
>>>> --
>>>> Joe Futrelle
>>>> Woods Hole Oceanographic Institution
>>>> jfutrelle at whoi.edu
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Kepler-users mailing list
>>>> Kepler-users at kepler-project.org
>>>> http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users
>>>>
>>>
>>
>> --
>> Joe Futrelle
>> Woods Hole Oceanographic Institution
>> jfutrelle at whoi.edu
>>
>>
>>
>>
>> _______________________________________________
>> Kepler-users mailing list
>> Kepler-users at kepler-project.org
>> http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users
>>
>
--
Joe Futrelle
Woods Hole Oceanographic Institution
jfutrelle at whoi.edu
More information about the Kepler-users
mailing list