Message: Re: DYLD_LIBRARY_PATH causes crashing on Mac (dyld: Symbol not found: __cg_jpeg_resync_to_restart) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: DYLD_LIBRARY_PATH causes crashing on Mac (dyld: Symbol not found: __cg_jpeg_resync_to_restart) 

Forum: Installation and Configuration
Re: Warning DYLD_LIBRARY_PATH causes crashing on Mac (dyld: Symbol not found: __cg_jpeg_resync_to_restart) (Mojca Miklavec)
Re: None Re: DYLD_LIBRARY_PATH causes crashing on Mac (dyld: Symbol not found: __cg_jpeg_resync_to_restart) (Ben Morgan)
Date: 30 Jul, 2012
From: Mojca Miklavec <Mojca Miklavec>

On Sun, Jul 29, 2012 at 10:01 PM, Ben Morgan wrote:
>
> I think it'll depends how you want to set up the portfile and
> applications. The easiest thing to do is probably to wrap your
> application in a script which sets up the data library paths before
> running the application. That's a little hacky I admit, but would get it
> working. The other option is to add a patch to the portfile to remove
> the setting of the PATH and DYLD_LIBRARY_PATH - though here you'd still
> need to source the script before running the programs.

Dear Ben,

I'm OK with sourcing the script before running the program (even though it would be ideal if location of data file could be remembered and only overloaded when the corresponding environmental variable is set; that way I could easily run the binary without any extra variables), but I still wonder why default behaviour of the script is to set DYLD_LIBRARY_PATH which more or less "makes the whole system useless". Once I set that variable, I'm unable to run any given program from the shell.

I'm aware that the functionality on Linux differs a lot, but I'm curious if there are some circumstances that make setting DYLD_LIBRARY_PATH on Mac OS X necessary/unavoidable.

Thank you,
    Mojca

 Add Message Add Message
to: "Re: DYLD_LIBRARY_PATH causes crashing on Mac (dyld: Symbol not found: __cg_jpeg_resync_to_restart)"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]