Breakage in Leopard - RMagick fails to find libdpstk.1.dylib

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.

3 comments for this post.

  1. Comment from James Dilger | 20 February 2008 | 7:38 pm :

    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!

  2. Comment from sho | 16 March 2008 | 9:12 pm :

    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.

  3. Comment from benegal rahul | 7 July 2008 | 11:14 am :

    >>> “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

Leave your comment...

Powered by WP Hashcash

Blog Archives

Navigation


About this blog

A blog about Ruby, Rails and other tech. Mostly.


Find Something?