« Return to Thread: Ruby 1.8.4 Mac OS X readline problems

Re: Ruby 1.8.4 Mac OS X readline problems

by Paul Smith-11 :: Rate this Message:

Reply to Author | View in Thread

On 12/24/05, Daniel Harple <dharple@...> wrote:

> Is anyone else having this problem?
>
> #++++++
> $ make test-all
> ./miniruby ./runruby.rb --extout=.ext -- -C "./test" runner.rb --
> runner=console
> dyld: NSLinkModule() error
> dyld: Symbol not found: _rl_filename_completion_function
>    Referenced from: /Users/dharple/ruby-1.8.4/.ext/powerpc-
> darwin8.3.0/readline.bundle
>    Expected in: flat namespace
>
> make: *** [test-all] Trace/BPT trap

I had this same problem. I rebuilt my readline library ala:

  wget ftp://ftp.gnu.org/gnu/readline/readline-5.1.tar.gz
  tar -xzf readline-5.1.tar.gz
  cd readline-5.1
  ./configure --prefix=/usr/local && make && sudo make install

And then rebuilt ruby:

  make distclean && configure --with-readline-dir=/usr/local && make
&& make test-all

And all was well.

-Paul

--
Paul Smith
mobile: (773) 934-4607
aim/yim: thaislump
gtalk: paulsmith@...
Center for Neighborhood Technology
Technology Director, Wireless Community Networks
Chicago IL, USA

 « Return to Thread: Ruby 1.8.4 Mac OS X readline problems