2009/12/6 LuisRuby <[email protected]>: > Dear friends, > I installed RoR using the "Agile Web Development with Rails, 3rd > edition" recipe in my Ubuntu 9.04. Apparently all has been installed > well, but when I try to create a new application (page 35) using the > command "rails demo", I get the message "The program 'rails' is > currently not installed. You can install it by typing: sudo apt-get > install rails. bash: rails: command not found." > It seems that Ubuntu not find Rails... and I typed the command "export > PATH=/var/lib/gems/1.8/bin:$PATH. > Sorry, I am RoR and Ubuntu novice. > Thank you in advance!!
I use this script to install the lamp stack, mysql ruby and rails (on ubuntu 9.10, not sure if any diffs on 9.04). It assumes that there is a folder ~/downloads. Don't just copy and paste it, you have to work out where the lines have been folded by the mailer # 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 # this derived from http://www.hackido.com/2009/04/install-ruby-rails-on-ubuntu-904-jaunty.html # bits for building stuff cd ~ 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 ~/downloads http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz tar xvzf ~/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 Colin -- 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.

