From: Mark Hubbart Date: 2004-03-20T02:37:31+09:00 Subject: Re: Installer packages for MacOSX On Mar 19, 2004, at 6:33 AM, Sam Roberts wrote: >>> (I'm using osx 10.2, btw) >> >> This explains the problem. OSX 10.3, it appears, ships with a working >> libreadline.4.3 stuffed in /usr/lib, which is what my readline.bundle > > I don't think it does. Note the error message? It refers to > "/supp/lib" > > Is /supp an apple directory? > > I would guess that you have some kind of "ports" system that has put a > libreadline in /supp, and that /supp's directories are earlier in your > paths than /usr/lib, so you're not getting the standard readline. > > Just a guess, but I think the /supp is suspicious! /supp, I'm assuming, is a virtual directory denoting the search path for all lib roots... I get the same error. here: First, looking in relevant directories: % ls -l /System/Library/PrivateFrameworks/readline.framework total 16 lrwxr-xr-x 1 root wheel 26 13 Nov 12:50 Resources -> Versions/Current/Resources drwxr-xr-x 4 root wheel 136 23 Sep 23:44 Versions lrwxr-xr-x 1 root wheel 26 24 Sep 14:21 readline -> /usr/lib/libreadline.dylib % ls -l /usr/lib | grep readline -r-xr-xr-x 1 mark staff 324308 6 Sep 2003 libreadline.4.3.dylib lrwxr-xr-x 1 root admin 21 24 Sep 08:40 libreadline.4.dylib -> libreadline.4.3.dylib -rw-r--r-- 1 mark staff 487060 6 Sep 2003 libreadline.a lrwxr-xr-x 1 root admin 21 24 Sep 08:40 libreadline.dylib -> libreadline.4.3.dylib Next, testing readline: % ruby -rreadline -e'print' % sudo mkdir /usr/lib/lrl % sudo mv /usr/lib/libreadline.* /usr/lib/lrl % ruby -rreadline -e'print' dyld: ruby can't open library: /supp/lib/libreadline.4.3.dylib (No such file or directory, errno = 2) zsh: trace trap ruby -rreadline -e'print' There is no /supp directory, so I have to assume that it's virtual. Also, the only readline in readline.framework/ is a symlink to the one in /usr/lib. I'm thinking that this means that it was put there by Apple, since, I can't imagine any packages deleting files in /System/Library/PrivateFrameworks... Still, I'll need to look into this, to see if there's a good solution. It seems that any Ruby package will either have to depend on the developer tools being installed, or come with a copy of readline to install in /usr/local/lib. I think over the weekend I can look into it more... --Mark