[PLUG] Resolving dependencies in rpmbuild

Rahul Sundaram sundaram at fedoraproject.org
Sun Jun 15 19:15:04 IST 2008


Parag Shah wrote:
> Hi,
> 
> I am trying to install OpenVPN on a Centos 5.1 box. OpenVPN ships a gz file
> that can be transformed into a binary rpm with rpmbuild. OpenVPN however
> needs lzo-devel libraries to be installed before we can use rpmbuild to
> build OpenVPN's rpm file.
> 
> I build lzo by compiling the sources. It's libraries are in /usr/local/lib
> 
> When I run rpmbuild again, it still complains that it cannot find lzo. This
> is probably because rpmbuild does not know it needs to look in
> /usr/local/lib .
> 
> Is there any way we can instruct rpmbuild on where to find dependencies?
> 
> Or is it that rpmbuild needs these dependencies also to be installed using
> rpm, so that their details are in the rpm database? In which case maybe I
> should find and install lzo-devel from rpm's.

RPM (and other package managers) typically do not know about things you 
installed from the source code. If you merely want to install openvpn on 
the system, use a repository that has the necessary packages and saves 
your time

http://download.fedora.redhat.com/pub/epel/5/i386/repoview/openvpn.html

Look at http://fedoraproject.org/wiki/EPEL for more details.

Rahul







More information about the Plug-mail mailing list