[racket] dylib error on macos

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue Aug 10 07:07:15 EDT 2010

At Tue, 10 Aug 2010 04:47:29 +0200, Viktor Winschel wrote:
> #lang racket
> (require plot)
> gives on my mac os 10.5 system
> ffi-lib: couldn't open "/Applications/Racket v5.0.1/collects/plot/ 
> compiled/native/i386-macosx/libfit.dylib" (dlopen(/Applications/Racket  
> v5.0.1/collects/plot/compiled/native/i386-macosx/libfit.dylib, 10): no  
> suitable image found.  Did find:
> 	/Applications/Racket v5.0.1/collects/plot/compiled/native/i386-macosx/ 
> libfit.dylib: unknown required load command 0x80000022)

I think this problem is due to upgrading our Mac build machine to 10.6.
The main executable is built in a 10.5- an 10.4-compatible way, but the
plot library isn't.

We'll fix that. Meanwhile, if you have the Apple developer tools
installed, you can probably work around the problem by deleting the
"/Applications/Racket v5.0.1/collects/plot/compiled/" directory and

  "/Applications/Racket v5.0.1/bin/raco" setup plot

in a terminal to rebuild the library.

Posted on the users mailing list.