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

Problem starting the server in ruby OSX Leopard

Subscribe to Problem starting the server in ruby OSX Leopard 10 post(s), 2 voice(s)

 
Avatar mosh 6 post(s)

Hi,

I am new to rails. i have managed to get a little way into doing a test project.

i am doing this tutorial: http://developer.apple.com/Tools/developonrails…

i got to point 7 where is says to start the server after doing everything that is says above it.

I got this error from the debugger:

[Session started at 2009-09-10 09:20:44 +0100.]
env: ruby: No such file or directory

The Debugger has exited with status 127.The Debugger has exited with status 127.

Any help would be much appreciated.

Mosh

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

Hi Mosh,

Are you using the RubyStack? It seems that you are trying to start the servers using the debugger which can not access to ruby command. If you are using RubyStack try the following:

1. Open a terminal
2. Go to your installation directory:

$ cd /Applications/rubystack-(version)

3. Start the console:

$ ./rubyconsole

4. Start the demo project

$ cd projects/rubystack
$ script/server

And you can access to the demo application at http://127.0.0.1:3000. You can find more info in a pdf guide in your installation directory.

I hope it helps

 
Avatar mosh 6 post(s)

Hi beltran,

sorry for being such a noob, when you say Ruby stack do you mean the files that are generated when you run (for example) $ rails [project name] ?

mosh

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

Mmmm not exactly.

If you have followed the tutorial that you said in your first post, you have installed ruby and gems in your system. You have a different option to develop on Ruby On Rails: You can download an install all the Ruby & Rails environment for your OS X using BitNami RubyStack This is an easy installer which let you install in a directory and configure an Apache server, MySQL database, Ruby on Rails and other useful tools like Git, Subversion or nginx. This Stack is independent of your system and you can install several instances to development or production in the same machine.

Cheers

 
Avatar mosh 6 post(s)

ok im installing that. what should i put for the port numbers?

mosh

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

You can use the default ports and if any of them are binded for other application you can use a different one. For example if you have a MySQL server running at 3306 you can use the 3307 port.

Cheers.

 
Avatar mosh 6 post(s)

ok, thats installed now. woohoo. in the terminal where do i navigate to in order to create my applications? anywhere specific after that install?

I appreciate your help and speed of response sooo much.

Thanks

mosh

 
Avatar mosh 6 post(s)

Hi beltran, sorry to be a pain. How do i start a project from this point? if i open the terminal…..

thanks

mosh

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

Hi,

You should follow these steps once you have open a Terminal:

$ cd /Applications/rubystack-version
$ ./rubyconsole
$ cd projects/rubystack
$ ruby scripts/server

You can find a quick-guide at https://bitnami.com/files/stacks/rubystack/rubys…

 
Avatar mosh 6 post(s)

after that last command i got this message:

/Applications/rubystack-1.6-0/ruby/bin/.ruby.bin: No such file or directory — scripts/server (LoadError)

thanks again.