Archive

Posts Tagged ‘ruby’

Gem 1.3.2+ on Ubuntu 9.10 from scratch

April 19th, 2010 Arthur Gressick No comments

So I was working on a new install of Redmine.org and it needed Gem 1.3.2 which doesn’t come with the Ubuntu 9.10 in the apt-get packages.

I made sure that Ruby 1.8.7 was install on the system by entering this

ruby -v

If nothing showed up refer to my ruby post for installation instructions.

Ok, so I am going to download the installer to the linux machine and then install

wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.6.zip
unzip rubygems-1.3.6.zip
cd rubygems-1.3.6
ruby setup.rb

Everything should have installed properly. Now look in the folder /usr/bin/ for gem1.8. Now most people might have already caught this but I didn’t at first. you can’t run “gem” from command line because it is actually gem1.8. I created a sym link to the gem1.8 with the below command.

cd /usr/bin
ln -s gem1.8 gem

That should do it. Log into the system as a regular user and then enter the below to check the gems version

gem -v

Rake problems in Ubuntu 8.10/9.04

October 20th, 2009 Arthur Gressick No comments

So I just had a problem with the RAKE command in Ruby On Rails on an Ubuntu system. It appears as though there is some kind of duplicate program execution.

Here is the error that I had been getting

undefined method `reenable' for <Rake::Task db:schema:dump => [environment]>:Rake::Task

Here is how I got it working on my system

1. Uninstall the rake using apt-get

apt-get remove rake

2. Update the rake gem

gem install rake

3. Create a sym link to usr/bin

cd /usr/bin
ln -s /var/lib/gems/1.8/gems/rake-0.8.7/bin/rake

That should do it.

Ubuntu Gems Path

October 20th, 2009 Arthur Gressick No comments

For what it is worth I needed to find the path of my gems in order to create sym links for executing them. The path of my gems were

/var/lib/gems/1.8/gems/