Breakage in Leopard - RMagick fails to find libdpstk.1.dylib
Categories OSX, rails | 28 October, 2007 | By Stephen Sykes
Some small breakage in Leopard - it seems a couple of parts of X11 have been removed. Starting my rails setup, which has GraphicsMagick installed (read here for how), results in this:
dyld: NSLinkModule() error dyld: Library not loaded: /usr/X11R6/lib/libdpstk.1.dylib Referenced from: /usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.9/lib/RMagick.bundle Reason: image not found Trace/BPT trap
Those dylib files do not exist any more. But… I have a backup (I hope you do). I ended up doing this:
$ cd /Volumes/BackupDisk/usr/X11R6/lib $ sudo cp libdps*1.0* /usr/X11R6/lib/ $ sudo ln -s /usr/X11R6/lib/libdpstk.1.0.dylib /usr/X11R6/lib/libdpstk.1.dylib $ sudo ln -s /usr/X11R6/lib/libdps.1.0.dylib /usr/X11R6/lib/libdps.1.dylib
All fixed.
Without a backup you are going to need to find those two files from somewhere. I’m not sure I can legally post them here, but email me if you are stuck.
RSS
Hi,
I am stuck!
By backup, do you mean to an earlier version of OSX?
If so, I don’t think I have them. Could you e-mail them or suggest another way for me to do it?
libdpstk.1.dylib is what I am looking for.
Thanks very much!
Did you try reinstalling GraphicsMagick? I don’t know that, but I know that if you update ImageMagick undernearth rmagick you’ll need to reinstall rmagick. It has a binary component which needs to be re-linked.
Just a suggestion, hope it helps save others some time.
>>> “can’t map”
I have the same error when running SMTP from python.
Tried what you said above (I found the lib files in /Developer/SDKs, and copied and linked them)
However, *now* it says:
dyld: Library not loaded: /usr/X11R6/lib/libdpstk.1.dylib
Referenced from: /sw/bin/import
Reason: no suitable image found. Did find:
/usr/X11R6/lib/libdpstk.1.dylib: can’t map
./smtpclient.py: line 1: 25488 Trace/BPT trap import smtplib
Hi: I am also stuck… I tried looking through my installation disks (10.5.5) And could not find the libraries required, tried installing X11, X11SDK, devSDK, and several other packages and I still get the same message
dyld: Library not loaded: /usr/X11R6/lib/libdpstk.1.dylib
could you email me the libraries or suggest where to get them from?
Thanks
I does work now, those 2 libraries did the trick!
Thanks