On 27 March 2010 23:10, Luan <[email protected]> wrote: > > You can read the instructions here: > > http://rubyonrails.org/download > > 1. First, you need to install rubygems here > http://docs.rubygems.org/ > > Install rubygems instruction here: > http://docs.rubygems.org/read/chapter/3 > > 2. Then you can install rails. The instruction also here: > http://rubyonrails.org/download
Those are not particularly helpful as they are not ubuntu specific. For example http://docs.rubygems.org/read/chapter/3 suggests gem install rails when on Ubuntu it should be sudo gem install rails. Google for ubuntu install ruby rails will I am sure give lots of hits. I use this script to install it for use with apache and mysql. You would have to tweak the folder names. Also check whether I am fetching the latest version of rubygems, it may have been upgraded since I used this last. Note that there are other solutions which avoid apache and mysql but this is how I do it. Install apache and mysql first, preferably (see below). # this derived from http://www.hackido.com/2009/04/install-ruby-rails-on-ubuntu-904-jaunty.html # bits for building stuff sudo apt-get install build-essential # ruby and mysql stuff, this assumes that the lamp stack with mysql has already been installed sudo apt-get install ruby ri rdoc libmysql-ruby ruby1.8-dev irb1.8 libdbd-mysql-perl libdbi-perl libmysql-ruby1.8 libmysqlclient15off libnet-daemon-perl libplrpc-perl libreadline-ruby1.8 libruby1.8 rdoc1.8 ri1.8 ruby1.8 irb libopenssl-ruby libopenssl-ruby1.8 libhtml-template-perl wget -N -P /home/colinl/downloads http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz tar xvzf /home/colinl/downloads/rubygems-1.3.5.tgz cd rubygems-1.3.5 sudo ruby setup.rb cd .. rm -rf rubygems-1.3.5 echo " making symlinks - not sure if this will always be necessary, must be done if gem -v does not work" sudo ln -s /usr/bin/gem1.8 /usr/local/bin/gem sudo ln -s /usr/bin/ruby1.8 /usr/local/bin/ruby sudo ln -s /usr/bin/rdoc1.8 /usr/local/bin/rdoc sudo ln -s /usr/bin/ri1.8 /usr/local/bin/ri sudo ln -s /usr/bin/irb1.8 /usr/local/bin/irb # rails latest version sudo gem install rails # any other versions needed #sudo gem install rails --version 2.3.2 To install the lamp stack and mysql - preferably do this before install ruby and rails # this installs the lamp stack, the ^ is important. See https://help.ubuntu.com/community/Tasksel sudo apt-get install lamp-server^ sudo apt-get install libapache2-mod-auth-mysql phpmyadmin echo "**************************************************************" echo "check server by http://localhost, should show 'It Works'" echo "to check php (or just go to phpmyadmin below):" echo "gksudo gedit /var/www/testing.php and put <?php phpinfo(); ?> in it" echo "restart apache, not sure why by sudo service apache2 restart (possibly because php was installed after apache)" echo "go to http://localhost/testing.php" echo "check phpmyadmin by http://localhost/phpmyadmin" echo "To allow access to ~/webpages edit /etc/apache2/sites-available/default" echo "Change Document Root and associated directory line from /var/www to /home/colinl/websites" echo "note that doc root has no trailing /, directory does. Then restart apache" echo "**************************************************************" Colin > On Mar 27, 4:41 pm, sachiguns <[email protected]> wrote: >> i am new to rails so please help me to install >> ruby on rails to my ubuntu 9.10 >> >> Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

