Forum: Ruby on Rails readline problems

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Charles F. Munat (Guest)
on 2006-06-10 21:45
(Received via mailing list)
I get the following error:

rake test_units --trace

** Invoke test_units (first_time)
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:test:prepare
** Invoke db:test:clone (first_time)
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
** Execute db:test:clone
** Invoke db:schema:load (first_time)
** Invoke environment
** Execute db:schema:load
NOTICE:  CREATE TABLE will create implicit sequence "users_id_seq" for
serial column "users.id"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
"users_pkey" for table "users"
** Execute test:units
/usr/local/bin/ruby -Ilib:test
"/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb"
"test/unit/localization_test.rb" "test/unit/user_test.rb"
dyld: NSLinkModule() error
dyld: Symbol not found: _rl_filename_completion_function
   Referenced from:
/usr/local/lib/ruby/1.8/powerpc-darwin8.6.0/readline.bundle
   Expected in: flat namespace

rake aborted!
Command failed with status (): [/usr/local/bin/ruby -Ilib:test
"/usr/local...]
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:722:in `sh'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:729:in `sh'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:812:in `sh'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:807:in `sh'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:747:in `ruby'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:812:in `ruby'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:807:in `ruby'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/testtask.rb:117:in
`define'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:831:in
`verbose'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/testtask.rb:102:in
`define'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in
`execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in
`execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in `invoke'
/usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:in
`invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in
`invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in `invoke'
/usr/local/lib/ruby/1.8/thread.rb:135:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7
/usr/local/bin/rake:18

Readline is installed properly in /usr/local/lib/ and is 5.1.

I deleted the 1.8 directory in /ruby and reinstalled ruby using
autoconf, ./configure, make clean, make, make test, and make install.
There were many warnings about differences in signedness during make,
but it installed fine.

I also uninstalled and reinstalled rake and rails. I got an invalid date
error while re-installing localization_generator, but otherwise all went
well.

But I still get the above error. Anyone know why?

Thanks for helping.

Chas. Munat
Seattle
Ben M. (Guest)
on 2006-06-10 23:41
(Received via mailing list)
Hey Bro,

I remember having some weird problems installing the
salted_hash_login_generator, which
depended on localization_generator... and I remember that tests were
failing.
Unfortunately, I don't remember exactly what the solution was.

I do remember that at one point I figured out that I somehow had
multiple versions of rake
installed and that was causing problems... not sure if that had anything
to do with the
localization generator problem.

You might carefully explore your ruby directory hierarchy and see
exactly what's in there.
If you actually made sure that everything under there was completely
deleted when you
uninstalled, then this is probably all useless advice... can't see how
you could have
multiple versions.

Seems to me that I remember reading cautions about using the ruby that
comes with Mac OS too.

Well, sorry this isn't more helpful, but on the other hand, I have
definitely noticed a
kind of catch-22 on this list: posts often don't get replies until
someone replies. There
are some very smart people on this list, here's hoping that someone
chimes in here to help
you out!

b
Deirdre Saoirse M. (Guest)
on 2006-06-14 02:18
(Received via mailing list)
On Jun 10, 2006, at 10:42 AM, Charles F. Munat wrote:

> I also uninstalled and reinstalled rake and rails. I got an invalid
> date error while re-installing localization_generator, but
> otherwise all went well.

I didn't see this one at first, but I see Ben got it.

The next version of the Salted Hash Login Generator (which I'm
working on) will make localization optional, as well as add a few
other new things.

--
_Deirdre                                             http://deirdre.net
This topic is locked and can not be replied to.