LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   trying to update rails 3.0 on ubuntu 11.04 (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-update-rails-3-0-on-ubuntu-11-04-a-896455/)

rwrench 08-09-2011 08:35 PM

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

EDDY1 08-09-2011 08:54 PM

Turn off automatic updates, log out & back in.
Quote:

aptitude update
Quote:

aptitude upgrade
That's what I had to do.
Now I have a 3.0 kernel
Debian Sid

You may have to run the above commands with sudo.

rwrench 08-09-2011 09:36 PM

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

EDDY1 08-09-2011 10:06 PM

Did your machine ask for reboot?

rwrench 08-09-2011 10:11 PM

no it did not

EDDY1 08-09-2011 10:22 PM

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'.

EDDY1 08-09-2011 10:42 PM

http://blog.sudobits.com/2011/06/27/...tu-10-1011-04/

rwrench 08-10-2011 02:47 AM

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.