List Info

Thread: db4 and jabberd2




db4 and jabberd2
user name
2006-05-10 12:53:18
Hi,

I want use jabberd2 with db4 support, but by default
jabberd2 binary can use
only mysql databases.
Then I use pkgsrc by setting "--enable-db" in
Makefile file, I also disable
Mysql support.
But when I tape "make" command, the configure
script tells me :

checking for db.h... yes
checking for db_create in -ldb-4.3... no
checking for db_create in -ldb-4.2... no
checking for db_create in -ldb-4.1... no
checking for db_create in -ldb-4... no
checking for db_create in -ldb4... no
checking for db_create in -ldb41... no
checking for db_create in -ldb... no
configure: error: Berkeley DB >= 4.1.24 not found
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/chat/jabberd2
===>
===> There was an error during the ``configure'' phase.
===> Please investigate the following for more
information:
===>      * config.log
===>      * /usr/pkgsrc/chat/jabberd2/work/.work.log
===>
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/chat/jabberd2



But I have db4 package installed with shared libraries and
header files :

pkg_info -L db4

/usr/pkg/bin/berkeley_db4_svc
/usr/pkg/bin/db4_archive
/usr/pkg/bin/db4_checkpoint
/usr/pkg/bin/db4_deadlock
/usr/pkg/bin/db4_dump
/usr/pkg/bin/db4_hotbackup
/usr/pkg/bin/db4_load
/usr/pkg/bin/db4_printlog
/usr/pkg/bin/db4_recover
/usr/pkg/bin/db4_stat
/usr/pkg/bin/db4_upgrade
/usr/pkg/bin/db4_verify
/usr/pkg/include/db4/db.h
/usr/pkg/include/db4/db_185.h
/usr/pkg/include/db4/db_cxx.h
/usr/pkg/lib/libdb4-4.4.la
/usr/pkg/lib/libdb4-4.4.a
/usr/pkg/lib/libdb4-4.4.so
/usr/pkg/lib/libdb4-4.4.so.4
/usr/pkg/lib/libdb4-4.4.so.4.0.20
/usr/pkg/lib/libdb4-4.so
/usr/pkg/lib/libdb4.a
/usr/pkg/lib/libdb4.so
/usr/pkg/lib/libdb4_cxx-4.4.la
/usr/pkg/lib/libdb4_cxx-4.4.a
/usr/pkg/lib/libdb4_cxx-4.4.so
/usr/pkg/lib/libdb4_cxx-4.so
/usr/pkg/lib/libdb4_cxx.a
/usr/pkg/lib/libdb4_cxx.so
/usr/pkg/share/doc/db4/api_c/api_core.html
db4 and jabberd2
user name
2006-05-10 13:00:43
On Wed, 10 May 2006 14:53:18 +0200 dugueperoux.estebanfree.fr
wrote:

> Hi,
> 
> I want use jabberd2 with db4 support, but by default
jabberd2 binary can use
> only mysql databases.
> Then I use pkgsrc by setting "--enable-db"
in Makefile file, I also disable
> Mysql support.
> But when I tape "make" command, the
configure script tells me :

You should add the following line to your /etc/mk.conf (on
NetBSD):

PKG_OPTIONS.jabberd2=	db -mysql

... or define it somewhere else. It will compile Jabberd 2
with db4
support and without MySQL dependency.

--
Mishka.
db4 and jabberd2
user name
2006-05-10 13:05:24
On Wed, 10 May 2006 dugueperoux.estebanfree.fr
wrote:

> I want use jabberd2 with db4 support, but by default
jabberd2 binary can use
> only mysql databases.
> Then I use pkgsrc by setting "--enable-db"
in Makefile file, I also disable
> Mysql support.
> But when I tape "make" command, the
configure script tells me :
> 
> checking for db.h... yes
> checking for db_create in -ldb-4.3... no
> checking for db_create in -ldb-4.2... no
> checking for db_create in -ldb-4.1... no
> checking for db_create in -ldb-4... no
> checking for db_create in -ldb4... no
> checking for db_create in -ldb41... no
> checking for db_create in -ldb... no
> configure: error: Berkeley DB >= 4.1.24 not found
...

> But I have db4 package installed with shared libraries
and header files :

pkgsrc does a good job at hiding libraries, headers,
dependencies to make 
sure a package is consistent from system to system.

Not tested, but you probably need to tell it you want db
support by 
adding near the bottom of the pkgsrc Makefile:

.include "../../mk/bdb.buildlink3.mk"

-or-

.include "../../databases/db4/buildlink3.mk"

Also maybe comment out the BUILDLINK_TRANSFORM.db4 line too.

Then do a "make clean" before trying again.

pkgsrc-users is a good list for discussing using pkgsrc.


 Jeremy C. Reed

echo ':6DB6=88>?;69876tA=AC8BB5tA6487><' | tr
'4-F' 'wu rofIn.lkigemca'

db4 and jabberd2
user name
2006-05-11 20:49:47
Jeremy C. Reed wrote:
> On Wed, 10 May 2006 dugueperoux.estebanfree.fr
wrote:
>
>   
>> I want use jabberd2 with db4 support, but by
default jabberd2 binary can use
>> only mysql databases.
>> Then I use pkgsrc by setting
"--enable-db" in Makefile file, I also disable
>> Mysql support.
>> But when I tape "make" command, the
configure script tells me :
>>
>> checking for db.h... yes
>> checking for db_create in -ldb-4.3... no
>> checking for db_create in -ldb-4.2... no
>> checking for db_create in -ldb-4.1... no
>> checking for db_create in -ldb-4... no
>> checking for db_create in -ldb4... no
>> checking for db_create in -ldb41... no
>> checking for db_create in -ldb... no
>> configure: error: Berkeley DB >= 4.1.24 not
found
>>     
> ...
>
>   
>> But I have db4 package installed with shared
libraries and header files :
>>     
>
> pkgsrc does a good job at hiding libraries, headers,
dependencies to make 
> sure a package is consistent from system to system.
>
> Not tested, but you probably need to tell it you want
db support by 
> adding near the bottom of the pkgsrc Makefile:
>
> .include "../../mk/bdb.buildlink3.mk"
>
> -or-
>
> .include
"../../databases/db4/buildlink3.mk"
>
> Also maybe comment out the BUILDLINK_TRANSFORM.db4 line
too.
>
> Then do a "make clean" before trying again.
>
> pkgsrc-users is a good list for discussing using
pkgsrc.
>
>
>  Jeremy C. Reed
>
> echo ':6DB6=88>?;69876tA=AC8BB5tA6487><' | tr '4-F' 'wu
rofIn.lkigemca'
>
>   

.include "../../mk/bdb.buildlink3.mk"

  in end of Makefile file and by adding :

PKG_OPTIONS.jabberd2=	db -mysql

to /etc/mk.conf file compilation works fine thanks.




[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )