Przemysław Pawełczyk
2006-Jan-23 18:26 UTC
[Instiki] Problems with Instiki-AR create_db, part II
Hi, I got Debian 3.1, and sqlite3 installed. I had unpacked instiki-ar.zip to my home directory then had run instiki.db and tried to exec create_db. What I got is as follows: pp at tytan:~/data/instiki-ar$ ./script/create_db /home/pp/data/instiki-ar/script/../config/environment.rb:16: warning: already initialized constant RAILS_ROOT /home/pp/data/instiki-ar/script/../config/environment.rb:23: warning: already initialized constant RAILS_ENV /home/pp/data/instiki-ar/script/../config/environment.rb:26: warning: already initialized constant ADDITIONAL_LOAD_PATHS /home/pp/data/instiki-ar/script/../config/environment.rb:73: warning: already initialized constant RAILS_DEFAULT_LOGGER /home/pp/data/instiki-ar/script/../config/environment.rb:90: warning: already initialized constant Controllers Creating tables for production... /home/pp/data/instiki-ar/vendor/rails/activesupport/lib/active_support/dependencies.rb:200:in `require'': no such file to load -- sqlite3 (MissingSourceFile) from /home/pp/data/instiki-ar/vendor/rails/activesupport/lib/active_support/dependencies.rb:200:in `require'' from /home/pp/data/instiki-ar/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:10:in `require_library_or_gem'' from /home/pp/data/instiki-ar/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:15:in `sqlite3_connection'' from /home/pp/data/instiki-ar/vendor/rails/activerecord/lib/active_record/query_cache.rb:52:in `send'' from /home/pp/data/instiki-ar/vendor/rails/activerecord/lib/active_record/query_cache.rb:52:in `connection='' from /home/pp/data/instiki-ar/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:108:in `retrieve_connection'' from /home/pp/data/instiki-ar/vendor/rails/activerecord/lib/active_record/base.rb:239:in `connection'' from ./script/create_db:17 from ./script/create_db:16:in `each'' from ./script/create_db:16 from ./script/create_db:10:in `each'' from ./script/create_db:10 Of course database was not created. Why? I''ll appreciate any help. BTW. Could one of the developers/users be so kind to write one page at least how to install the wiki, without the need to ferretting about through users mailing list? I''m totally confused. Sqlite3 is very simple and efficient and it was a good decision to switch to it but having such snags at the beginning are discouraging. Best regards, Przemys?aw Pawe?czyk (warpman) -- Using Opera''s revolutionary e-mail client: http://www.opera.com/mail/
> I got Debian 3.1, and sqlite3 installed. I had unpacked instiki-ar.zip to > my home directory then had run instiki.db and tried to exec create_db. > What I got is as follows:[snip]> `require'': no such file to load -- sqlite3 (MissingSourceFile)You also need the Ruby SQLite driver: gem install sqlite3-ruby Instiki-AR is a beta software and haven''t been packaged properly yet, that''s why most the info is in the mailing list. There''s also a note on the instiki.org home page. Cheers, Assaph
Przemysław Pawełczyk
2006-Jan-24 12:44 UTC
[Instiki] Problems with Instiki-AR create_db, part II
On Mon, 23 Jan 2006 22:30:03 +0100, Assaph Mehr <assaph at gmail.com> wrote: Hi, I did as you said. Thanks. Pardon me to be sarcastic but how long will this go on: root at tytan:~/zip# gem install sqlite3-ruby-1.1.0.gem Attempting local installation of ''sqlite3-ruby-1.1.0.gem'' Building native extensions. This could take a while... extconf.rb:1:in `require'': no such file to load -- mkmf (LoadError) from extconf.rb:1 ERROR: Error installing gem sqlite3-ruby-1.1.0.gem[.gem]: ERROR: Failed to build gem native extension. Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0 for inspection. ruby extconf.rb install sqlite3-ruby-1.1.0.gem\n Results logged to /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/ext/sqlite3_api/gem_make.out root at tytan:~/zip# And I''d like to test the instiki-ar only, as instiki seemed to suit my needs. Now I have to go through all the hassles of P.h.D. ;-) Regards, warpman>> I got Debian 3.1, and sqlite3 installed. I had unpacked instiki-ar.zip >> to >> my home directory then had run instiki.db and tried to exec create_db. >> What I got is as follows: > [snip] >> `require'': no such file to load -- sqlite3 (MissingSourceFile) > > You also need the Ruby SQLite driver: > gem install sqlite3-ruby > > Instiki-AR is a beta software and haven''t been packaged properly yet, > that''s why most the info is in the mailing list. There''s also a note > on the instiki.org home page. > > Cheers, > Assaph > > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users >-- Using Opera''s revolutionary e-mail client: http://www.opera.com/mail/
Hi,> root at tytan:~/zip# gem install sqlite3-ruby-1.1.0.gem > Attempting local installation of ''sqlite3-ruby-1.1.0.gem''You shoudl normally do ''gem install sqlite3-ruby'' and let gems figure out the version/file. You also don''t normally have to manually download the gem file.> Building native extensions. This could take a while... > extconf.rb:1:in `require'': no such file to load -- mkmf (LoadError) > from extconf.rb:1Ruby can''t load mkmf, which is in the stdlib. try ''irb -r mkmf'' to make sure it''s there. If it''s not, it might be Debian packagers have placed it in a separate package (they broke the stdlib in a few places before).> ERROR: Error installing gem sqlite3-ruby-1.1.0.gem[.gem]: ERROR: Failed > to build gem native extension. > Gem files will remain installed in > /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0 for inspection. > ruby extconf.rb install sqlite3-ruby-1.1.0.gem\n > > Results logged to > /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/ext/sqlite3_api/gem_make.outTry checking the log file on why the compilation failed. HTH, Assaph
Przemysław Pawełczyk
2006-Jan-25 12:43 UTC
[Instiki] Problems with Instiki-AR create_db, part II
On Tue, 24 Jan 2006 20:32:44 +0100, Assaph Mehr <assaph at gmail.com> wrote:>> Building native extensions. This could take a while... >> extconf.rb:1:in `require'': no such file to load -- mkmf (LoadError) >> from extconf.rb:1 > > Ruby can''t load mkmf, which is in the stdlib. try ''irb -r mkmf'' to > make sure it''s there. If it''s not, it might be Debian packagers have > placed it in a separate package (they broke the stdlib in a few places > before).Hi, Thank you very much for your help. But as I predicted the chain of lacks went ad infinitum. I had to install irb to find out I needed mkmf.rb which in turn happened to be in ruby1.8-dev. And even the dev packet didn''t resolve my problems. Enough is enough. I''ll wait for the work out version. Good luck to you all. Regards, warpman -- Using Opera''s revolutionary e-mail client: http://www.opera.com/mail/
> Thank you very much for your help. But as I predicted the chain of lacks > went ad infinitum. > I had to install irb to find out I needed mkmf.rb which in turn happened > to be in ruby1.8-dev. And even the dev packet didn''t resolve my problems. > Enough is enough. I''ll wait for the work out version. Good luck to you all.There will be no "work out" version until you fix your Ruby install. Debian packagers have basically wrecked the Ruby stdlib thinking they know better than the core developers. You can join the complaints or just build it from the source.
Przemysław Pawełczyk
2006-Jan-25 13:56 UTC
[Instiki] Problems with Instiki-AR create_db, part II
On Wed, 25 Jan 2006 13:50:18 +0100, Assaph Mehr <assaph at gmail.com> wrote:> There will be no "work out" version until you fix your Ruby install. > Debian packagers have basically wrecked the Ruby stdlib thinking they > know better than the core developers. You can join the complaints or > just build it from the source.Hi, Thanks for quick reply. I must agree with you. Debian "fanatics" processed Generic Mapping Tools (GIS package) into their way as well, but I had experiance with GMT and was able to correct the installation. Not this time with Ruby. I''ll pay more attention to the Debian "philosophy" next time. Many thanks. warpman -- Using Opera''s revolutionary e-mail client: http://www.opera.com/mail/