Hello.

On Saturday, December 29, 2001, at 11:10  PM, FUJIMOTO Hisakuni wrote:

> Hi,
>
> At Sun, 30 Dec 2001 12:34:36 +0900,
> Jeff Fox wrote:
>> I then started working through the Sample Checks as outlined in
>> http://www.imasy.or.jp/~hisa/mac/rubycocoa/INSTALL.en.htmlopen
>>
>> The first few ruby scripts executed successfully, but when I tried
>> "open SimpleApp1.app", it faliled to execute. When I tried to make in
>> sample/mk_app1 I got this:
> [snip]
>
> Please read FAQ:
>
> <http://www.imasy.or.jp/~hisa/mac/rubycocoa/FAQ.en.html#label:8>
>
> Maybe you have installed libdl in somewhere (/usr/local/lib) for the
> other unix libraries. I have no idea to solve this except uninstalling
> libdl from "/usr/local/lib".

I just now found the "add -ldl to linker options" in PB project 
solution. I should have read your FAQ sooner!

Except for the already built SimpleApp1, I'm now able to run all of the 
rubycocoa samples! I can finally start building cocoa apps in ruby. 
Thank you.

I installed libdl in /usr/local/lib to support VIM 6.0. I think it is 
the only application I have that is using it. I'm going to look at 
re-compiling VIM or maybe moving libdl to somewhere specific for VIM and 
out of /usr/local/lib where it seems to cause problems.

The original problem I had building ruby from source with the error in 
compiling dln.c because of the missing dlfnc.h file was due to an 
incomplete install of lbdl. I had downloaded and installed libdl.dylib 
without the source. I found the source here:
http://prdownloads.sourceforge.net/fink/dlcompat-20010831.tar.gz

After building and installing libdl from source, dlfcn.h was installed 
in /usr/local/include and ruby built and installed with no errors and no 
modifications.

Jeff