Every repository with this icon (
Every repository with this icon (
Prerequisites
- Ruby 1.8
- Rubygems
- ImageMagick
- SQLite 3 (Ruby lib) or MySQL
OneBody uses SQLite 3 for its database by default, to make getting up and running easier for development. If however, you are setting up a production environment, you should use MySQL.
Install on Mac
Install MacPorts and add the following to your /etc/profile:
PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin"
Restart all terminal instances.
sudo port install imagemagick
sudo gem install rails sqlite3-ruby
Install on Linux
Because each Linux Distribution can be slightly different, all commands are specific to our favorite, Ubuntu (and will probably work on other Debian-based distributions).
sudo aptitude install ruby irb1.8 rake rdoc1.8 ruby1.8-dev mysql-server postfix courier-pop libmysql-ruby1.8 build-essential imagemagick apache2 apache2-threaded-dev apache2-mpm-worker apache2-threaded-dev libxml2-dev libxslt1-dev libcurl4-gnutls-dev libhttp-access2-ruby1.8 rsync
The version of RubyGems shipped with Ubuntu is broken. It’s best to download and install from source:
cd /tmp
wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
tar xzvf rubygems-1.3.5.tgz
cd rubygems
sudo ruby setup.rb
sudo ln -sf /usr/bin/gem1.8 /usr/bin/gem
gem -v # should output 1.3.5
Now install Rails:
sudo gem install rails
Install on Windows
Install the Ruby One-Click Installer from here.
When installing Ruby, install to C:\ruby as suggested — not C:\Program Files or another path with a space.
Download and install an ImageMagick binary from here.
Choose ImageMagick-x.y.z-Q16-windows-dll.exe or similar.
gem install rails sqlite3-ruby






