On Thu, 24 Jun 2004 09:43:59 -0500 [EMAIL PROTECTED] wrote:
BBC> I am cross compiling for a PPC/Linux target.
BBC> 
BBC> I have not been doing a "make install" because this has no meaning in a
BBC> cross compile environment (or at least mine).  I plan on just moving the
BBC> snmpd executable over to the target and executing it.  It took me a while,
BBC> but I finally realized that agent/snmpd is a script and not a binary file.
BBC> In this script it refers to directories on my build system!  So in other
BBC> words, my build system needs to have the exact same directory structure as
BBC> my target system!  

You should configure with the --prefix and --exec-prefix for your target
system. Then, after building, you can install to a temporary location.

  ./configure --prefix=/not/usr/
  make
  make install prefix=/tmp/not/usr exec-prefix=/tmp/not/usr
  cd /tmp
  tar xvf net-snmp-target.tar not

Then copy the tar ball to your target, and on your target

  cd /
  tar xvf net-snmp-target.tar


-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to