[#1094] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — Dave Thomas <dave@...>

> * eval.c (rb_mod_autoload, rb_mod_autoload_p): new method;

12 messages 2003/05/29
[#1095] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — nobu.nokada@... 2003/05/29

Hi,

Re: Possible problem with mkmf under Darwin

From: Jim Freeze <jim@...>
Date: 2003-05-26 15:18:39 UTC
List: ruby-core #1086
On Monday, 26 May 2003 at 23:41:56 +0900, Dave Thomas wrote:
> I've been having fun getting readline support to work on OSX. My latest 
> problem is that ext/readline/extconf.rb is complaining:
> 
>    checking for readline/readline.h... yes
>    checking for readline/history.h... yes
>    checking for readline() in -lreadline... no
> 

Are you using readline from Apple: 

 /System/Library/PrivateFrameworks/readline.framework/readline

Fink:

 /sw/lib/...

 or one that you built yoursself.

IIRC, ext could never find the readline in the Apple path.
(BTW, I have posted on this in the ruby-talk archives?)

> Is this a generic problem with gcc 3.1, or is it something Apple have 
> done? And does anyone have any ideas of how to fix this?

I currently have given up on fink (for the time being) and
downloaded readline from gnu.org. Works fine, but definitely
required some manual effort. If I would have worked a little harder
the better solution would have been to use the Apple readline.

 % ruby -v
 ruby 1.8.0 (2003-02-22) [powerpc-darwin6.4]
 % irb
 irb(main):001:0> $"
 => ["irb.rb", "e2mmap.rb", "irb/init.rb", "irb/context.rb",
 "irb/workspace.rb", "irb/extend-command.rb", "irb/ruby-lex.rb",
 "irb/slex.rb", "irb/ruby-token.rb", "irb/input-method.rb",
 "readline.bundle", "irb/locale.rb", "kconv.rb", "nkf.bundle",
 "tempfile.rb", "delegate.rb", "irb/completion.rb"]


-- 
Jim Freeze
----------

In This Thread