Discussion:
ERROR: Can't create '/usr/local/lib64/perl5'
Zvi Vered
2017-02-26 03:50:35 UTC
Permalink
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.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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
Ulrich Windl
2017-03-01 07:18:21 UTC
Permalink
Post by Zvi Vered
Hello,
Under Centos 7.2.1511 I downloaded net-snmp-5.7.3.tar.gz and extracted it.
./configure --prefix=/tmp
make
make install
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
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?
Post by Zvi Vered
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
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
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Taylor, Ben
2017-03-01 12:35:53 UTC
Permalink
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:***@rz.uni-regensburg.de]
Sent: Wednesday, March 01, 2017 2:18 AM
To: Zvi Vered <***@gmail.com>; net-snmp-***@lists.sourceforge.net
Subject: Antw: ERROR: Can't create '/usr/local/lib64/perl5'
Post by Zvi Vered
Hello,
Under Centos 7.2.1511 I downloaded net-snmp-5.7.3.tar.gz and extracted it.
./configure --prefix=/tmp
make
make install
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
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?
Post by Zvi Vered
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
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
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-***@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Loading...