Installing ruby on rails 1.9.3 on windows 7

m sorry its a totally newbie question, but m really stuck. please help
if possible.
after installing everything required to run ruby on rails when i write
the command ‘rails s’ in the command prompt it doesn’t start the server.
rather it shows :

C:\Sites\railsinstaller_demo>rails s
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs/run
times.rb:51:in autodetect': Could not find a JavaScript runtime. See https://gi thub.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUn available) from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/l ib/execjs.rb:5:inmodule:ExecJS
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/l
ib/execjs.rb:4:in <top (required)>' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/coffee-script- 2.2.0/lib/coffee_script.rb:1:inrequire’
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/coffee-script-
2.2.0/lib/coffee_script.rb:1:in <top (required)>' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/coffee-script- 2.2.0/lib/coffee-script.rb:1:inrequire’
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/coffee-script-
2.2.0/lib/coffee-script.rb:1:in <top (required)>' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/coffee-rails-3 .2.2/lib/coffee-rails.rb:1:inrequire’
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/coffee-rails-3
.2.2/lib/coffee-rails.rb:1:in <top (required)>' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22 /lib/bundler/runtime.rb:68:inrequire’
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22
/lib/bundler/runtime.rb:68:in block (2 levels) in require' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22 /lib/bundler/runtime.rb:66:ineach’
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22
/lib/bundler/runtime.rb:66:in block in require' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22 /lib/bundler/runtime.rb:55:ineach’
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22
/lib/bundler/runtime.rb:55:in require' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22 /lib/bundler.rb:122:inrequire’
from C:/Sites/railsinstaller_demo/config/application.rb:7:in
<top (requ ired)>' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/commands.rb:53:inrequire’
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1
/lib/rails/commands.rb:53:in block in <top (required)>' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1 /lib/rails/commands.rb:50:intap’
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1
/lib/rails/commands.rb:50:in <top (required)>' from script/rails:6:inrequire’
from script/rails:6:in `’

Please guide me what to do…
thanks…

You should take a look at this

C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/
execjs-1.4.0/lib/execjs/run
times.rb:51:in `autodetect’: Could not find a JavaScript runtime. See
GitHub - sstephenson/execjs: Run JavaScript code from Ruby for a list of available runtimes.
(ExecJS::RuntimeUnavailable)

Its always useful to look the errors, I’ve seen this problem before you
have to add therubyracer gem to you Gemfile (or take a look at the given
link)

Javier Q

On 11 June 2012 19:19, nishant g. [email protected] wrote:

C:\Sites\railsinstaller_demo>rails s
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs/run
times.rb:51:in `autodetect’: Could not find a JavaScript runtime. See
https://gi
thub.com/sstephenson/execjs for a list of available runtimes.

Please guide me what to do…

Install a javascript runtime?

did everything.
used the rubyracer and copied the source in my gemfile. ran the bundle
install again but no use.

maybe i’m doing the process of adding the rubyracer wrong.
i would be very thankful if you please guide me through the process.
thanks.

Correct link

On 11 June 2012 20:49, nishant g. [email protected] wrote:

did everything.
used the rubyracer and copied the source in my gemfile. ran the bundle
install again but no use.

maybe i’m doing the process of adding the rubyracer wrong.
i would be very thankful if you please guide me through the process.
thanks.

Post your Gemfile here.

Colin

this is the gemfile without the source of the ruby racer added.

thanks for the help.

On 12 June 2012 08:48, nishant g. [email protected] wrote:

this is the gemfile without the source of the ruby racer added.

Please quote the previous reply so we know what you are talking about
without having to go back over previous posts to find the context.
Remember this is a mailing list (though you may be posting via a
forum).

There is no point posting it without ruby racer as that is the one you
need to get working. Also post the output from bundle install
Just post it inline, we don’t want to mess about downloading files.

Colin

On Monday, June 11, 2012 4:49:39 PM UTC-3, Ruby-Forum.com User wrote:

did everything.
used the rubyracer and copied the source in my gemfile. ran the bundle
install again but no use.

maybe i’m doing the process of adding the rubyracer wrong.
i would be very thankful if you please guide me through the process.
thanks.

therubyracer does not work on Windows due it’s dependency on libv8.

Windows already provides a JavaScript engine, but sometimes it might be
missing from your system.

You can simply install Node.JS and restart your computer to ensure
“node”
executable is available in the command prompt.

Then try your Rails application again.


Luis L.

My hero too!!!
=)

Luis L. wrote in post #1064505:

On Monday, June 11, 2012 4:49:39 PM UTC-3, Ruby-Forum.com User wrote:

did everything.
used the rubyracer and copied the source in my gemfile. ran the bundle
install again but no use.

maybe i’m doing the process of adding the rubyracer wrong.
i would be very thankful if you please guide me through the process.
thanks.

therubyracer does not work on Windows due it’s dependency on libv8.

Windows already provides a JavaScript engine, but sometimes it might be
missing from your system.

You can simply install Node.JS and restart your computer to ensure
“node”
executable is available in the command prompt.

Then try your Rails application again.

Luis L.

YOU’RE MY HERO!!!
Thanks a ton!!! :slight_smile:
got it running!!
n sorry for the late reply…just saw your reply today…followed your
advise…restarted my laptop n first thing i do is thank you! i had this
problem bugging me for more than a month now…wish i had seen it earlier
but no problem :slight_smile: i had to use my friend’s laptop where this problem
didn’t occur…now i can use mine :slight_smile: