trying to update rails 3.0 on ubuntu 11.04
I've installed ruby and rvm on ubuntu. when i type rvm notes
I get this bash >= 3.2 is required curl is required git is required (>= 1.7 recommended) patch is required (for ree and some ruby-head's). then later # For Ruby (MRI & ree) you should install the following OS dependencies: ruby: /usr/bin/apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev when i tried running the command above i get this E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? thanks |
Turn off automatic updates, log out & back in.
Quote:
Quote:
Now I have a 3.0 kernel Debian Sid You may have to run the above commands with sudo. |
still not working
i installed aptitude with sudo. then upgraded it.
i ran it - got the menu did a search for rails to clicked u to update. logged out then in again but rails -v is still 2.3.5 |
Did your machine ask for reboot?
|
no it did not
|
Then reboot it & try another update.
Another thing you can do is open synaptic then click 'status button' & 'Installed (upgradeable), then click on 'Mark All Upgrades'. |
|
after step5 installing rails i try rails new test and get this
/home/richardw/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find activesupport (>= 0) amongst [] (Gem::LoadError)
from /home/richardw/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec' from /home/richardw/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems.rb:1195:in `gem' from /usr/share/rails-ruby1.8/railties/lib/rails_generator.rb:31:in `rescue in <top (required)>' from /usr/share/rails-ruby1.8/railties/lib/rails_generator.rb:27:in `<top (required)>' from <internal:lib/rubygems/custom_require>:29:in `require' from <internal:lib/rubygems/custom_require>:29:in `require' from /usr/share/rails-ruby1.8/railties/bin/rails:14:in `<main>' |
All times are GMT -5. The time now is 12:45 AM. |