From: Jonathan P. <jp...@dc...> - 2005-12-08 12:01:08
|
> As my earlier messages mentioned, I'm using Panther (as it happens, > it's the current release, so it's 10.3.9), the error message is > "can't open library: My apologies. I hadn't realised that there were now separate dmg distributions for Panther and Tiger. > /usr/lib/libruby.1.dylib (No such file or directory, errno = 2)", > I'm using 1.8.2, which means I can't be using the "standard Ruby > installation," and indeed, if I hadn't completely obliterated it > from my OS (so, yes, I've removed bits. All the bits. Every last > bit I could find), it would be happily compiling the *wrong* > version of Ruby into my code and making my life incredibly miserable. Can you confirm that the ruby installation picked up from the command line is your self-installed 1.8.2? which ruby ruby -v > What steps did I take? I hit "Build and Run." For all of my current > projects, even ones that have not changed at all since they last > compiled successfully, I now get the same error message. Can you check that your self-compiled RubyCocoa has definitely been installed in /Library/Frameworks? It sounds like perhaps the one from the dmg is still there. Try removing /Library/Frameworks/RubyCocoa.framework altogether and rerunning the source install. > The question is: What did the pre-built Panther Install package > screw up that the "ruby install.rb" script wasn't smart enough to > fix? "libruby.1.dylib" is installed into /usr/local/lib. How do I > force XCode to look where the library really is, and why didn't > RubyCocoa's "install.rb" file set it up correctly in the first > place? This was all working with RubyCocoa 0.4.1. Now it's not. The reference to /usr/lib/libruby.1.dylib is probably coming from the RubyCocoa framework. You can check with the 'otool -L' command, which shows library dependencies (the example below is for the 0.4.2 Panther dmg): otool -L /Library/Frameworks/RubyCocoa.framework/RubyCocoa ../RubyCocoa: @executable_path/../Frameworks/RubyCocoa.framework/Versions/A/ RubyCocoa (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 9.0.0) /usr/lib/libruby.1.dylib (compatibility version 1.6.0, current version 1.6.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 71.1.4) |