Ruby 1.8.3 Issues

I just recompiled Ruby and I'm seeing a lot of issues already.

IRb is the first crisis I really need to tackle. Are these error messages making sense to anyone who can give me some clues?

Should I need to reinstall my gems, like Rails?

Neo:~/Desktop/ruby-1.8.3$ ruby -v
ruby 1.8.3 (2005-09-21) [powerpc-darwin8.2.0]
Neo:~/Desktop/ruby-1.8.3$ irb
dyld: NSLinkModule() error
dyld: Symbol not found: _rl_filename_completion_function
   Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.2.0/readline.bundle
   Expected in: flat namespace

Trace/BPT trap
Neo:~/Desktop/ruby-1.8.3$ rails
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/clean_logger.rb:13:in `remove_const': constant Logger::Format not defined (NameError)
         from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/clean_logger.rb:13
         from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
         from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support.rb:31
         from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
         from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record.rb:29
         from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
         from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:182:in `activate'
         from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:181:in `activate'
         from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:167:in `activate'
         from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:166:in `activate'
         from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:37:in `require_gem_with_options'
         from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:31:in `require_gem'
         from /usr/local/bin/rails:17

Thanks for any advice.

James Edward Gray II

I had similar problems. Every Rails app I tried died...

My advice:

cd ../ruby-1.8.2/; ./configure && make && make install

That's what I just had to do. No ruby 1.8.3 for me yet. :-/

-Robby

···

On Wed, 2005-09-21 at 12:14 +0900, James Edward Gray II wrote:

I just recompiled Ruby and I'm seeing a lot of issues already.

IRb is the first crisis I really need to tackle. Are these error
messages making sense to anyone who can give me some clues?

Should I need to reinstall my gems, like Rails?

Neo:~/Desktop/ruby-1.8.3$ ruby -v
ruby 1.8.3 (2005-09-21) [powerpc-darwin8.2.0]
Neo:~/Desktop/ruby-1.8.3$ irb
dyld: NSLinkModule() error
dyld: Symbol not found: _rl_filename_completion_function
   Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.2.0/
readline.bundle
   Expected in: flat namespace

Trace/BPT trap
Neo:~/Desktop/ruby-1.8.3$ rails
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/
active_support/clean_logger.rb:13:in `remove_const': constant
Logger::Format not defined (NameError)
         from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/
lib/active_support/clean_logger.rb:13
         from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:21:in `require'
         from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/
lib/active_support.rb:31
         from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:21:in `require'
         from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1/
lib/active_record.rb:29
         from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:21:in `require'
         from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:182:in
`activate'
         from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:181:in
`activate'
         from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:167:in
`activate'
         from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:166:in
`activate'
         from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:37:in
`require_gem_with_options'
         from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:31:in
`require_gem'
         from /usr/local/bin/rails:17

Thanks for any advice.

James Edward Gray II

--
/******************************************************
* Robby Russell, Owner.Developer.Geek
* PLANET ARGON, Open Source Solutions & Web Hosting
* Portland, Oregon | p: 503.351.4730 | f: 815.642.4068
* www.planetargon.com | www.robbyonrails.com
*******************************************************/

Following up on this:

Neo:~$ ruby -r readline -e1
dyld: NSLinkModule() error
dyld: Symbol not found: _rl_filename_completion_function
   Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.2.0/readline.bundle
   Expected in: flat namespace

Trace/BPT trap

Looks like my readline support is broken. I know I've compiled it in before. Any guesses?

James Edward Gray II

···

On Sep 20, 2005, at 10:14 PM, James Edward Gray II wrote:

Neo:~/Desktop/ruby-1.8.3$ irb
dyld: NSLinkModule() error
dyld: Symbol not found: _rl_filename_completion_function
  Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.2.0/readline.bundle
  Expected in: flat namespace

Trace/BPT trap

Hi --

···

On Wed, 21 Sep 2005, James Edward Gray II wrote:

I just recompiled Ruby and I'm seeing a lot of issues already.

/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/ active_support/clean_logger.rb:13:in `remove_const': constant Logger::Format not defined (NameError)

This one is because Logger::Format is now Logger::Formatter::Format.
(Which is, of course, just a diagnosis, not a solution. I think
something will have to change somewhere before Rails apps can run with
1.8.3.)

David

--
David A. Black
dblack@wobblini.net

Hi,

At Wed, 21 Sep 2005 12:14:26 +0900,
James Edward Gray II wrote in [ruby-talk:156903]:

Neo:~/Desktop/ruby-1.8.3$ ruby -v
ruby 1.8.3 (2005-09-21) [powerpc-darwin8.2.0]
Neo:~/Desktop/ruby-1.8.3$ irb
dyld: NSLinkModule() error
dyld: Symbol not found: _rl_filename_completion_function
   Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.2.0/
readline.bundle
   Expected in: flat namespace

Can you show mkmf.log under ext/readline?

···

--
Nobu Nakada

Sounds like some of us Rails folks need to be testing out the Ruby beta
versions before we let the Ruby team release anything. :slight_smile:

-Robby

···

On Wed, 2005-09-21 at 12:35 +0900, David A. Black wrote:

Hi --

On Wed, 21 Sep 2005, James Edward Gray II wrote:

> I just recompiled Ruby and I'm seeing a lot of issues already.
>
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/
> active_support/clean_logger.rb:13:in `remove_const': constant Logger::Format
> not defined (NameError)

This one is because Logger::Format is now Logger::Formatter::Format.
(Which is, of course, just a diagnosis, not a solution. I think
something will have to change somewhere before Rails apps can run with
1.8.3.)

--
/******************************************************
* Robby Russell, Owner.Developer.Geek
* PLANET ARGON, Open Source Solutions & Web Hosting
* Portland, Oregon | p: 503.351.4730 | f: 815.642.4068
* www.planetargon.com | www.robbyonrails.com
*******************************************************/

I've repaired my Readline install. It's broken under Mac OS X 10.4, but these instructions got me past it:

http://tech.rufy.com/entry/46

That fixed IRb. Now I just need a Rails patch...

James Edward Gray II

···

On Sep 20, 2005, at 10:19 PM, James Edward Gray II wrote:

On Sep 20, 2005, at 10:14 PM, James Edward Gray II wrote:

Neo:~/Desktop/ruby-1.8.3$ irb
dyld: NSLinkModule() error
dyld: Symbol not found: _rl_filename_completion_function
  Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.2.0/readline.bundle
  Expected in: flat namespace

Trace/BPT trap

Following up on this:

Neo:~$ ruby -r readline -e1
dyld: NSLinkModule() error
dyld: Symbol not found: _rl_filename_completion_function
  Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.2.0/readline.bundle
  Expected in: flat namespace

Trace/BPT trap

Looks like my readline support is broken. I know I've compiled it in before. Any guesses?

Yeah, I made a patch for this this morning, only to learn that it has already be sent in. :slight_smile: Those Rails guys are quick.

James Edward Gray II

···

On Sep 20, 2005, at 10:35 PM, David A. Black wrote:

Hi --

On Wed, 21 Sep 2005, James Edward Gray II wrote:

I just recompiled Ruby and I'm seeing a lot of issues already.

/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/ active_support/clean_logger.rb:13:in `remove_const': constant Logger::Format not defined (NameError)

This one is because Logger::Format is now Logger::Formatter::Format.
(Which is, of course, just a diagnosis, not a solution. I think
something will have to change somewhere before Rails apps can run with
1.8.3.)