Hey guys, I'm trying to create an apache 2.4.12 rpm file. But in order to do that I need to create an apr-util rpm of a recent enough version to support it. So running the rpmbuild command against the spec file I'm getting this error: checking db1/db.h usability... no checking db1/db.h presence... no checking for db1/db.h... no checking db.h usability... no checking db.h presence... no checking for db.h... no checking for Berkeley DB 1 in the standard places... checking db_185.h usability... no checking db_185.h presence... no checking for db_185.h... no *checking for Berkeley DB... not found* *configure: error: Berkeley DB not found.* error: Bad exit status from /var/tmp/rpm-tmp.yh0jGv (%build) It's claiming that Berkeley DB isn't installed. But to me it looks like I have the right libraries: [root at repo:~] #rpm -qa | grep db4 libdb4-utils-4.8.30-13.el7.x86_64 libdb4-devel-static-4.8.30-13.el7.x86_64 libdb4-4.8.30-13.el7.x86_64 libdb4-devel-4.8.30-13.el7.x86_64 This is the part of the spec file that calls for db4: %configure --with-apr=%{_prefix} \ --includedir=%{_includedir}/apr-%{apuver} \ --with-ldap --without-gdbm \ --with-sqlite3 --with-pgsql --with-mysql --with-freetds --with-odbc \ --with-berkeley-db \ --with-crypto --with-openssl --with-nss \ --without-sqlite2 So my questions for today are, do I need to provide a path to the --with-berkeley-db flag? If so, how do I determine the path to give it? Lastly, is db4 really necessary to the build of apr-util? Would it be completely wrong just to build the rpm without it? Thanks, Tim -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
On 03/23/2015 09:03 AM, Tim Dunphy wrote:> Hey guys, > > I'm trying to create an apache 2.4.12 rpm file. But in order to do that I > need to create an apr-util rpm of a recent enough version to support it. > > checking for Berkeley DB 1 in the standard places... > checking db_185.h usability... no > checking db_185.h presence... no > checking for db_185.h... no > *checking for Berkeley DB... not found*You're missing a -devel package. You should be building this in mock, then it will install the correct deps for you in a clean build environment. Peter
Peter, You're missing a -devel package. You should be building this in mock,> then it will install the correct deps for you in a clean build environment. >These are the packages I have: [root at repo:~] #rpm -qa | grep db4 libdb4-utils-4.8.30-13.el7.x86_64 *libdb4-devel-static-4.8.30-13.el7.x86_64* libdb4-4.8.30-13.el7.x86_64 *libdb4-devel-4.8.30-13.el7.x86_64* I see I have two devel packages for db4. So what am I missing? Also how do I build in mock? Thanks, Tim On Sun, Mar 22, 2015 at 4:17 PM, Peter <peter at pajamian.dhs.org> wrote:> On 03/23/2015 09:03 AM, Tim Dunphy wrote: > > Hey guys, > > > > I'm trying to create an apache 2.4.12 rpm file. But in order to do that > I > > need to create an apr-util rpm of a recent enough version to support it. > > > > checking for Berkeley DB 1 in the standard places... > > checking db_185.h usability... no > > checking db_185.h presence... no > > checking for db_185.h... no > > *checking for Berkeley DB... not found* > > You're missing a -devel package. You should be building this in mock, > then it will install the correct deps for you in a clean build environment. > > > Peter > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >-- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B