I chmod
chmod +x LBC
and make LBC executable. But now new problem comes up:
JSON not found - installing it.
Loading internal null logger. Install Log::Log4perl for logging messages
But fail to install it.
Why?
sudo cpan install JSON
I install all of the requirements using cpan instead of the LBC binary. I feel like it's faster.
[/quote]
It's fail:
sterg@LAPTOP:~$ sudo cpan install JSON
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/home/sterg/.cpan/Metadata'
Database was generated on Tue, 22 Jan 2019 13:17:03 GMT
Running install for module 'JSON'
Checksum for /home/sterg/.cpan/sources/authors/id/I/IS/ISHIGAKI/JSON-4.01.tar.gz ok
'YAML' not installed, will not store persistent state
Configuring I/IS/ISHIGAKI/JSON-4.01.tar.gz with Makefile.PL
Welcome to JSON (v.4.01)
=============================
** BACKWARD INCOMPATIBILITY **
Since version 2.90, stringification (and string comparison) for
JSON::true and JSON::false has not been overloaded. It shouldn't
matter as long as you treat them as boolean values, but a code that
expects they are stringified as "true" or "false" doesn't work as
you have expected any more.
if (JSON::true eq 'true') { # now fails
print "The result is 1 now."; # => The result is 1 now.
And now these boolean values don't inherit JSON::Boolean, either.
When you need to test a value is a JSON boolean value or not, use
JSON::is_bool function, instead of testing the value inherits
a particular boolean class or not.
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for JSON
Writing MYMETA.yml and MYMETA.json
ISHIGAKI/JSON-4.01.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for I/IS/ISHIGAKI/JSON-4.01.tar.gz
---- Unsatisfied dependencies detected during ----
---- ISHIGAKI/JSON-4.01.tar.gz ----
JSON::XS [requires,optional]
ISHIGAKI/JSON-4.01.tar.gz
make -- NOT OK
No such file or directory
Running install for module 'JSON::XS'
Checksum for /home/sterg/.cpan/sources/authors/id/M/ML/MLEHMANN/JSON-XS-4.0.tar.gz ok
---- Unsatisfied dependencies detected during ----
---- MLEHMANN/JSON-XS-4.0.tar.gz ----
Canary::Stability [build_requires]
Running install for module 'Canary::Stability'
Checksum for /home/sterg/.cpan/sources/authors/id/M/ML/MLEHMANN/Canary-Stability-2012.tar.gz ok
Configuring M/ML/MLEHMANN/Canary-Stability-2012.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Canary::Stability
Writing MYMETA.yml and MYMETA.json
MLEHMANN/Canary-Stability-2012.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for M/ML/MLEHMANN/Canary-Stability-2012.tar.gz
MLEHMANN/Canary-Stability-2012.tar.gz
make -- NOT OK
No such file or directory
MLEHMANN/JSON-XS-4.0.tar.gz
Has already been unwrapped into directory /home/sterg/.cpan/build/JSON-XS-4.0-9
Warning: Prerequisite 'Canary::Stability => 0' for 'MLEHMANN/JSON-XS-4.0.tar.gz' failed when processing 'MLEHMANN/Canary-Stability-2012.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Configuring M/ML/MLEHMANN/JSON-XS-4.0.tar.gz with Makefile.PL
Can't locate Canary/Stability.pm in @INC (you may need to install the Canary::Stability module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at Makefile.PL line 4.
BEGIN failed--compilation aborted at Makefile.PL line 4.
Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
MLEHMANN/JSON-XS-4.0.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
[/quote]
sudo apt-get install make
edit: sudo apt-get install build-essential