views:

3521

answers:

3

I just bought a new MBP

I've read online Sqlite3 already exists on OSX.

I've downloaded mac ports (and installed it) as well as the bin file for sqlite3 from the official web site.

In a guide I'm reading about rails, which tells me to update sqlite3, I run the following in terminal: sudo port upgrade sqlite3

I receive the following error: Error: sqlite3 is not installed

I am so lost! Please help

+1  A: 

It's not installed via mac ports, so port doesn't know about it. You could either do an install via port or get rails to use the one that's installed on the Mac already.

Lou Franco
sorry, but I am an extreme newb, how can I go about doing that?
Elliot
sudo port install sqlite3 seems to be doing it :)
Elliot
+2  A: 

To install the sqlite gem the binary won't be enough afaik. You'll need the amalgamation tarball from the sqlite website or install it via ports:

sudo port install sqlite3
effkay
+2  A: 
deau
Do you know if the sqlite3-ruby gem uses the sqlite3 executable internally or the libs? This approach certainly works for installing the executable, but I'm worried the gem is still using the old libs in /usr/lib.
Justicle
I'd expect it to use the first one in the path. But i know nothing, i'm just some guy who specified his path variable once. It might be worth starting another question?
deau