Rpmbuild question

Paul Howarth paul at city-fan.org
Thu Aug 26 14:42:32 UTC 2004


Thomas E. Dukes wrote:
> I thought I had this worked out but its not building a binary rpm.  I thinks
> its bombing out.
> 
> Here's the message:
> 
> /usr/bin/ld: cannot find -lmysqlclient
> collect2: ld returned 1 exit status
> make: *** [proftpd] Error 1
> Error: Bad exit status from /var/tmp/rpm-tmp.22654 (%build)

It can't find libmysqlclient; it's part of the mysql-devel package but it puts 
it /usr/lib/mysql rather than /usr/lib. Try setting the LDFLAGS environment 
variable before doing the rpmbuild:

export LDFLAGS=-L/usr/lib/mysql
rpmbuild ...

> User machbuild does not exist - using root
> Group machbuild does not exist - using root
>  (repeats about 6 times)

These are normal. The src.rpm was built by someone with username machbuild. 
Nothing to worry about there.

Paul.





More information about the fedora-list mailing list