I can build and install. Hurrah!
I have a script that builds a runtime environment for amanda, including
building some vtapes. When I run that, all seems to run well, until I
go to build my vtape slots with amlabel. then I get a loop of:
--------------------------------------------------
21
Can't locate JSON.pm in @INC (you may need to install the JSON module) (@INC
contains: /usr/local/share/perl/5.24.1 /etc/perl
/usr/local/lib/x86_64-linux-gnu/perl/5.24.1
/usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5
/usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24
/usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at
/usr/local/share/perl/5.24.1/Amanda/Message.pm line 29.
BEGIN failed--compilation aborted at
/usr/local/share/perl/5.24.1/Amanda/Message.pm line 29.
Compilation failed in require at /usr/local/share/perl/5.24.1/Amanda/Device.pm
line 1473.
BEGIN failed--compilation aborted at
/usr/local/share/perl/5.24.1/Amanda/Device.pm line 1473.
Compilation failed in require at /usr/sbin/amlabel line 30.
BEGIN failed--compilation aborted at /usr/sbin/amlabel line 30.
--------------------------------------------------
The short of it is that JSON.pm is not in my @INC. It has been installed, at
/usr/local/share/perl/5.24.1/Amanda/Report/. But that does not appear to be in
my @INC array.
The relevant portion of the script is:
--------------------------------------------------
cd ${storageDir}/vtapes
# make one to tapecycle slots
for i in $(seq 1 ${tapecycle} ) ; do
echo $i ;
if [ -e slot$i ] ; then
echo "slot$i exists. Not making it."
else
mkdir -p slot$i
chown -R backup:backup slot$i
chmod 0700 slot$i # privacy & security.
su backup -c "/usr/sbin/amlabel ${configName} ${configName}-$( printf
%03d $i) slot $i"
fi
done
--------------------------------------------------
--
"When we talk of civilization, we are too apt to limit the meaning of
the word to its mere embellishments, such as arts and sciences; but
the true distinction between it and barbarism is, that the one
presents a state of society under the protection of just and
well-administered law, and the other is left to the chance government
of brute force."
- The Rev. James White, Eighteen Christian Centuries, 1889
Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB
https://charlescurley.com