Help going from Rails 3.2.8 to 3.2.1

Hey everyone. I have rails 3.2.8 installed but I need 3.2.1 installed
either paralell with 3.2.8 or permently replacing it. I received work
with
an existing 3.2.1 site, and the owner does not want to upgrade to 3.2.8.

I downloaded release 3.2.1 from GitHub however I can not figure out how
to
install it. I tried running the install.rb script, but it fails
complaining that it cannot find the .gem files for multiple things
(activesupport, activemodel, … etc).
So I tried running gem install rails --version 3.2.1 and this says it
installed rails and I get this output:


Successfully installed rails-3.2.1
1 gem installed
Installing ri documentation for rails-3.2.1…
Installing RDoc documentation for rails-3.2.1…

but I cannot find out where it was installed to.


$ /usr/bin/rails -v
Rails 2.3.14
$ /usr/local/bin/rails -v
Rails 3.2.8
$ ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
$ gem -v
1.8.24

On Saturday, September 22, 2012 2:05:03 PM UTC+1, Michael J. wrote:

Hey everyone. I have rails 3.2.8 installed but I need 3.2.1 installed
either paralell with 3.2.8 or permently replacing it. I received work with
an existing 3.2.1 site, and the owner does not want to upgrade to 3.2.8.

You don’t need to install rails 3.2.1 - just run bundle install from the
root of this app and bundler will take care of that for you. You’ll
probably need to prefix rails commands with bundle exec (eg bundle exec rails console instead of rails console)

Fred

Hey Fred,

I’ve ran bundle install, but when I want to start the server I get the
following error:

Error is the same for both ‘rails server’ and ‘bundle exec rails server’


$ bundle exec rails server
/usr/local/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs/runtimes.rb:51:in
autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable) from /usr/local/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs.rb:5:inmodule:ExecJS
from
/usr/local/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs.rb:4:in
<top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:inrequire’
from
/usr/local/lib/ruby/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in
<top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:inrequire’
from
/usr/local/lib/ruby/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in
<top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:inrequire’
from
/usr/local/lib/ruby/gems/1.9.1/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in
<top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.0/lib/bundler/runtime.rb:68:inrequire’
from
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.0/lib/bundler/runtime.rb:68:in
block (2 levels) in require' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.0/lib/bundler/runtime.rb:66:ineach’
from
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.0/lib/bundler/runtime.rb:66:in
block in require' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.0/lib/bundler/runtime.rb:55:ineach’
from
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.0/lib/bundler/runtime.rb:55:in
require' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.0/lib/bundler.rb:128:inrequire’
from /home/draugen/dev/deal_site/config/application.rb:6:in <top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:53:inrequire’
from
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:53:in
block in <top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:50:intap’
from
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:50:in
<top (required)>' from script/rails:6:inrequire’
from script/rails:6:in `’

execjs was installed by bundle.

------------------- Bundle Output ----------------------
$ bundle install
Using rake (0.9.2.2)
Using i18n (0.6.1)
Using multi_json (1.3.6)
Using activesupport (3.2.8)
Using builder (3.0.3)
Using activemodel (3.2.8)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.8)
Using mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.8)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.8)
Using activeresource (3.2.8)
Using coffee-script-source (1.3.3)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.7.5)
Using rdoc (3.12)
Using thor (0.16.0)
Using railties (3.2.8)
Using coffee-rails (3.2.2)
Using factory_girl (4.1.0)
Using factory_girl_rails (4.1.0)
Using jquery-rails (2.0.3)
Using bundler (1.2.0)
Using rails (3.2.8)
Using sass (3.2.1)
Using sass-rails (3.2.5)
Using sqlite3 (1.3.6)
Using timecop (0.5.1)
Using uglifier (1.3.0)
Your bundle is complete! Use bundle show [gemname] to see where a
bundled
gem is installed.

What else could I try?

Thanks
-Michael

Ian,

adding the ruby racer gem to the gem file worked.

Thank you both for your help, I appreciate it.
-Michael

Add the ruby racer gem to your gem file otherwise install node js

Regards

2012/9/22 Michael J. [email protected]