[ Sorry about leaving the subject line off my first message; it was getting late out... -r] At 9:38 AM +0000 1/20/06, Chris Roos wrote:> Have you got the sqlite3 ruby gem installed? > > # gem install sqlite3Interesting notion. I tried this:> % sudo gem install sqlite3 > Attempting local installation of ''sqlite3'' > Local gem file not found: sqlite3*.gem > Attempting remote installation of ''sqlite3'' > Updating Gem source index for: http://gems.rubyforge.org > ERROR: While executing gem ... (Gem::GemNotFoundException) > Could not find sqlite3 (> 0) in the repositoryThinking that it might be trying to find "sqlite", I tried:> % sudo gem install sqlite > Attempting local installation of ''sqlite'' > Local gem file not found: sqlite*.gem > Attempting remote installation of ''sqlite'' > Building native extensions. This could take a while... > ERROR: While executing gem ... (RuntimeError) > ERROR: Failed to build gem native extension. > Gem files will remain installed in > /usr/lib/ruby/gems/1.8/gems/sqlite-2.0.1 for inspection. > ruby extconf.rb install sqlite > checking for main() in -lsqlite... no > checking for sqlite.h... no > > Results logged to >/usr/lib/ruby/gems/1.8/gems/sqlite-2.0.1/ext/gem_make.outSo, I''m still stuck... -r -- Technical editing and writing, programming, and web development: http://www.cfcl.com/rdm/resume Contact information: rdm at cfcl.com, +1 650-873-7841
http://wiki.rubyonrails.com/rails/pages/HowtoUseSQLite says
(boiled down a bit):
% sudo port install swig
% sudo gem install sqlite3-ruby
1. sqlite3-ruby 1.1.0 (ruby)
2. sqlite3-ruby 1.1.0 (mswin32)
...
==> Choose the highest-numbered "(ruby)" version.
So I did that, without apparent errors. I also installed
and built ruby-1.8.4, for good measure (this may have been
a mistake). Then I tried running Instiki again:
% instiki
/usr/local/lib/ruby/1.8/webrick/httputils.rb:11:in `require'':
no such file to load -- socket (LoadError)
from /usr/local/lib/ruby/1.8/webrick/httputils.rb:11
from /usr/local/lib/ruby/1.8/webrick/config.rb:13
from /usr/local/lib/ruby/1.8/webrick.rb:14
from ./script/server:3
from instiki:6
So far the non-existent step 3 has taken me through several
hours of hunt-the wumpus. In fact, I seem to be worse off
than I was earlier (at least, the server started up before).
In case the ruby-1.8.4 install had broken things, I tried to
redo the swig and sqlite3 install, but the latter failed:
% sudo port install swig
Password:
---> Unpacking tgz archive for swig 1.3.27_0+darwin_8
---> Cleaning swig
% sudo gem install sqlite3-ruby
/usr/bin/gem:3:in `require'': no such file to load --
rubygems (LoadError)
from /usr/bin/gem:3
So, I continue to be hosed... Help?
-r
--
Technical editing and writing, programming, and web development:
http://www.cfcl.com/rdm/resume
Contact information: rdm at cfcl.com, +1 650-873-7841