Ruby broken in Fedora Core 4?

Discussion in 'Ruby' started by hammer995@gmail.com, Aug 22, 2005.

  1. Guest

    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
     
    , Aug 22, 2005
    #1
    1. Advertising

  2. Alex Nedelcu Guest

    try reinstalling raills
     
    Alex Nedelcu, Aug 22, 2005
    #2
    1. Advertising

  3. EdUarDo Guest

    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.
     
    EdUarDo, Aug 22, 2005
    #3
  4. Brock Weaver Guest

    $ /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 <> wrote:
    > 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
     
    Brock Weaver, Aug 22, 2005
    #4
  5. Guest

    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.
     
    , Aug 22, 2005
    #5
  6. Guest

    0.0.0.0 seems to bind to all interfaces including localhost.
     
    , Aug 22, 2005
    #6
  7. ------=_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, <> 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--
     
    Robert Oliver, Aug 23, 2005
    #7
  8. Guest

    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.
     
    , Aug 23, 2005
    #8
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Trent

    JAR help in FEDORA CORE 2

    Trent, May 27, 2004, in forum: Java
    Replies:
    1
    Views:
    414
    David Lesaffre
    May 28, 2004
  2. AnonymousFC4
    Replies:
    7
    Views:
    2,381
    Jon Martin Solaas
    Aug 9, 2005
  3. jabelsc
    Replies:
    0
    Views:
    611
    jabelsc
    Mar 6, 2006
  4. Thomas
    Replies:
    1
    Views:
    398
    Rob Renaud
    Nov 19, 2003
  5. Logan
    Replies:
    4
    Views:
    476
Loading...

Share This Page