Actually, what I found is the "--with-install-prefix" option is added as a 
prefix to any paths used, so to install into 
"/mybuild/system/directory/usr/local", then I need:

--prefix=/usr/local
     --with-install-prefix=/mybuild/system/directory

Basically, the "--prefix" setting will get appended to the end of the 
"--with-install-prefix" path.


Need Help <[EMAIL PROTECTED]> wrote: Yes, I wrote it in the email backwards 
..... although in my build script it was correct  :>P


Dave Shield <[EMAIL PROTECTED]> wrote: On 18/07/07, Need Help  wrote:
> Excellent ...... looks like if I want to have NetSNMP install itself on our
> build system into "/mybuild/system/directory/usr/local"
> when the "make install" command is executed, but have the actual snmpd
> master agent and subagent run from the "/usr/local" directory on our target
> hardware box, then I can use the following configure options:
>
>     --prefix="/mybuild/system/directory/usr/local"
>     --with-install-prefix="/usr/local"

No - you've got that the wrong way round (I think).
If you want to run from /usr/local on the target box, then you need

      --prefix=/usr/local

If you want to install into /mybuild/system/directory/usr/local
then you need

     --with-install-prefix=/mybuild/system/directory/usr/local


Or else you can build with "--prefix=./usr/local"  (only),
and then run

    make install DESTDIR=/mybuild/system/directory/

Dave

        

---------------------------------
Shape Yahoo! in your own image.   Join our Network Research Panel today! 
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


       
---------------------------------
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 
 
---------------------------------
Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to