Ruby broken in Fedora Core 4?

(hammer995@gmail.com) #1

Sorry if this has been posted already,

I am using the FC4 with the lastest yum update. If I use the ruby in
/usr/bin/ruby I get the following error while trying to do the simple
hello world example in the Agile web dev on rails book. I compiled my
own version of ruby and that works correctly. Is there a fix for this.
I searched but didn't see anything specific. I did a gem install
rails -y to install everything. I tried on two different installations
of FC4 with the same result. Thanks...

$ /usr/bin/ruby script/server
=> Rails application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2005-08-22 01:14:58] INFO WEBrick 1.3.1
[2005-08-22 01:14:58] INFO ruby 1.8.2 (2004-12-25) [i386-linux]
[2005-08-22 01:14:58] INFO WEBrick::HTTPServer#start: pid=3762
port=3000
192.168.44.1 - - [22/Aug/2005:01:15:11 EDT] "GET / HTTP/1.1" 200 3156
- -> /
192.168.44.1 - - [22/Aug/2005:01:15:12 EDT] "GET /favicon.ico HTTP/1.1"
200 0
- -> /favicon.ico

#<NameError: uninitialized constant Breakpoint>
["/usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:186:in
`const_missing'",
"/usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:56:in
`reset_after_dispatch'",
"/usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:36:in
`dispatch'",
"/usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:105:in
`handle_dispatch'",
"/usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:71:in
`service'", "/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'",
"/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'",
"/usr/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'",
"/usr/lib/ruby/1.8/webrick/server.rb:144:in `start'",
"/usr/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'",
"/usr/lib/ruby/1.8/webrick/server.rb:94:in `start'",
"/usr/lib/ruby/1.8/webrick/server.rb:89:in `each'",
"/usr/lib/ruby/1.8/webrick/server.rb:89:in `start'",
"/usr/lib/ruby/1.8/webrick/server.rb:79:in `start'",
"/usr/lib/ruby/1.8/webrick/server.rb:79:in `start'",
"/usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:57:in
`dispatch'", "script/server:49"]
[2005-08-22 01:15:17] ERROR `/say/hello' not found.
192.168.44.1 - - [22/Aug/2005:01:15:17 EDT] "GET /say/hello HTTP/1.1"
404 278

(EdUarDo) #2

hammer995@gmail.com wrote:

Sorry if this has been posted already,

I am using the FC4 with the lastest yum update. If I use the ruby in
/usr/bin/ruby I get the following error while trying to do the simple
hello world example in the Agile web dev on rails book.

I've also use FC4 and seems to work fine for me.

(hammer995@gmail.com) #3

I have done this as well. Multiple times on two different machines via
gems. Like I said...if i use my own copy of ruby everything works
fine. I do get the Welcome to Rails when i connect to port 3000. Its
just when I create the Say controller and hello.rhtml it doesn't seem
to find it.

(Robert Oliver) #4

Try running:

gem update
gem install rails

Also, make sure that zlib-devel is installed by doing:

rpm -qa | grep "zlib-devel"

If you don't get anything back, I recommend doing:

yum install zlib-devel

then reinstalling ruby gems.

I hope it helps, if it doesn't, let me know and we'll go from there.

···

On 8/22/05, hammer995@gmail.com <hammer995@gmail.com> wrote:

Sorry if this has been posted already,

I am using the FC4 with the lastest yum update. If I use the ruby in
/usr/bin/ruby I get the following error while trying to do the simple
hello world example in the Agile web dev on rails book. I compiled my
own version of ruby and that works correctly. Is there a fix for this.
I searched but didn't see anything specific. I did a gem install
rails -y to install everything. I tried on two different installations
of FC4 with the same result. Thanks...

$ /usr/bin/ruby script/server
=> Rails application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2005-08-22 01:14:58] INFO WEBrick 1.3.1
[2005-08-22 01:14:58] INFO ruby 1.8.2 (2004-12-25) [i386-linux]
[2005-08-22 01:14:58] INFO WEBrick::HTTPServer#start: pid=3762
port=3000
192.168.44.1 <http://192.168.44.1> - - [22/Aug/2005:01:15:11 EDT] "GET /
HTTP/1.1" 200 3156
- -> /
192.168.44.1 <http://192.168.44.1> - - [22/Aug/2005:01:15:12 EDT] "GET
/favicon.ico HTTP/1.1"
200 0
- -> /favicon.ico

#<NameError: uninitialized constant Breakpoint>
["/usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1
/lib/active_support/dependencies.rb:186:in
`const_missing'",
"/usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:56:in
`reset_after_dispatch'",
"/usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:36:in
`dispatch'",
"/usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:105:in
`handle_dispatch'",
"/usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:71:in
`service'", "/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'",
"/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'",
"/usr/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'",
"/usr/lib/ruby/1.8/webrick/server.rb:144:in `start'",
"/usr/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'",
"/usr/lib/ruby/1.8/webrick/server.rb:94:in `start'",
"/usr/lib/ruby/1.8/webrick/server.rb:89:in `each'",
"/usr/lib/ruby/1.8/webrick/server.rb:89:in `start'",
"/usr/lib/ruby/1.8/webrick/server.rb:79:in `start'",
"/usr/lib/ruby/1.8/webrick/server.rb:79:in `start'",
"/usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:57:in
`dispatch'", "script/server:49"]
[2005-08-22 01:15:17] ERROR `/say/hello' not found.
192.168.44.1 <http://192.168.44.1> - - [22/Aug/2005:01:15:17 EDT] "GET
/say/hello HTTP/1.1"
404 278

--
Robert W. Oliver II
CEO / President - OCS Solutions, Inc.

Ruby / Ruby on Rails Discussion at http://www.rubyforums.com/

(Brock Weaver) #5

$ /usr/bin/ruby script/server
=> Rails application started on http://0.0.0.0:3000
[snip]

It didn't bind to 127.0.0.1:3000 on startup. You might have something
else taking up that port (another instance of webrick maybe?) or a
software firewall is preventing webrick from initializing that port
for accepting connections.

I've had this problem before on XP and it caused "weird" errors like
the ones you're seeing.

···

On 8/22/05, EdUarDo <eduardo.yanezNOSPAM@nospamgmail.com> wrote:

hammer995@gmail.com wrote:
> Sorry if this has been posted already,
>
> I am using the FC4 with the lastest yum update. If I use the ruby in
> /usr/bin/ruby I get the following error while trying to do the simple
> hello world example in the Agile web dev on rails book.

I've also use FC4 and seems to work fine for me.

--
Brock Weaver
[OBC]Technique

(hammer995@gmail.com) #6

0.0.0.0 seems to bind to all interfaces including localhost.