From: Ammar Ali Date: 2012-01-25T22:19:05+09:00 Subject: Re: Compile Psych to link with @executable_path? On Wed, Jan 18, 2012 at 1:58 AM, Mitchell Hashimoto wrote: > Hello, > > Compiling Ruby with "--enable-load-relative" sets the binary to link to > relative lib paths. > While compiling Ruby, is there a way to specify to Psych to use a > relative @executable_path as well? I had a similar problem and ended up using install_name_tool to workaround the problem. I didn't try it with @executable_path (I needed a new fixed path to libyaml) but I believe it will work. See: http://osiris.laya.com/coding/dylib_linking.html I use a script to build ruby so I just added this extra step to the script. Something like: $ install_name_tool -change OLD_PATH NEW_PATH path/to/psych.bundle HTH, Ammar