Subject: | Installation attempt during "perl Build.PL" |
Running "perl Build.PL" as an unprivileged user fails on a CentOS8 system (perl is 5.30.1):
$ ./Build
...
Making install in etc
make[1]: Entering directory '/home/cpansand/.cpan/build/2019120111/Alien-RRDtool-0.06-1/rrdtool-1.7.2/etc'
make[2]: Entering directory '/home/cpansand/.cpan/build/2019120111/Alien-RRDtool-0.06-1/rrdtool-1.7.2/etc'
make[2]: Nothing to be done for 'install-exec-am'.
/usr/bin/mkdir -p '/usr/lib/systemd/system'
/usr/bin/install -c -m 644 rrdcached.socket rrdcached.service '/usr/lib/systemd/system'
/usr/bin/install: cannot create regular file '/usr/lib/systemd/system/rrdcached.socket': Permission denied
/usr/bin/install: cannot create regular file '/usr/lib/systemd/system/rrdcached.service': Permission denied
make[2]: *** [Makefile:420: install-systemdsystemunitDATA] Error 1
make[2]: Leaving directory '/home/cpansand/.cpan/build/2019120111/Alien-RRDtool-0.06-1/rrdtool-1.7.2/etc'
make[1]: *** [Makefile:489: install-am] Error 2
make[1]: Leaving directory '/home/cpansand/.cpan/build/2019120111/Alien-RRDtool-0.06-1/rrdtool-1.7.2/etc'
make: *** [Makefile:503: install-recursive] Error 1
Failed to system(make install): Bad file descriptor at ./Build line 62.