Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4432 - problems with MySQL and BerkeleyDB
Summary: problems with MySQL and BerkeleyDB
Status: RESOLVED DUPLICATE of bug 3836
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Sascha Schwabbauer (RETIRED)
URL:
Whiteboard:
Keywords:
: 4445 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-07-02 10:34 UTC by Nathan W. Labadie
Modified: 2005-07-17 13:06 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan W. Labadie 2002-07-02 10:34:11 UTC
When attempting to emerge mysql I get the following: 
---snip--- 
checking character sets... default: latin1; compiled in: latin1  big5 cp1251 
cp1257 croat czech danish dec8 dos estonia euc_kr gb2312 gbk german1 greek 
hebrew hp8 hungarian koi8_ru koi8_ukr latin2 latin5 swe7 usa7 win1250 win1251 
win1251ukr ujis sjis tis620 
checking for BerkeleyDB... supplied 
configure: error: didn't find valid BerkeleyDB: invalid version 3.2.9 (must be 
version 3.2.3h or 3.2.9a) 
 
!!! ERROR: The ebuild did not complete successfully. 
!!! Function src_compile, Line 54, Exitcode 1 
!!! bad ./configure 
 
!!! emerge aborting on  /usr/portage/dev-db/mysql/mysql-3.23.51.ebuild . 
---snip--- 
 
I currently have db-3.2.9 installed. In order for MySQL to compile properly, I 
had to emerge db-3.2.3h-r4.ebuild. Any ideas?
Comment 1 Nathan W. Labadie 2002-07-02 11:34:50 UTC
One other thing to note... emerging db-3.2.3h-r4.ebuild broke a few different 
applications because it overwrites db-3.2.9. I manually changed the flags in 
MySQL to myconf="--without-berkeley-db --with-readline --enable-shared 
--enable-static --with-libwrap --without-innodb --without-debug".  
 
You might want to include a seperate package for the version of BerkeleyDB 
required by MySQL. 
Comment 2 Ryan Phillips (RETIRED) gentoo-dev 2002-07-02 12:27:13 UTC
I cannot reproduce this; can anyone else?


*  sys-libs/db
      Latest version Available: 3.2.3h-r4
      Latest version Installed: 3.2.3h-r4
      Homepage: http://www.mysql.com


*  dev-db/mysql
      Latest version Available: 3.23.51
      Latest version Installed: [ Not Installed ]
      Homepage: http://www.mysql.com/

(mysql compiled and installed fine, I just unmerged though)
Comment 3 xtra 2002-07-02 12:53:57 UTC
i also have the problem
sys-libs/db-3.2.9
Comment 4 Avi Schwartz 2002-07-02 14:06:42 UTC
Same problem here:

*  sys-libs/db
      Latest version Available: 3.2.9
      Latest version Installed: 3.2.9
      Homepage: http://www.sleepycat.com/
      Description:
      Berkeley DB for transaction support in MySQL
Comment 5 Nathan W. Labadie 2002-07-02 14:57:20 UTC
Same problem with mysql-3.23.51-r1.ebuild. I just got the following with db-
3.2.9.ebuild installed:

---snip---
checking for BerkeleyDB... supplied
configure: error: didn't find valid BerkeleyDB: invalid version 3.2.9 (must be 
version 3.2.3h or 3.2.9a)

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 54, Exitcode 1
!!! bad ./configure

!!! emerge aborting on  /usr/portage/dev-db/mysql/mysql-3.23.51-r1.ebuild .
---snip---
Comment 6 johnathan spectre 2002-07-02 17:26:13 UTC
i too am having the same problem on 3 different systems:

checking for BerkeleyDB... supplied
configure: error: didn't find valid BerkeleyDB: invalid version 3.2.9 (must be
version 3.2.3h or 3.2.9a)

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 54, Exitcode 1
!!! bad ./configure

!!! emerge aborting on  /usr/portage/dev-db/mysql/mysql-3.23.51-r1.ebuild .
Comment 7 Roman Weber 2002-07-02 19:26:32 UTC
The only workaround I had found is:
USE="-berkdb" emerge mysql

But if you need berkDB in Mysql, it's not your solution.
Comment 8 Roger Prata 2002-07-02 21:38:46 UTC
Same thing (Exactly) happened to me today.  I'm awaiting a fix, or workaround.
Comment 9 Thomas Bullinger 2002-07-03 07:12:58 UTC
Same problem here - db-3.2.9 is not sufficient (but the latest as per "emerge 
--clean rsync").  
 
Comment 10 Martin Holzer (RETIRED) gentoo-dev 2002-07-03 07:45:33 UTC
As with portage-20020702.tar.bz2 update, mysql recompiles
(emerge --update 
emerge --update world )

same error

checking for BerkeleyDB... supplied
configure: error: didn't find valid BerkeleyDB: invalid version 3.2.9 (must be 
version 3.2.3h or 3.2.9a)
Comment 11 Ryan Phillips (RETIRED) gentoo-dev 2002-07-03 11:44:44 UTC
*** Bug 4445 has been marked as a duplicate of this bug. ***
Comment 12 Stian B. Barmen 2002-07-05 01:47:22 UTC
I have also the same problem. I had none of the sys-libs/db packages 
installed. But what I did was I :

cd /user/portage/sys-libs/db
emerge db-3.2.3h-r4.ebuild
emerge mysql

Woila! :) 

One of two need to be done, fix deps in mysql to include this, or someway 
upgrade BerkleyDB to support a newer version of DB like 4.0.14 or something. 
Comment 13 webmaster 2002-07-05 22:53:02 UTC
Well, I don't like it.  I need BerkDB (at least for testing) in MySQL, and I
need this up on a webserver, so I want recent versions, because I'm too lazy to
look up potential issues, and I assume that recent versions have recent bugfixes.

So I'm putting it off, for now, since MySQL was just a dependency of aide:

USE="... -berkdb -mysql ..."
Comment 14 Sascha Schwabbauer (RETIRED) gentoo-dev 2002-07-06 09:06:27 UTC
hmm, im using db 4.0.14 and i dont have any problems with mysql and bdb... 
everything works fine.. 
Comment 15 Seemant Kulleen (RETIRED) gentoo-dev 2002-07-06 16:32:46 UTC

*** This bug has been marked as a duplicate of 3836 ***