Re: problem with libGLU.dylib in 2.2.0rc3
Re: problem with libGLU.dylib in 2.2.0rc3
- Subject: Re: problem with libGLU.dylib in 2.2.0rc3
- From: Ben Eisenbraun <email@hidden>
- Date: Fri, 11 Apr 2008 09:59:51 -0400
On Fri, Apr 11, 2008 at 02:47:56PM +0200, none none wrote:
> dyld: Library not loaded: /usr/X11/lib/lib/libGLU.1.dylib
> Referenced from: /Users/easisbot/Move3D/M3D/./bin/macintel/move3d
> Reason: image not found
>
> which is normal because there is no usr/X11/lib/lib/ but the libGLU file is
> in usr/X11/lib/
>
> I did a "otool -D /usr/X11/lib/libGLU.dylib" and had :
>
> bash-3.2$ otool -D /usr/X11/lib/libGLU.dylib
> /usr/X11/lib/libGLU.dylib:
> /usr/X11/lib/lib/libGLU.1.dylib
One of the cool feature of the Mach-O binary format is that paths to
dynamic libraries are included in the binary header, and they can be
changed.
Then you can change the id for the library:
install_name_tool -id /usr/X11/lib/libGLU.dylib /usr/X11/lib/libGLU.dylib
If the executable has a path to the library that is incorrect, you can
can change that as well:
install_name_tool -change /usr/X11/lib/lib/libGLU.1.dylib /usr/X11/lib/libGLU.1.dylib /Users/easisbot/Move3D/M3D/./bin/macintel/move3d
I do this sort of thing quite a bit, since I find myself using
packagesthat developers build for /usr/local/foo and putting them on our
NFSserver.
-ben
--
Ben Eisenbraun
Structural Biology Grid
http://sbgrid.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden