Gems disapeared after port install of a package

T

Tom Bak

Hi,
I am new to Mac, tried to set up MSSQL connection
and broke gems on Leopard.

tb-imac:~ tb$ irb
irb(main):001:0> require 'rubygems'
LoadError: no such file to load -- rubygems
from (irb):1:in `require'
from (irb):1
irb(main):002:0> require 'hpricot'
LoadError: no such file to load -- hpricot
from (irb):2:in `require'
from (irb):2
irb(main):003:0> quit

tb-imac:~ tb$ gem list --local

*** LOCAL GEMS ***

actionmailer (2.1.0, 1.3.6)
actionpack (2.1.0, 1.13.6)
actionwebservice (1.2.6)
activerecord (2.1.0, 1.15.6)
activerecord-sqlserver-adapter (1.0.0.9250)
activeresource (2.1.0)
activesupport (2.1.0, 1.4.4)
....

I think this command broke it:
sudo port install rb-dbi +dbd_odbc

is it possible? How to debig the source of the problem?

Cheers,
Tomasz
 
F

Frederick Cheung

I think this command broke it:
sudo port install rb-dbi +dbd_odbc
is it possible? How to debig the source of the problem?
Have you ended up with two different installs of ruby (I imagine port
would have grabbed ruby as a dependency of rb-dbi) ?

Do
which gem
which irb

point to very different places ?

Fred
 
T

Tom Bak

Frederick said:
Have you ended up with two different installs of ruby (I imagine port
would have grabbed ruby as a dependency of rb-dbi) ?

Do
which gem
which irb

point to very different places ?

Yes, indeed. gem is in /user/bin while irb is in /opt/local/bin/irb

How to remove that not wanted version of ruby? Delete file by file?
Or maybe the ports can cliean up that mess after that install somehow?

Cheers,
Tomasz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top