Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Ruby broken in Fedora Core 4?

Reply
Thread Tools

Ruby broken in Fedora Core 4?

 
 
hammer995@gmail.com
Guest
Posts: n/a
 
      08-22-2005
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

 
Reply With Quote
 
 
 
 
Alex Nedelcu
Guest
Posts: n/a
 
      08-22-2005
try reinstalling raills

 
Reply With Quote
 
 
 
 
EdUarDo
Guest
Posts: n/a
 
      08-22-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) 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.
 
Reply With Quote
 
Brock Weaver
Guest
Posts: n/a
 
      08-22-2005
$ /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.


On 8/22/05, EdUarDo <(E-Mail Removed)> wrote:
> (E-Mail Removed) 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.

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



--=20
Brock Weaver
[OBC]Technique


 
Reply With Quote
 
hammer995@gmail.com
Guest
Posts: n/a
 
      08-22-2005
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.

 
Reply With Quote
 
hammer995@gmail.com
Guest
Posts: n/a
 
      08-22-2005
0.0.0.0 seems to bind to all interfaces including localhost.

 
Reply With Quote
 
Robert Oliver
Guest
Posts: n/a
 
      08-22-2005
------=_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.


On 8/22/05, (E-Mail Removed) <(E-Mail Removed)> wrote:
>=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--


 
Reply With Quote
 
hammer995@gmail.com
Guest
Posts: n/a
 
      08-23-2005
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mozilla Browser Won't Run on FC3 (Fedora Core 3) Scott Gravenhorst Firefox 1 04-12-2006 06:45 PM
Core Solo & Core Duo are not Core microarchitecture; 65nm Pentium M chips bigal Hardware 0 03-22-2006 11:24 AM
Fedora Core 3 & Core 4 Password questions Brandon Computer Security 4 08-15-2005 04:30 AM
JAR help in FEDORA CORE 2 Trent Java 1 05-28-2004 07:32 AM
fedora core 1 and mozilla 1.4.1 joost68 Firefox 1 05-14-2004 09:20 PM



Advertisments