I am trying to build rpm for net-snmp 5.5 on a redhat 3 machine. I am using
spec file that came with net-snmp5.5 stored in dist directory.
Any clue will be highly appreciated.
Thank you.
rn

It exits at with message:

Warning: You do not have permissions to install into
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi at
/usr/lib/perl5/5.8.0/ExtUtils/Install.pm line 84.
mkdir /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/SNMP:
Permission denied at /usr/lib/perl5/5.8.0/ExtUtils/Install.pm line 137
make[1]: *** [pure_vendor_install] Error 255
make[1]: Leaving directory `/home/sjha/rpm/BUILD/net-snmp-5.5/perl'
make: *** [perlinstall] Error 1
error: Bad exit status from /home/sjha/rpm/tmp/rpm-tmp.48839 (%install)


RPM build errors:
    Bad exit status from /home/sjha/rpm/tmp/rpm-tmp.48839 (%install)

If I look at the rpm-tmp.48839. I get following at the end:


rm -rf $RPM_BUILD_ROOT

make DESTDIR=/tmp/net-snmp-root install

# Remove 'snmpinform' from the temporary directory because it is a
# symbolic link, which cannot be handled by the rpm installation process.
/bin/rm -f $RPM_BUILD_ROOT/usr/bin/snmpinform
# install the init script
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
perl -i -p -e 's@/usr/local/share/snmp/@/etc/snmp/@g;s...@usr/local@/u...@g'
dist/snmpd-init.d
install -m 755 dist/snmpd-init.d $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd

# unneeded Perl stuff
find $RPM_BUILD_ROOT//usr/lib/perl5/ -name Bundle -type d | xargs rm -rf
find $RPM_BUILD_ROOT//usr/lib/perl5/ -name perllocal.pod | xargs rm -f

# store a copy of installed Perl stuff.  It's too complex to predict
(xxdir=`pwd` && cd $RPM_BUILD_ROOT && find usr/lib*/perl5 -type f | sed
's/^/\//' > $xxdir/net-snmp-perl-files)



   /usr/lib/rpm/find-debuginfo.sh /home/ranglieNepal/rpm/BUILD/net-snmp-5.5



    /usr/lib/rpm/redhat/brp-compress

    /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
    /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip
/usr/bin/objdump
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
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/listinfo/net-snmp-users

Reply via email to