Bug in Ruby 1.9.1 or me? ERROR: While executing gem ... (TypeError) can't convert Pathname into Str

I installed ruby on Ubuntu 8.1 in the following manner
removed all ruby files using locate
sudo apt-get install readline5-dev build-essential autoconf wget
libreadline5-dev libncurses5-dev zlib1g-dev libsqlite3-dev libssl-devsv
libncurses5-dev libssl-dev checkinstall
mkdir -p /usr/local/src && cd /usr/local/src
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.bz2
tar -xjvf ruby-1.9.1-p0.tar.bz2
cd ruby-1.9.1-p0
.sudo ./configure --prefix=/usr --enable-pthread --enable-shared
i should have added -with-readline-dir=/usr/local
sudo make

sudo checkinstall found everything to be OK

sudo gem sources -a http://gems.github.com
sudo gem install rack rake # It seems that you need to install rack
installing actionpack and rails requires rake"
sudo gem install rails actionpack activesupport activerecord
actionmailer # sudo gem install rails didn’t install activesupport and
other packages
Now all of this seems to work fine. However, when I install other gems,
usually receive the following error message

sudo gem install sinatra
Successfully installed sinatra-0.9.1
1 gem installed
Installing ri documentation for sinatra-0.9.1…
–inline-source will be removed from RDoc on or after August 2009
Updating ri class cache with 3781 classes…
Installing RDoc documentation for sinatra-0.9.1…
–inline-source will be removed from RDoc on or after August 2009
ERROR: While executing gem … (TypeError)
can’t convert Pathname into String

Googling on ‘can’t convert Pathname into String’ doesn’t turn up much.
anyone have any ideas about this?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs