Re: sqlite3-ruby gem install problem



Tom Cloyd wrote:
[on Kubuntu Linux 8.04.1, with Ruby 1.8.6 and latest rubygems]

I think the installation routine was looking for sqlite3.h and couldn't
find it, but I may be way off. I'm clearly beyond my comfort/knowledge
boundary...again. Here's the first part of the console output:

===
tomc@tomc-desktop:~/Ruby-work$ sudo gem install sqlite3-ruby
[sudo] password for tomc:
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb install sqlite3-ruby
checking for fdatasync() in -lrt... yes
checking for sqlite3.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.
.
.
.
===

I'm installing this for use with Radiant, if that matters, as advised by
http://wiki.radiantcms.org/Installation - "If you are using a newer
version of SQLite3, make sure you have the latest version of
sqlite3-ruby (1.2.1), or you will have problems with NULL fields."

IF it needs sqlite3.h (which I confirmed is not to be found in my file
system), where do I get it, and where do I put it? It's not in the Adept
package manager.

Thanks for any help, which is much needed at this point.

t.


Well, drat. While poking around a blog post about the Junebug wiki,
relevant because it's installed on the Radiantcms.org website (which
presumably is running Radiant (!) - and that confuses me - I found this:

"make sure you have the libsqlite3-dev package installed on
(ubuntu|debian), or the sqlite gem won't compile"

I love secret knowledge, but only when I'm in on the secret. I simply
cannot imagine how I might have know this in advance.

In any case, THAT IS in the adept package manager, and installing solved
the problem.

On to the next one.

t.


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< tc@xxxxxxxxxxxx >> (email)
<< TomCloyd.com >> (website & psychotherapy weblog)
<< sleightmind.wordpress.com >> (mental health issues weblog)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.



Relevant Pages

  • Re: sqlite3-ruby gem install problem
    ... ERROR: Error installing sqlite3-ruby: ... I'm installing this for use with Radiant, if that matters, as ... file system), where do I get it, and where do I put it? ... Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist ...
    (comp.lang.ruby)
  • Re: Annoying problem: gems tries to build native extension
    ... Building native extensions. ... ERROR: Error installing sqlite3-ruby: ... Failed to build gem native extension. ...
    (comp.lang.ruby)
  • Re: help with yum
    ... installing them with your /own/ chosen options ... Eating my own words a little I meant 'a package manager /that does ... You know that apt-get and yum made the ...
    (comp.os.linux.misc)
  • Re: Learning Curve...
    ... >more than changing directories and running executables:) ... using the package manager may at first ... separate updates directories at redhat or fedoralegacy.org). ... But you learn this from doing, meaning installing 'stuff' that your system ...
    (comp.os.linux.questions)
  • Re: kate as set apart editor?
    ... If the package manager is not preventing from doing so and you are ... installing all of the required packages and libraries, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)