bash-2.05$ make install prefix=`pwd`/pkgroot/ exec_prefix=`pwd`/pkgroot/
. . .
making installlibs in /home/jfrank/net-snmp-5.1.2/snmplib
mkdir /opt/net-snmp
mkdir: Failed to make directory "/opt/net-snmp"; Permission denied
mkdir /opt/net-snmp/lib
mkdir: Failed to make directory "/opt/net-snmp/lib"; No such file or directory
*** Error code 2
make: Fatal error: Command failed for target `installlocallibs'
Current working directory /home/jfrank/net-snmp-5.1.2/snmplib
*** Error code 1
make: Fatal error: Command failed for target `installsubdirlibs'
I figured that instead of handling 2 variables, I'd do it in one, and when I change the make install commands to pass down INSTALL_PREFIX, it appeared to work just fine.
I'll be happy to submit my package build script when I'm done.
Jason
On Nov 1, 2004, at 11:24 AM, Bruce Shaw wrote:
This is documented in README.solaris
make install prefix=/tmp/net-snmp exec_prefix=/tmp/net-snmp
I'm currently working on a "real" Solaris package for net-snmp (i,e,
using Sun's pkgadd and friends.) The process basically involves
installing to a dummy directory, building the package, then
substituting in the real directory for the dummy one inside of the
newly created package. So, I'm doing a make install with an
INSTALL_PREFIX of /tmp/net-snmp (for example). Here's my make command:
$MAKE install INSTALL_PREFIX=/tmp/net-snmp \ persistentdir=/tmp/net-snmp/var/snmp \ || exit
This goes and processes the header files just fine (since they're in the top level Makefile), but when we call the lower level Makefiles to install the libraries and application, they attempt to install in the original locations, because the INSTALL_PREFIX is not being propagated down the make chain.
Is there a better way to do this?
When you get it all working, please tell us how you did it.
This communication is intended for the use of the recipient to which it is
addressed, and may contain confidential, personal and or privileged
information. Please contact us immediately if you are not the intended
recipient of this communication, and do not copy, distribute, or take action
relying on it. Any communication received in error, or subsequent reply,
should be deleted or destroyed.
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
