Ruby broken in Fedora Core 4?

H

hammer995

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
 
E

EdUarDo

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.
 
B

Brock Weaver

$ /usr/bin/ruby script/server
=3D> 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.


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


--=20
Brock Weaver
[OBC]Technique
 
H

hammer995

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.
 
R

Robert Oliver

------=_Part_421_19639596.1124751633266
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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.


=20
Sorry if this has been posted already,
=20
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...
=20
$ /usr/bin/ruby script/server
=3D> Rails application started on http://0.0.0.0:3000
=3D> 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=3D3762
port=3D3000
192.168.44.1 <http://192.168.44.1> - - [22/Aug/2005:01:15:11 EDT] "GET /= =20
HTTP/1.1" 200 3156
- -> /
192.168.44.1 <http://192.168.44.1> - - [22/Aug/2005:01:15:12 EDT] "GET=20
/favicon.ico HTTP/1.1"
200 0
- -> /favicon.ico
=20
#<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=20
/say/hello HTTP/1.1"
404 278
=20
=20
=20


--=20
Robert W. Oliver II
CEO / President - OCS Solutions, Inc.
http://www.ocssolutions.com/

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

------=_Part_421_19639596.1124751633266--
 
H

hammer995

Robert,

I followed your instructions and I have the same problem. Very strange
since nobody else is having an issue. I already had the zlib-devel pkg
installed but I yum'd it again anyways.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top