# From Instantrails to the Mac

**URL:** <https://www.ruby-forum.com/t/from-instantrails-to-the-mac/158396>\
**Category:** Rails\
**Created:** [January 22, 2009, 9:57pm UTC](https://www.ruby-forum.com/t/from-instantrails-to-the-mac/158396 "2009-01-22T21:57:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![eduardopa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ee7513/32.png) [@eduardopa](https://www.ruby-forum.com/u/eduardopa)\
**Post date:** [January 22, 2009, 9:57pm UTC](https://www.ruby-forum.com/t/from-instantrails-to-the-mac/158396/1 "2009-01-22T21:57:08Z")

</div>

Hi,

I am a Newbie to Mac and Rails.

I have a rails apps made using instantrails in windows, and have  
been trying to transfer it to a mac.

I am using Leopard and installed mac ports and Xcode.

I copied the folder from rails\_apps and added all the gems.

Anything else I need to do? Any Ideas?

Thank you!

This is the set of errors that I am getting after starting the server:

Exiting  
/opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_require': no such file to load -- ruby-debug (MissingSourceFile) from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/ custom_require.rb: 31:in`require’  
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/  
lib/  
active\_support/dependencies.rb:153:in `require' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/ lib/ active_support/dependencies.rb:521:in`new\_constants\_in’  
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/  
lib/  
active\_support/dependencies.rb:153:in `require' from /Users/rafaelparra/Sites/deasygn/config/environments/ development.rb:22:in`load\_environment’  
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/  
initializer.rb:  
340:in `load_environment' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/ lib/ active_support/core_ext/kernel/reporting.rb:11:in`silence\_warnings’  
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/  
initializer.rb:  
333:in `load_environment' from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/ initializer.rb: 136:in`process’  
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/  
initializer.rb:  
112:in `send' from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/ initializer.rb: 112:in`run’  
from /Users/rafaelparra/Sites/deasygn/config/environment.rb:13  
from /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/  
custom\_require.rb:  
31:in `gem_original_require' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/ custom_require.rb: 31:in`require’  
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/  
lib/  
active\_support/dependencies.rb:153:in `require' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/ lib/ active_support/dependencies.rb:521:in`new\_constants\_in’  
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/  
lib/  
active\_support/dependencies.rb:153:in `require' from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../ lib/ mongrel/rails.rb:147:in`rails’  
from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/  
mongrel\_rails:113:in `cloaker_' from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/ mongrel/ configurator.rb:149:in`call’  
from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/  
mongrel/  
configurator.rb:149:in `listener' from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/ mongrel_rails:99:in`cloaker\_’  
from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/  
mongrel/  
configurator.rb:50:in `call' from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/ mongrel/ configurator.rb:50:in`initialize’  
from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/  
mongrel\_rails:84:in `new' from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/ mongrel_rails:84:in`run’  
from

---

<div class="post-metadata">

**Author:** ![eduardopa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ee7513/32.png) [@eduardopa](https://www.ruby-forum.com/u/eduardopa)\
**Post date:** [January 22, 2009, 10:00pm UTC](https://www.ruby-forum.com/t/from-instantrails-to-the-mac/158396/2 "2009-01-22T22:00:08Z")

</div>

What version of Rails do you have installed on OS X?

---

<div class="post-metadata">

**Author:** ![eduardopa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ee7513/32.png) [@eduardopa](https://www.ruby-forum.com/u/eduardopa)\
**Post date:** [January 23, 2009, 12:10am UTC](https://www.ruby-forum.com/t/from-instantrails-to-the-mac/158396/3 "2009-01-23T00:10:30Z")

</div>

sudo gem install ruby-debug

---

<div class="post-metadata">

**Author:** ![eduardopa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ee7513/32.png) [@eduardopa](https://www.ruby-forum.com/u/eduardopa)\
**Post date:** [January 23, 2009, 3:42am UTC](https://www.ruby-forum.com/t/from-instantrails-to-the-mac/158396/4 "2009-01-23T03:42:20Z")

</div>

s.ross,

I added the gem and it took care of some of the errors.  
But do you know what can I do about the rest?

Bob M.,

the rails gem version on instant rails is  
rails (2.1.0, 1.2.2)

Thanks for the help!

This are the current gems and errors in the mac:

\*\*\* LOCAL GEMS \*\*\*

actionmailer (2.2.2)  
actionpack (2.2.2, 2.1.0)  
activerecord (2.2.2, 2.1.0)  
activeresource (2.2.2)  
activesupport (2.2.2, 2.1.0)  
acts\_as\_ferret (0.4.3)  
aslakhellesoy-webrat (0.3.2.1)  
capistrano (2.5.3)  
cgi\_multipart\_eof\_fix (2.5.0)  
cmdparse (2.0.2)  
columnize (0.3.0)  
daemons (1.0.10)  
dnssd (0.7.0)  
fastthread (1.0.1)  
fcgi (0.8.7)  
ferret (0.11.6)  
gem\_plugin (0.2.3)  
highline (1.5.0)  
hpricot (0.6.164)  
libxml-ruby (0.9.7)  
linecache (0.43)  
mislav-will\_paginate (2.3.6)  
mongrel (1.1.5)  
net-scp (1.0.1)  
net-sftp (2.0.1)  
net-ssh (2.0.8)  
net-ssh-gateway (1.0.0)  
nokogiri (1.1.0)  
rails (2.2.2)  
rake (0.8.3)  
RedCloth (4.1.1)  
ruby-debug (0.10.3)  
ruby-debug-base (0.10.3)  
ruby-openid (2.1.2)  
sources (0.0.1)  
sqlite3-ruby (1.2.4)  
termios (0.9.4)

> > ruby script/server

=\> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)  
=\> Rails 2.2.2 application starting on [http://0.0.0.0:3000](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…

* * *

```
  * config.breakpoint_server has been deprecated and has no

```

effect. \*

* * *

Exiting  
/opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:  
530:in `send': undefined method `cache\_template\_extensions=’ for  
ActionView::Base:Class (NoMethodError)  
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:  
530:in `initialize_framework_settings' from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb: 529:in `each’  
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:  
529:in `initialize_framework_settings' from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb: 526:in `each’  
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:  
526:in `initialize_framework_settings' from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb: 154:in `process’  
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:  
112:in `send' from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb: 112:in `run’  
from /Users/a/Sites/deasygn/config/environment.rb:13  
from /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/custom\_require.rb:  
31:in `gem_original_require' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb: 31:in `require’  
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/  
active\_support/dependencies.rb:153:in `require' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/dependencies.rb:521:in `new\_constants\_in’  
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/  
active\_support/dependencies.rb:153:in `require' from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/ mongrel/rails.rb:147:in `rails’  
from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/  
mongrel\_rails:113:in `cloaker_' from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/ configurator.rb:149:in `call’  
from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/  
configurator.rb:149:in `listener' from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/ mongrel_rails:99:in `cloaker\_’  
from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/  
configurator.rb:50:in `call' from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/ configurator.rb:50:in `initialize’  
from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/  
mongrel\_rails:84:in `new' from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/ mongrel_rails:84:in `run’  
from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/  
command.rb:212:in `run' from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/ mongrel_rails:281 from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/dependencies.rb:142:in `load\_without\_new\_constant\_marking’  
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/  
active\_support/dependencies.rb:142:in `load' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/dependencies.rb:521:in `new\_constants\_in’  
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/  
active\_support/dependencies.rb:142:in `load' from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/ servers/mongrel.rb:64 from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb: 31:in `gem\_original\_require’  
from /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/custom\_require.rb:  
31:in `require' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/dependencies.rb:153:in `require’  
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/  
active\_support/dependencies.rb:521:in `new_constants_in' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/dependencies.rb:153:in `require’  
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/  
server.rb:49  
from /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/custom\_require.rb:  
31:in `gem_original_require' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb: 31:in `require’  
from script/server:3

---

<div class="post-metadata">

**Author:** ![eduardopa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ee7513/32.png) [@eduardopa](https://www.ruby-forum.com/u/eduardopa)\
**Post date:** [January 23, 2009, 3:47am UTC](https://www.ruby-forum.com/t/from-instantrails-to-the-mac/158396/5 "2009-01-23T03:47:03Z")

</div>

The list of gem in instantrails is here:  
[http://dl.getdropbox.com/u/378619/Gems.JPG](http://dl.getdropbox.com/u/378619/Gems.JPG)

---

<div class="post-metadata">

**Author:** ![eduardopa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ee7513/32.png) [@eduardopa](https://www.ruby-forum.com/u/eduardopa)\
**Post date:** [January 23, 2009, 4:09am UTC](https://www.ruby-forum.com/t/from-instantrails-to-the-mac/158396/6 "2009-01-23T04:09:18Z")

</div>

Looks to me like you might have a problem with the Rails version on  
the new box. If 1.2.2 and 2.1.0 were on Instant Rails, you might want  
to install 2.1.0 on the new box, make sure everything is working, then  
work towards updating your app to 2.2.2 or Edge after that.

Just my recommendation.

---

<div class="post-metadata">

**Author:** ![eduardopa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ee7513/32.png) [@eduardopa](https://www.ruby-forum.com/u/eduardopa)\
**Post date:** [January 26, 2009, 10:18pm UTC](https://www.ruby-forum.com/t/from-instantrails-to-the-mac/158396/7 "2009-01-26T22:18:06Z")

</div>

Bob and s.ross,

Thanks for your help.  
I downgraded to 2.1.0 and the app is working.

Thank you!

---

<div class="post-metadata">

**Author:** ![eduardopa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ee7513/32.png) [@eduardopa](https://www.ruby-forum.com/u/eduardopa)\
**Post date:** [January 23, 2009, 8:34pm UTC](https://www.ruby-forum.com/t/from-instantrails-to-the-mac/158396/8 "2009-01-23T20:34:03Z")

</div>

I’m afraid you will have to tackle the errors one at a time. I just  
did an upgrade from 2.0.2 to 2.2.2 and there were a number of changes  
that caused problems. For the current one, comment this line out  
(remove when safe). It’s been removed from Rails 2.2.2:

cache\_template\_extensions=true

Also, remove the reference to config.breakpoint\_server

You’re not just doing a platform switch, you’re doing a version  
upgrade, so allocate a bit of time to ironing out the differences.

---

<div class="post-metadata">

**Author:** ![eduardopa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ee7513/32.png) [@eduardopa](https://www.ruby-forum.com/u/eduardopa)\
**Post date:** [January 26, 2009, 11:48pm UTC](https://www.ruby-forum.com/t/from-instantrails-to-the-mac/158396/9 "2009-01-26T23:48:29Z")

</div>

Excellent, glad we could point you in the right direction.
