Translations of this page?:

Discussion

gui, 2009/04/11 13:40

I think it would help to explain how to remove ruby and gems when installed from sources in order to have a clean start if needed. I would write the instructions but actually I don't know how to do it :)

Eric J. Gruber, 2009/04/25 20:17

I installed RoR on a new install of Ubuntu 9.04 today. Everything ran smoothly using these instructions except for two things.

1. Installing rubygems using tar xzvf rubygems-1.3.2.tgz didn't work for me. Instead I used Ubuntu's archive manager to extract the files that wget downloaded. For those having problems with wget, just download the tarball straight from rubyforge then use the archive manager.

2. After getting Rails running, I was unable to migrate an sqlite3 database. I noticed this error message in the logs: rake aborted! no such file to load – sqlite3. I had sqlite3, so what to do? I needed the ruby library to go with it. I ran sudo apt-get install libsqlite3-ruby, then everything worked fine.

João Pedro Morais, 2009/04/27 08:40

Is it possible to install rails on a server that can only be accessed by FTP and that has already ruby, apache and mySQL installed?

hubbub, 2009/06/18 04:22

I was also getting this error message, MissingSourceFile: no such file to load – sqlite3,

installing the lib worked for me too, following Eric Gruber's advice above.

sudo apt-get install libsqlite3-ruby

Mayank, 2010/02/13 06:45

Installing RubyGems using apt-get is not recommended. I installed them using apt-get and everything worked fine. Maybe someone needs to give a citation or the reason behind this statement.

Carlos Troncoso, 2010/04/29 16:31

apt-get is not recomended for RubyGems because, rubygems can update itself, thus corrupting the file list that apt has.

If you use apt-get to install rubygems, then you MUST use apt-get update to upgrade rubygems. Also, files modified will be overwritten by apt during an update.

$gem update –system ←- updating gem itself breaks apt repository.

get the point?

Prashant, 2010/05/23 13:56

You can download the Rails Live CD from : http://www.turnkeylinux.org/rails

Dave Collins, 2011/01/13 03:30

Fantastic instructions! This worked perfectly for me on Ubuntu 10.0. Thanks much.

The only thing I had to do differently is use the “new” command to generate the new Rails project:

rails new myrailsapp -d mysql

Also, when I attempted to create the database with rake db:create, I kept getting access denied errors. I was able to resolve this problem by logging into mysql as root and then granting permission to my user:

grant all privileges on *.* to dave@localhost identified by 'mypassword' with grant option; FLUSH PRIVILEGES;

 
getting-started/installation/linux.txt · Last modified: 2010/11/04 01:15 by contactmayankjain
 
Recent changes RSS feed Creative Commons License