Results 1 to 2 of 2
Hello, well I'm trying to install the shodan library docs.shodanhq.com/perl/tutorial.html Have issues It won't install JSON::XS 'sudo perl -MCPAN -e 'install JSON::XS' Code: Checking if your kit is complete... Looks ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-05-2012 #1
- Join Date
- Nov 2012
Can't install JSON::XS ???? Pleasehelp
Have issues It won't install JSON::XS
'sudo perl -MCPAN -e 'install JSON::XS'
Checking if your kit is complete... Looks good Writing Makefile for JSON::XS Writing MYMETA.yml cp XS/Boolean.pm blib/lib/JSON/XS/Boolean.pm cp XS.pm blib/lib/JSON/XS.pm /usr/bin/perl /usr/share/perl/5.14/ExtUtils/xsubpp -typemap /usr/share/perl/5.14/ExtUtils/typemap -typemap typemap XS.xs > XS.xsc && mv XS.xsc XS.c cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"2.33\" -DXS_VERSION=\"2.33\" -fPIC "-I/usr/lib/perl/5.14/CORE" XS.c /bin/sh: 1: cc: not found make: *** [XS.o] Error 127 MLEHMANN/JSON-XS-2.33.tar.gz /usr/bin/make -- NOT OK 'YAML' not installed, will not store persistent state Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible
Also how do I install curl?
'curl -OL github.com/downloads/achillean/shodan-perl/Shodan-0.3.tar.gz' didn't work so I just used wget hope it's the same.
I'm a utter noob. If someone could help me I can reward them 20-50$ via PayPal/LR
- 11-06-2012 #2
- Join Date
- May 2011
Hello and welcome!
If I were you, I'd install Perl packages from the system's software sources, whenever possible. For the JSON::XS Perl module, you can install it like this:
sudo apt-get install libjson-xs-perl
perl -e 'use JSON::XS'
To install curl, simply do:
sudo apt-get install curl
sudo apt-get install build-essential