[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Ruby 1.8.4 Mac OS X readline problems

Paul Smith

12/27/2005 7:23:00 PM

On 12/24/05, Daniel Harple <dharple@generalconsumption.org> 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-...
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@gmail.com
Center for Neighborhood Technology
Technology Director, Wireless Community Networks
Chicago IL, USA


2 Answers

Peter Burns

1/25/2006 7:03:00 AM

0

>> Expected in: flat namespace
>>
>> make: *** [test-all] Trace/BPT trap
>
>
> 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@gmail.com
> Center for Neighborhood Technology
> Technology Director, Wireless Community Networks
> Chicago IL, USA

This also solved the problem for me. Thanks for posting this Paul (:

I had to use curl though, as wget wasn't installed:

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


--
Posted via http://www.ruby-....


Maggie Reid

7/15/2007 2:02:00 AM

0

I am having this problem with Ruby 1.8.6 and OSX 10.4.10.

I followed the fix instructions using curl:
curl -O ftp://ftp.gnu.org/gnu/readline/readline-...
tar -xzf readline-5.1.tar.gz
cd readline-5.1
/configure --prefix=/usr/local && make && sudo make install


Can you explain how to rebuild Ruby with make distclean && configure
--with-readline-dir=/usr/local && make && make test-all?

I tried pasting in the line after the ./configure was done, but I had no
success with the fix.
Did you resolve this problem??




jimmyether wrote:
> Paul Smith wrote:
>> wget ftp://ftp.gnu.org/gnu/readline/readline-...
>> 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.
>
> I did this (though I couldn't get make distclean to run). And the test
> still show an issue with WEBrick:
>
> 1) Failure:
> test_cgi(TestWEBrickCGI)
> [./webrick/test_cgi.rb:27:in `test_cgi'
> /Users/jimmyether/src/ruby-1.8.4/lib/net/http.rb:1049:in `request'
> /Users/jimmyether/src/ruby-1.8.4/lib/net/http.rb:2104:in
> `reading_body'
> /Users/jimmyether/src/ruby-1.8.4/lib/net/http.rb:1048:in `request'
> /Users/jimmyether/src/ruby-1.8.4/lib/net/http.rb:1033:in `request'
> /Users/jimmyether/src/ruby-1.8.4/lib/net/http.rb:545:in `start'
> /Users/jimmyether/src/ruby-1.8.4/lib/net/http.rb:1031:in `request'
> ./webrick/test_cgi.rb:27:in `test_cgi'
> ./webrick/utils.rb:26:in `start_server'
> ./webrick/utils.rb:34:in `start_httpserver'
> ./webrick/test_cgi.rb:24:in `test_cgi']:
> <"/webrick.cgi"> expected but was
> <"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\">\n<HTML>\n
> <HEAD><TITLE>Internal Server Error</TITLE></HEAD>\n <BODY>\n
> <H1>Internal Server Error</H1>\n Premature end of script headers:
> /Users/jimmyether/src/ruby-1.8.4/test/webrick/webrick.cgi\n <HR>\n
> <ADDRESS>\n WEBrick/1.3.1 (Ruby/1.8.4/2005-12-24) OpenSSL/0.9.7i
> at\n 127.0.0.1:49746\n </ADDRESS>\n </BODY>\n</HTML>\n">.
>
> 1313 tests, 14444 assertions, 1 failures, 0 errors
> make: *** [test-all] Error 1
>
>
>
> Any suggestions on how to fix this?


--
Posted via http://www.ruby-....