Zvi, You don't say which user you're running as. Typically, /usr/local is owned by root, so if your permissions as a non-root user for the /usr/local tree don't allow write access, or you're not installing as root, that could be a reason why it's failing.
The perl getting installed into /usr/local/lib64/perl5 is likely some inherited value from the perl5 install. There may be a configure option for net-snmp, but I don't have a build box handy to look at it. Regards, Ben -----Original Message----- From: Ulrich Windl [mailto:ulrich.wi...@rz.uni-regensburg.de] Sent: Wednesday, March 01, 2017 2:18 AM To: Zvi Vered <vered...@gmail.com>; net-snmp-users@lists.sourceforge.net Subject: Antw: ERROR: Can't create '/usr/local/lib64/perl5' >>> Zvi Vered <vered...@gmail.com> schrieb am 26.02.2017 um 04:50 in Nachricht <cabrndgzhbntbee6hod7qhb0yv6jkylpntkcdeh7gp+to7+p...@mail.gmail.com>: > Hello, > > Under Centos 7.2.1511 I downloaded net-snmp-5.7.3.tar.gz and extracted it. > > Then I ran: > ./configure --prefix=/tmp > make > make install > > During the install phase I got the following error: > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > ERROR: Can't create '/usr/local/lib64/perl5' > mkdir /usr/local/lib64/perl5: Permission denied at > /usr/share/perl5/ExtUtils/Install.pm line 494. Did you try "mkdir /usr/local/lib64/perl5" manually? > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > > Why am I getting this ? > I want to install net-snmp in /tmp. There should not be any permission > problem. > > Can I omit any perl in net-snmp ? > The final installation will be in a busybox target that has no perl at all. > > Thank you, > Z.V > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > 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 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ 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 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ 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