Re: Is it necessary to be root to install Net-SNMP

This is a discussion on Re: Is it necessary to be root to install Net-SNMP within the SNMP Users forums, part of the Networking and Network Related category; 2008/5/9 Raghavendra Prasad <raghavendra.p@gmail.com>: >>>OK - so install the perl modules (...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-22-2008
Dave Shield
 
Posts: n/a
Default Re: Is it necessary to be root to install Net-SNMP

2008/5/9 Raghavendra Prasad <raghavendra.p@gmail.com>:
>>>OK - so install the perl modules (manually) into a suitable location,
>>>and tweak the @INC search list to look there.

>
> Could you please explain in more detail. Are you referring to fiddling
> with Make file?


No.
I mean installing these modules manually.

i.e. rather than

cd perl ; make install

which will attempt to install the modules into the system location
(typically requiring root access).
Instead do something like:

mkdir $HOME/perl
mkdir $HOME/perl/NetSNMP
cd perl
cp SNMP.pm $HOME/perl/
cp ASN/ASN.pm OID/OID.pm default_store/*.pm $HOME/perl/NetSNMP


then tweak the mib2c script to add

use lib $HOME/perl;

so that the script will look there as well.


Note that this is completely untested, and I'm no perl expert.
But it ought to work.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

Reply With Quote
  #2 (permalink)  
Old 05-29-2008
Dave Shield
 
Posts: n/a
Default Re: Is it necessary to be root to install Net-SNMP

2008/5/29 Raghavendra Prasad <raghavendra.p@gmail.com>:
> ./configure --with-mib-modules="dio_modules/snmpData dio_modules/controller
> dio_modules/controller_trap dio_modules/general dio_modules/general_trap
> dio_modules/channelA dio_modules/channelA_trap dio_modules/channelB
> dio_modules/channelB_trap dio_modules/coupler dio_modules/coupler_trap
> dio_modules/standardPwrAmplif dio_modules/standardPwrAmplif_trap
> dio_modules/cabinet dio_modules/cabinet_trap dio_modules/klystronPwrAmplif1
> dio_modules/klystronPwrAmplif1_trap dio_modules/klystronPwrAmplif2
> dio_modules/klystronPwrAmplif2_trap dio_modules/inventory
> dio_modules/inventory_trap dio_modules/config dio_modules/config_trap
> dio_modules/sys dio_modules/sys_trap dio_modules/sysKp
> dio_modules/sysKp_trap dio_modules/rmsGeneral dio_modules/rmsGeneral_trap
> dio_modules/rcvr1 dio_modules/rcvr1_trap dio_modules/rcvr2
> dio_modules/rcvr2_trap"


You might find it easier if you created a file 'dio_modules.h' containing

config_require( dio_modules/snmpData )
config_require( dio_modules/controller )
:
config_require( dio_modules/rcvr2_trap )

Then you could simply invoke

configure --with-mib-modules=dio_modules --with-persistent-directory.....

rather than listing all the modules every time.


> It am not able to get an agent with second configuration.


What do you mean by this? Does the compilation fail?
If so, what are the last few lines of

(cd agent ; make )

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:41 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0