Follow instructions from modrails.com
but at the end don't forget this.
cd /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.2
sudo find . -perm 0662 -exec chmod 664 {} \;
Some people messed up with permissions.
Friday, August 22, 2008
Ruby/Rails from Source
wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.6.tar.gz
wget http://rubyforge.org/frs/download.php/20989/rubygems-0.9.4.tgz
sudo cp -r ~/ruby-1.8.6 /usr/local/src/
sudo cp -r ~/rubygems-0.9.4 /usr/local/src/
# Ubuntu
sudo apt-get install zlib*
cd /usr/local/src/ruby-1.8.6/ext/zlib/
ruby extconf.rb --with-zlib-include=/usr/include --with-zlib-lib=/usr/lib
make
sudo make install
cd /usr/local/src/rubygems-0.9.4/
sudo ruby setup.rb config
sudo ruby setup.rb setup
sudo ruby setup.rb install
cd
sudo gem install rails --with-dependencies
wget http://rubyforge.org/frs/download.php/20989/rubygems-0.9.4.tgz
sudo cp -r ~/ruby-1.8.6 /usr/local/src/
sudo cp -r ~/rubygems-0.9.4 /usr/local/src/
# Ubuntu
sudo apt-get install zlib*
cd /usr/local/src/ruby-1.8.6/ext/zlib/
ruby extconf.rb --with-zlib-include=/usr/include --with-zlib-lib=/usr/lib
make
sudo make install
cd /usr/local/src/rubygems-0.9.4/
sudo ruby setup.rb config
sudo ruby setup.rb setup
sudo ruby setup.rb install
cd
sudo gem install rails --with-dependencies
Subscribe to:
Posts (Atom)