Philip H. wrote:
Im trying to install rails gem on OSX 10.5.6, but when i use the gem
install rails command this message displays WARNING: Installing to
~/.gem since /usr/local/lib/ruby/gems/1.8 and
/usr/local/bin aren’t both writable.
Successfully installed rails-2.3.2
1 gem installed
How can I get my gems to install to /usr/local/lib/ruby/gems/1.8 or
/usr/local/bin which both are set up in my environment variable path.
sudo gem install …
That will prompt you for your administrator password. It might also
install it into /Library/Ruby/Gems (which should be in your ruby load
path as well by ddefault).
Youï¿½re riding Ruby on Rails!
About your applicationï¿½s environment
We’re sorry, but something went wrong.
Open up log/development.log and see what it says.
That initial page loads because public/index.html exists so mongrel
isn’t even touching rails at that point.
Thanks philip, Im not seeing the problem with installing gems anymore
after using the sudo command.
As far as the development.log pertaining to the error I was seeing, the
log says no such file to load – sqlite3
So i went to install the sqlite gem and this is what It displayed in my
Salafee:views_demo musdev$ sudo gem install sqlite
Building native extensions. This could take a while…
ERROR: Error installing sqlite:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb install sqlite
checking for main() in -lsqlite… no
checking for sqlite.h… no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
Gem files will remain installed in
/usr/local/lib/ruby/gems/1.8/gems/sqlite-2.0.1 for inspection.
Results logged to
Sorry Im just new to this osx environment, and never seen these errors