Getting a lot closer now!

First step download latest Perl:

  http://www.cpan.org/src/stable.tar.gz 


Then run:

  sh Configure -Dcc=gcc -Dprefix=/usr/local/net-snmp -Uinstallusrbinperl \
               -Duseshrplib -Dcf_email=your_email at your_domain \
               -Dperladmin=your_email at your_domain -Uuselargefiles -de

when finished make sure:

   grep cppsymbols config.sh

and make sure:

"-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"


doesn't appear! After that one can run:

  make
   make test  (optional)
   make install
   /usr/local/net-snmp/bin/perl -V



to install Perl. Once Perl has been install one can proceed with the 
installation process of net-snmp:

env PERLPROG=/usr/local/net-snmp/bin/perl ./configure --enable-embedded-perl \ 
 --with-mib-modules=ucd-snmp/lmSensors,ucd-snmp/diskio,smux,mibII/mta_sendmail \
 --with-cc=gcc && make && make test && make install


the only thing I have found is that I needed to add: /usr/local/bin and 
/usr/ccs/bin to the su $PATH.

This link also helped me out: 
http://www.mail-archive.com/net-snmp-coders at 
lists.sourceforge.net/msg11717.html



Now.... since I was still in the process of writing this while the code 
was compiling I thought that it would compile finally which has turned 
out not to be the case! I think I will attempt to take this thread to 
the net-snmp guys and try and figure out what's going on there.


--K


Kaya Saman wrote:
> Ok after some digging I managed to find a few things:
>
> http://www.mail-archive.com/net-snmp-users at 
> lists.sourceforge.net/msg04843.html 
>
>
> http://net-snmp.sourceforge.net/docs/README.solaris.html
>
> Basically the overall idea here is compile Perl from scratch as Sun's 
> inbuilt Perl doesn't seem to work!
>
> Regards,
>
> Kaya
>
>

Reply via email to