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"
Thanks
Dave Shield <[EMAIL PROTECTED]> wrote: On 17/07/07, Need Help wrote:
> When I perform the "configure" command I provide a "--prefix=/usr/local"
> option value to indicate the NetSNMP package should be installed into
> "/usr/local" after it has been cross-compiled and I run "make install".
That's not quite right.
The role of the "--prefix" flag is to specify where the Net-SNMP package
will be installed when the software is *run*. This path will get hard
coded into various bits of the library and applications.
> I am just wondering whether it would be possible somehow to have
> "configure" install the package contents to some other directory
Hint:
Try running "configure --help" and look for where this mentions:
a) prefix
and
b) install
> Basically, must the install directory locations match on the host machine
> as well as the target machine all the time or is there a way to install to a
> new location on the target hardware box?
Turn the question the other way round.
Ask if there's a way to install the software to a temporary intermediate
directory, before deploying it for real.
The hint immediately above may not be entirely irrelevant here....
Dave
---------------------------------
Choose the right car based on your needs. Check out Yahoo! Autos new Car
Finder tool.-------------------------------------------------------------------------
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