This forum is no longer active. Please post your questions to our new community site

OSX installation error

Subscribe to OSX installation error 11 post(s), 2 voice(s)

 
Avatar CB 10 post(s)

I have a iMac5 with Intel Core2duo, OSx 10.4.11. I was confused on which download to try—the Mac x86 or the Mac PPC.
I eventually did both, but couldn’t get either working.

My last try was the x86 version. I thought it was going well, I chose the Mongrels version, everything seemed to download/extract just fine. However, when I clicked on the link for the Rails Sample Application, I got an error: 500 Internal Server Error Content-type:text/html

I tried to follow the Quick Start pdf very carefully, but the instructions on p. 10-11 for the shell commands are confusing to a noob like me (but I do understand the windows instructions!)

What should I do to get it working? I’ve been at this all day long!

Thanks

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

You can see your OS X processor typing this command into a Terminal:

$ uname -a

And you can see i386 or PowerPC at the end of the line.

On the other hand, BitNami RubyStack start the sample application only the first time that you installed it. If you want to restart the sample application you should to start manually into the rubyconsole:

$ cd /Applications/rubystack-(version)/projects/rubystack
$ script/server

An you can see something similar to this:

=> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)
=> Rails application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server

  • Starting Mongrel listening at 0.0.0.0:3000
  • Starting Rails with development environment…
  • Rails loaded.
  • Loading any Rails specific GemPlugins
  • Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart).
  • Rails signals registered. HUP => reload (without restart). It might not work well.
  • Mongrel 1.1.3 available at 0.0.0.0:3000
  • Use CTRL-C to stop.

Finally, you can access to the sample application at http://127.0.0.1:3000. I hope it helps you.

 
Avatar CB 10 post(s)

Yes, this helped , thankyou. I see I have a i386 and I downloaded the right version.

I never could get the rubyconsole working right (I think it’s because my Applications folder is located on the root directory because I have multiple users on my iMac)

I did get the instructions from another forum post about installing for leopard and he was having the same problems as me. So I followed the very last post and used

 
Avatar CB 10 post(s)

./scripts/setenv.sh

this worked except now I get a message to please install RubyGems and try again

So now what should I do?

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Can you post the error? Can you post the result of the “export” command before and after to execute ”. scripts/setenv.sh”? I think that the multiple users configuration shouldn’t be a problem.

 
Avatar CB 10 post(s)

I opened a new terminal and then I changed directories and then you see below that I am getting a different error than I reported above.

cynthia-butlers-computer:/Applications/rubystack-1.1-0 Cindy$ . scripts/setenv.sh
cynthia-butlers-computer:/Applications/rubystack-1.1-0 Cindy$ cd projects/rubystack
cynthia-butlers-computer:/Applications/rubystack-1.1-0/projects/rubystack Cindy$ script/server
=> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)
=> Rails application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
  • Starting Mongrel listening at 0.0.0.0:3000
    Exiting
    /Applications/rubystack-1.1-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/tcphack.rb:12:in `initialize_without_backlog’: Address already in use – bind(2) (Errno::EADDRINUSE) from /Applications/rubystack-1.1-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/tcphack.rb:12:in `initialize’ from /Applications/rubystack-1.1-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:93:in `new’ from /Applications/rubystack-1.1-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:93:in `initialize’ from /Applications/rubystack-1.1-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:139:in `new’ from /Applications/rubystack-1.1-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:139:in `listener’ from /Applications/rubystack-1.1-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/mongrel_rails:99:in `cloaker_’ from /Applications/rubystack-1.1-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:50:in `call’ from /Applications/rubystack-1.1-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:50:in `initialize’ ... 14 levels… from /Applications/rubystack-1.1-0/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39 from /Applications/rubystack-1.1-0/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’ from /Applications/rubystack-1.1-0/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’
    cynthia-butlers-computer:/Applications/rubystack-1.1-0/projects/rubystack Cindy$
 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi CB,

Thanks for your posts, I can see that you have an application at port 3000:

Applications/rubystack-1.1-0/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/tcphack.rb:12:in `initialize_without_backlog’: Address already in use – bind(2) (Errno::EADDRINUSE)

What do you see at http://127.0.0.1:3000 on your browser? You can try to start the sample application on another port:

cynthia-butlers-computer:/Applications/rubystack-1.1-0 Cindy$ . scripts/setenv.sh
cynthia-butlers-computer:/Applications/rubystack-1.1-0 Cindy$ cd projects/rubystack
cynthia-butlers-computer:/Applications/rubystack-1.1-0/projects/rubystack Cindy$ script/server -p 3001

And you can see the sample application at http://127.0.0.1:3001.

 
Avatar CB 10 post(s)

Hi,
I deleted some posts because they weren’t helpful.

Here is the error I get at http://127.0.0.1:3000 on my browser (firefox):

Status: 500 Internal Server Error Content-Type: text/html
500 Internal Server Error

Here is the error I get at http://127.0.0.1:3001

Unable to connect

Firefox can’t establish a connection to the server at 127.0.0.1:3001.

  • The site could be temporarily unavailable or too busy. Try again in a few moments.
  • If you are unable to load any pages, check your computer’s network connection.
  • If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

What should I try next? I have been trying to shut down the server but I can’t or I don’t know how.

Thanks

 
Avatar CB 10 post(s)

Ooops, I forgot to restart server with script/server -p 3001

I’ll try that now

 
Avatar CB 10 post(s)

Yeah ! finally working on port 3001! Thankyou very much!

Can you tell me why port 3000 does not work? Is it because I choose to run 2 ports for Mongrels during the download/setup?

 
Avatar CB 10 post(s)

Oh no! Another problem. Here is what I see on http://127.0.0.1:3001 after I clicked on “About your applications Environment”

Welcome aboard
You’re riding Ruby on Rails!
About your application’s environment
Mysql::Error in Rails/infoController#properties

Can’t connect to local MySQL server through socket ’/Applications/rubystack-1.1-0/mysql/tmp/mysql.sock’ (2)

RAILS_ROOT: /Applications/rubystack-1.1-0/projects/rubystack