unknown option libsqlite3-db

314 views
Skip to first unread message

Dave

unread,
Dec 20, 2011, 7:14:43 PM12/20/11
to gearman
Has anyone successfully installed Gearman .26 on RHEL 6.1 with sqlite3
for persistence?

wget http://launchpad.net/gearmand/trunk/0.26/+download/gearmand-0.26.tar.gz

tar -xzf gearmand-0.26.tar.gz

cd germand-0.26

yum install boost-devel libevent-devel libuuid-devel sqlite-devel

./configure
Configuration summary for gearmand version 0.26

* Installation prefix: /usr/local
* System type: unknown-linux-gnu
* Host CPU: x86_64
* C Compiler: gcc (GCC) 4.4.6 20110731 (Red Hat
4.4.6-3)
* Assertions enabled: yes
* Debug enabled: no
* Warnings as failure:
* Building with libsqlite3 no
* Building with libdrizzle no
* Building with libmemcached no
* Building with libpq no
* Building with tokyocabinet no


Any insight on this would be greatly appreciated! Thank you.

Yernar Smagulov

unread,
Dec 21, 2011, 2:22:36 AM12/21/11
to gea...@googlegroups.com
your gearmand server is not built with libsqlite3
as you see this :

  * Building with libsqlite3   no

firstly, you should install sqlite3, after reconfigure your gearmand
and your configuration summary should have :
  * Building with libsqlite3   yes
--
with the best regards, Smagulov Yernar
Kazakh British Technical University
IT Faculty, Information Systems

Dave

unread,
Dec 21, 2011, 8:38:07 AM12/21/11
to gearman
I should have mentioned that sqlite is installed.

yum list inatalled | grep sqlite
sqlite.x86_64 3.6.20-1.el6 @anaconda-
RedHatEnterpriseLinux-201105101844.x86_64/6.1
sqlite-devel.x86_64 3.6.20-1.el6 @rhel-
x86_64-server-6

ls -lh /usr/lib64 | grep sqlite
lrwxrwxrwx 1 root root 19 Dec 20 18:17 libsqlite3.so ->
libsqlite3.so.0.8.6
lrwxrwxrwx. 1 root root 19 Aug 2 21:52 libsqlite3.so.0 ->
libsqlite3.so.0.8.6
-rwxr-xr-x. 1 root root 571K Nov 24 2009 libsqlite3.so.0.8.6

ls -lh /usr/bin/sqlite3
-rwxr-xr-x. 1 root root 52K Nov 24 2009 /usr/bin/sqlite3

sqlite3
SQLite version 3.6.20
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .quit

I'm pretty sure I have sqlite3 installed - it's the standard packages.
Gearman just doesn't seem to locate them.

Clint Byrum

unread,
Dec 21, 2011, 10:56:02 AM12/21/11
to gearman
Excerpts from Dave's message of Wed Dec 21 05:38:07 -0800 2011:

< please don't top post, reply *after* the question you're answering>

> I should have mentioned that sqlite is installed.
>
> yum list inatalled | grep sqlite
> sqlite.x86_64 3.6.20-1.el6 @anaconda-
> RedHatEnterpriseLinux-201105101844.x86_64/6.1
> sqlite-devel.x86_64 3.6.20-1.el6 @rhel-
> x86_64-server-6
>
> ls -lh /usr/lib64 | grep sqlite
> lrwxrwxrwx 1 root root 19 Dec 20 18:17 libsqlite3.so ->
> libsqlite3.so.0.8.6
> lrwxrwxrwx. 1 root root 19 Aug 2 21:52 libsqlite3.so.0 ->
> libsqlite3.so.0.8.6
> -rwxr-xr-x. 1 root root 571K Nov 24 2009 libsqlite3.so.0.8.6
>
> ls -lh /usr/bin/sqlite3
> -rwxr-xr-x. 1 root root 52K Nov 24 2009 /usr/bin/sqlite3
>
> sqlite3
> SQLite version 3.6.20
> Enter ".help" for instructions
> Enter SQL statements terminated with a ";"
> sqlite> .quit
>
> I'm pretty sure I have sqlite3 installed - it's the standard packages.
> Gearman just doesn't seem to locate them.

Indeed, the m4 macro AX_LIB_SQLITE3 doesn't trust the linker to look in
/usr/lib64 the way it should. This function needs to be updated to just
leave the -L and -I off, as this will break on Ubuntu and Debian as well
since libraries are moving into multi-arch directories now.

To fix your problem, you can patch m4/ax_lib_sqlite3.m4 to look for
libraries in /usr/lib64, and then run autoreconf to regenerate the
configure script.

Dave Lozier

unread,
Dec 21, 2011, 11:34:16 AM12/21/11
to gea...@googlegroups.com
Thanks Clint.

That didn't seem to help. I see that sqlite3.h is in /usr/include so
m4/ax_lib_sqlite3.m4 is finding it. The configure output also shows it
was found.

checking for SQLite3 library >= 3.0.0... yes

In the end it still doesn't want to build with libsqlite3 though.

Dave

unread,
Dec 22, 2011, 9:39:05 AM12/22/11
to gearman
I noticed that Bradley Falzon was able to configure/compile .23 on
CentOS 6 - so I gave it a go and sure enough it configures showing
support for libsqlite3.

http://groups.google.com/group/gearman/browse_thread/thread/c57e1eb5cbe4a1d2/cfe7a76afcdaa69c?hl=en&lnk=gst&q=centos+6#msg_794438a3fa173698

We're currently running .22 in production but that's on RHEL 5.x -
looks like we'll be going with .23 for now.

amoya

unread,
Feb 1, 2012, 4:48:54 PM2/1/12
to gearman

I can´t install Gearman .26 on Ubuntu 11.10 with sqlite3 for
persistence?
I have a similar problem to yours

checking for SQLite3 library >= 3.0.0... yes
...
* Building with libsqlite3 no
...


have not already solved?
please tell me what to do.

Dave Lozier

unread,
Feb 2, 2012, 12:55:53 PM2/2/12
to gea...@googlegroups.com

I had the same issues. I installed .25 and it works. I haven't tried
the latest version though so maybe that is working as well.

Reply all
Reply to author
Forward
0 new messages