Static linking: installation of snmpd and net-snmp libraries
"Sauterel Fabrice" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am running net-snmp-5.2.3 on AIX-5.3. I succeeded to configure, compile and installed the agent. But now I would like to create a tar archive, to be able to install the agent wherever I had like. For this purpose I configured the agent not to use shared libraries and I enabled static libraries: ./configure --with-cc=xlc_r --disable-shared --enable-static -with-default-snmp-version=3 --with-sys-contact=operator --with-sys-location=ROOM101 -with-logfile=log/snmpd.log --with-persistent-directory=data 1) My first question: I would like to choose at installation time the location of the log file as well as the persistent directory, is it possible???? Then I type make make install DESTDIR=/tmp/NET_SNMP_HOME prefix=/some/where/else/ exec_prefix=/some/where/else That is I obtain this direcoty structure: /tmp/NET_SNMP_HOME/some/where/else/[bin][include][lib][man][sbin][share] Then I create my archive and uncompress it, so has to obtain this: /some/where/else/[bin][include][lib][man][sbin][share] But then I cannot start the agent (sbin/snmpd). If I give the same prefix to configure (--prefix=/some/where/else e.g.) then it is working. But if I change it at installation time, it hangs! 2) My second question: I configured the agent to link statically so I don't understand why it needs to be installed in a particular directory specified at configuration time. Is there any way to break this dependency? Best Regards - Fabrice ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users