Rails setup

10 Sep

1. Get source code from repository
2. Install Ruby
3. Get RubyGems tarball from rubyforge.org
4. Explode tarball, run “ruby setup.rb” – this will install gems
5. Install mongrel: “gem install mongrel”
6. To run mongrel: “mongrel_rails start”

Note if there are complaints about RMagick/ImageMagick:
(e.g.: “/usr/lib/ruby/gems/1.8/gems/rmagick-2.5.2/lib/RMagick2.so: libMagickCore.so.1: cannot open shared object file: No such file or directory – /usr/lib/ruby/gems/1.8/gems/rmagick-2.5.2/lib/RMagick2.so (LoadError)”)

  • Get the ImageMagick tarball
  • cd ImageMagick-xxx
  • ./configure
  • make
  • sudo make install
  • sudo gem install rmagick
  • export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
  • mongrel_rails start

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: