Hi, I downloaded instiki 0.19 from http://golem.ph.utexas.edu/~distler/code/instiki-svn.tar.gz, extracted it, then ran ''rake upgrade_instiki''. However it failed with ** Erubis 2.6.6 Upgrading Instiki in production environment. rake aborted! no such file to load -- sqlite3/sqlite3_native I found a solution is to run ''gem install sqlite3-ruby'' but that also fails with ERROR: While executing gem ... (Gem::FilePermissionError) You don''t have write permissions into the /usr/lib/ruby/gems/1.8 directory. I am using a third party web host (Dreamhost) so I can see why I don''t have write permissions there. However I previously installed instiki 0.18.1 on Dreamhost and it worked. What am I doing wrong?
On Sep 23, 2010, at 11:55 AM, Steven wrote:> Hi, I downloaded instiki 0.19 from > http://golem.ph.utexas.edu/~distler/code/instiki-svn.tar.gz, extracted > it, then ran ''rake upgrade_instiki''. However it failed with > > ** Erubis 2.6.6 > Upgrading Instiki in production environment. > rake aborted! > no such file to load -- sqlite3/sqlite3_native > > I found a solution is to run ''gem install sqlite3-ruby'' but that also fails with > > ERROR: While executing gem ... (Gem::FilePermissionError) > You don''t have write permissions into the /usr/lib/ruby/gems/1.8 directory. > > I am using a third party web host (Dreamhost) so I can see why I don''t > have write permissions there. However I previously installed instiki > 0.18.1 on Dreamhost and it worked. What am I doing wrong?This is a common problem which is why, for the release version of 0.19, I am hoping to use Bundler to manage dependencies like sqlite3-ruby. The trick, in your situation, is to install the gem locally gem install sqlite3-ruby itextomml --no-rdoc --install-dir vendor/plugins Jacques -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 254 bytes Desc: This is a digitally signed message part URL: <http://rubyforge.org/pipermail/instiki-users/attachments/20100923/8a8dd829/attachment.bin>
On Sep 23, 2010, at 12:22 PM, Jacques Distler wrote:> This is a common problem which is why, for the release version of 0.19, I am hoping to use Bundler to manage dependencies like sqlite3-ruby. > > The trick, in your situation, is to install the gem locally > > gem install sqlite3-ruby itextomml --no-rdoc --install-dir vendor/pluginsWhoops! I should have said gem install sqlite3-ruby itextomml --no-rdoc --install-dir vendor -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 254 bytes Desc: This is a digitally signed message part URL: <http://rubyforge.org/pipermail/instiki-users/attachments/20100923/23e2c0b9/attachment.bin>
On Thu, Sep 23, 2010 at 12:29 PM, Jacques Distler <distler at golem.ph.utexas.edu> wrote:> > On Sep 23, 2010, at 12:22 PM, Jacques Distler wrote: > >> This is a common problem which is why, for the release version of 0.19, I am hoping to use Bundler to manage dependencies like sqlite3-ruby. >> >> The trick, in your situation, is to install the gem locally >> >> ? ?gem install sqlite3-ruby itextomml --no-rdoc --install-dir vendor/plugins > > Whoops! > > I should have said > > ? ?gem install sqlite3-ruby itextomml --no-rdoc --install-dir vendor > _______________________________________________ > Instiki-users mailing list > Instiki-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instiki-users >I ran the command but this is what I get: Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb checking for sqlite3.h... yes checking for sqlite3_libversion_number() in -lsqlite3... yes checking for rb_proc_arity()... no checking for sqlite3_initialize()... no sqlite3-ruby only supports sqlite3 versions 3.6.16+, please upgrade! *** 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: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/ruby1.8 --with-sqlite3-dir --without-sqlite3-dir --with-sqlite3-include --without-sqlite3-include=${sqlite3-dir}/include --with-sqlite3-lib --without-sqlite3-lib=${sqlite3-dir}/lib --with-sqlite3lib --without-sqlite3lib It seems like I have to update sqlite, but I doubt I have the permissions to do so. Is there another workaround?
On Sep 23, 2010, at 1:52 PM, Steven wrote:> On Thu, Sep 23, 2010 at 12:29 PM, Jacques Distler >> Whoops! >> >> I should have said >> >> gem install sqlite3-ruby itextomml --no-rdoc --install-dir vendor >> _______________________________________________ > > I ran the command but this is what I get: > > Building native extensions. This could take a while... > ERROR: Error installing sqlite3-ruby: > ERROR: Failed to build gem native extension. > > /usr/bin/ruby1.8 extconf.rb > checking for sqlite3.h... yes > checking for sqlite3_libversion_number() in -lsqlite3... yes > checking for rb_proc_arity()... no > checking for sqlite3_initialize()... no > sqlite3-ruby only supports sqlite3 versions 3.6.16+, please upgrade! > *** 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: > --with-opt-dir > --without-opt-dir > --with-opt-include > --without-opt-include=${opt-dir}/include > --with-opt-lib > --without-opt-lib=${opt-dir}/lib > --with-make-prog > --without-make-prog > --srcdir=. > --curdir > --ruby=/usr/bin/ruby1.8 > --with-sqlite3-dir > --without-sqlite3-dir > --with-sqlite3-include > --without-sqlite3-include=${sqlite3-dir}/include > --with-sqlite3-lib > --without-sqlite3-lib=${sqlite3-dir}/lib > --with-sqlite3lib > --without-sqlite3lib > > It seems like I have to update sqlite, but I doubt I have the > permissions to do so. Is there another workaround?So Dreamhost has an ancient version of the sqlite3 library, too? It seems you have two options. 1) Hope that Dreamhost has an older version of the sqlite3-ruby gem installed. * Remove the vendor/plugins/sqlite3-ruby directory from your Instiki distribution, and (if Dreamhost does have the gem installed) Instiki will use the gem version instead. 2) Beg Dreahost support to update their sqlite3 library, so that you can install the gem locally (per my previous instructions). Either way, the vendor/plugins/sqlite3-ruby, bundled with the prerelease version of Instiki 0.19, is the source of nothing but trouble, and will be removed from the final distribution. Best, Jacques -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 254 bytes Desc: This is a digitally signed message part URL: <http://rubyforge.org/pipermail/instiki-users/attachments/20100923/4e7fd84c/attachment.bin>
On Sep 23, 2010, at 2:29 PM, Jacques Distler wrote:> So Dreamhost has an ancient version of the sqlite3 library, too? > > It seems you have two options. > > 1) Hope that Dreamhost has an older version of the sqlite3-ruby gem installed. > * Remove the vendor/plugins/sqlite3-ruby directory from your Instiki distribution, > and (if Dreamhost does have the gem installed) Instiki will use the gem version instead. > > 2) Beg Dreahost support to update their sqlite3 library, so that you can install the gem > locally (per my previous instructions). > > Either way, the vendor/plugins/sqlite3-ruby, bundled with the prerelease version of Instiki 0.19, is the source of nothing but trouble, and will be removed from the final distribution.I''ve gone ahead and done this with the latest version http://golem.ph.utexas.edu/~distler/code/instiki-svn.tar.gz The latest version DOES NOT attempt to include a "vendored" version of sqlite3-ruby. Instead, after downloading the latest Instiki, type ruby bundle from the main Instiki directory. This will either use a system-installed sqlite3-ruby gem, or will attempt to install the gem locally, in the Instiki vendor/bundle directory. (Ditto for the other gem dependencies of Instiki, like itextomml.) I''ve tested this on the machines that I have access to, but if others, with varying hosting situations, want to try it our, and report back any glitches, that would be greatly appreciated. Instiki 0.19 will use Bundler. (I hope to release it, as soon as any Bundler-related glitches are worked out.) Instiki 0.20 will be based on Rails 3.0 (which also uses Bundler, but requires Ruby 1.8.7 or 1.9.2). Jacques -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 254 bytes Desc: This is a digitally signed message part URL: <http://rubyforge.org/pipermail/instiki-users/attachments/20100924/714610ab/attachment-0001.bin>
Thanks to Steven''s perseverance, we''ve straightened out the installation procedure on Dreamhost. The instructions (not complicated, but not quite "There is no step 3(TM).") can be found at http://golem.ph.utexas.edu/wiki/instiki/show/Hosted+Services Jacques -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 254 bytes Desc: This is a digitally signed message part URL: <http://rubyforge.org/pipermail/instiki-users/attachments/20100925/f426d2fd/attachment.bin>