Tuesday, December 13, 2011

[Rails] Trouble setting up Rails with a JS runtime environment

Hi all,
I'm using Ubuntu 11.10 and the terminal to install and run Rails. Here
is the process I've taken so far to setup Rails:

> download and install Ruby 1.9.2 and Rails 3.1.0
-- I did this using 'sudo apt-get ruby1.9.1' and 'sudo gem install
rails'
> I made a new rails app using 'rails new path/to/app'
> I went to the new app directory and tried running 'rails server' and got an
error about not having a JS ruby environment
> I had to get a JS runtime environment for execjs so I downloaded 'therubyracer'
as well as 'therubyrhino' and added them to my gem file, one at a time:
'gem
'therubyracer'' then ran 'bundle install'
> After everything was successful with the install, I ran 'rails server' again
-- with both runtime environments I have had similar errors:

Could not find libv8-3.3.10.4 in any of the sources
Run `bundle install` to install missing gems.

Could not find therubyrhino-1.73.0 in any of the sources
Run `bundle install` to install missing gems.

Bundle knows where these programs live, giving correct pathnames when I
enter 'bundle show libv8' or 'bundle show therubyrhino'. They are both
in /usr/lib/ruby/gems/1.9.1/gems/___ where all the other gems are
located for the bundle install.

Does anyone know where this exception is coming up in the Rails source
code? Does anyone know how Rails is gathering the gems? Better yet,
anyone had this problem and know how to fix it?

Thanks so much,
Feav

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate