Basé sur :

FIXME Voici ce que j'ai récupéré du post de mon blog:

1) Install Ruby

sudo apt-get install ruby rdoc irb libyaml-ruby libzlib-ruby ri

2) Install RubyGems


tar xzvf rubygems-1.0.1.tgz

cd rubygems-1.0.1

export GEM_HOME=$HOME/lib/ruby/gems/1.8

export RUBYLIB=$HOME/lib:/usr/lib/ruby/1.8

ruby setup.rb all –prefix=$HOME

You should then add GEM_HOME and RUBYLIB into your ~/.profile file to automatically load on login (otherwise some scripts will complain of not finding rubygems).

You should append $HOME/bin and $HOME/lib/ruby/gems/1.8/bin to your PATH defined in your ~/.profile file.

3) Install Rails and it's dependencies (with RubyGems) ~/bin/gem install rails -y

Here is a good time to install any gems you may need like mongrel and MySQL below.

To install mongrel, you can do the following:

sudo apt-get install build-essential

sudo apt-get install ruby1.8-dev

gem install mongrel

If you would like to install the mysql gem,

sudo apt-get install libmysqlclient15-dev

then run

gem install mysql

4) Create your first Rails app, as the current user (i.e., no sudo):

$ ~/lib/ruby/gems/1.8/bin/rails /path/to/new/railsapp

Of course, replace /path/to/new/railsapp with the path to the location where you'd like the source code for your new Rails application to exist. This can be /home/myhome/rails/myapp.

langage/script/ruby/gem/install/non_root.txt · Dernière modification: 2008/02/18 01:05 par bertux
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki