LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   error in building rpm of open ldap from source using rpm package manager (http://www.linuxquestions.org/questions/linux-software-2/error-in-building-rpm-of-open-ldap-from-source-using-rpm-package-manager-942745/)

Infotechie 05-01-2012 11:09 AM

error in building rpm of open ldap from source using rpm package manager
 
Hi,

I am trying to build rpm through source of Openldap_2.4.30 version but getting below build error:

/bin/sh ../../libtool --mode=install ../../build/shtool install -c -m 644 libldap.la /usr/local/openldap-2.4.31-root/usr/lib
libtool: install: error: cannot install 'libldap.la' to a directory not ending in usr/local/lib

I have searched a lot on google to find the solution of this problem. Most of the articles say to run make clean after configure. But it did not work.
Some threads say that this is a known bug in libldap library and it is unresolved. But in previous versions it is running.

Please provide your valuable suggestions. Is it a known bug? If yes, how can I avoid this problem?

Tinkster 05-01-2012 06:33 PM

Help us in helping you ...

What distro are you on?

Which rpm build are you using? I find it odd that it would complain about /usr/local, as
that's NOT the default path for any rpm based distro I know of.


Cheers,
Tink


P.S.: What happened to your abandoned thread that's marked as solved?

Infotechie 05-02-2012 01:10 AM

distro is Red Hat Linux Server release 5.3 (Tikanga)
rpm build: RPM version 4.4.2.3

About Abandoned Thread: By using debugging options I have traced the problem.


All times are GMT -5. The time now is 02:18 PM.