Jump to content

[Solved] Can't install JSON:XS module for Perl


vol7ron

Recommended Posts

Testing connection speed...(using fast method)...Done
Ping:0 (ticks) Testing connection speed to cpan.yimg.com using pureperl...(77500.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to cpan.mirrors.hoobly.com using pureperl...(61800.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to mirrors1.kernel.org using pureperl...(30400.00 bytes/s)...Done
Three usable mirrors located
Mirror Check passed for cpan.yimg.com (/index.html)
Method: Perl Expect
Testing connection speed...(using fast method)...Done
Ping:0 (ticks) Testing connection speed to cpan.yimg.com using pureperl...(77500.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to cpan.mirrors.hoobly.com using pureperl...(30900.00 bytes/s)...Done
Ping:0 (ticks) Testing connection speed to mirrors1.kernel.org using pureperl...(30400.00 bytes/s)...Done
Three usable mirrors located
Mirror Check passed for cpan.yimg.com (/index.html)
Disabling /bin/wget since LWP is available at /usr/local/cpanel/Cpanel/cPCPAN/Config.pm line 82.
Disabling /bin/ftp since Net::FTP is available at /usr/local/cpanel/Cpanel/cPCPAN/Config.pm line 87.
Going to read '/home1/vol7ron/.cpan/Metadata'
  Database was generated on Wed, 03 Aug 2011 17:29:39 GMT
Running install for module 'DBD::Pg'
Running make for T/TU/TURNSTEP/DBD-Pg-2.18.1.tar.gz
CPAN: Digest::SHA loaded ok (v5.61)
CPAN: Compress::Zlib loaded ok (v2.035)
Checksum for /home1/vol7ron/.cpan/sources/authors/id/T/TU/TURNSTEP/DBD-Pg-2.18.1.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.76)
DBD-Pg-2.18.1/
DBD-Pg-2.18.1/quote.h
DBD-Pg-2.18.1/.perlcriticrc
DBD-Pg-2.18.1/TODO
DBD-Pg-2.18.1/README
DBD-Pg-2.18.1/types.c
DBD-Pg-2.18.1/Changes
DBD-Pg-2.18.1/Makefile.PL
DBD-Pg-2.18.1/t/
DBD-Pg-2.18.1/t/00basic.t
DBD-Pg-2.18.1/t/08async.t
DBD-Pg-2.18.1/t/01constants.t
DBD-Pg-2.18.1/t/03smethod.t
DBD-Pg-2.18.1/t/01connect.t
DBD-Pg-2.18.1/t/03dbmethod.t
DBD-Pg-2.18.1/t/06bytea.t
DBD-Pg-2.18.1/t/02attribs.t
DBD-Pg-2.18.1/t/04misc.t
DBD-Pg-2.18.1/t/lib/
DBD-Pg-2.18.1/t/lib/App/
DBD-Pg-2.18.1/t/lib/App/Info.pm
DBD-Pg-2.18.1/t/lib/App/Info/
DBD-Pg-2.18.1/t/lib/App/Info/RDBMS/
DBD-Pg-2.18.1/t/lib/App/Info/RDBMS/PostgreSQL.pm
DBD-Pg-2.18.1/t/lib/App/Info/Util.pm
DBD-Pg-2.18.1/t/lib/App/Info/Request.pm
DBD-Pg-2.18.1/t/lib/App/Info/Handler.pm
DBD-Pg-2.18.1/t/lib/App/Info/Handler/
DBD-Pg-2.18.1/t/lib/App/Info/Handler/Prompt.pm
DBD-Pg-2.18.1/t/lib/App/Info/RDBMS.pm
DBD-Pg-2.18.1/t/dbdpg_test_setup.pl
DBD-Pg-2.18.1/t/20savepoints.t
DBD-Pg-2.18.1/t/07copy.t
DBD-Pg-2.18.1/t/09arrays.t
DBD-Pg-2.18.1/t/00_signature.t
DBD-Pg-2.18.1/t/12placeholders.t
DBD-Pg-2.18.1/t/99cleanup.t
DBD-Pg-2.18.1/dbivport.h
DBD-Pg-2.18.1/Pg.h
DBD-Pg-2.18.1/dbdimp.c
DBD-Pg-2.18.1/quote.c
DBD-Pg-2.18.1/META.yml
DBD-Pg-2.18.1/lib/
DBD-Pg-2.18.1/lib/Bundle/
DBD-Pg-2.18.1/lib/Bundle/DBD/
DBD-Pg-2.18.1/lib/Bundle/DBD/Pg.pm
DBD-Pg-2.18.1/Pg.xs
DBD-Pg-2.18.1/README.win32
DBD-Pg-2.18.1/win32.mak
DBD-Pg-2.18.1/MANIFEST
DBD-Pg-2.18.1/SIGNATURE
DBD-Pg-2.18.1/Pg.pm
DBD-Pg-2.18.1/testme.tmp.pl
DBD-Pg-2.18.1/MANIFEST.SKIP
DBD-Pg-2.18.1/LICENSES/
DBD-Pg-2.18.1/LICENSES/artistic.txt
DBD-Pg-2.18.1/LICENSES/gpl-2.0.txt
DBD-Pg-2.18.1/README.dev
DBD-Pg-2.18.1/dbdimp.h
DBD-Pg-2.18.1/types.h
CPAN: File::Temp loaded ok (v0.22)
CPAN: Parse::CPAN::Meta loaded ok (v1.4401)
CPAN: CPAN::Meta loaded ok (v2.110930)
CPAN: Module::CoreList loaded ok (v2.42)

  CPAN.pm: Going to build T/TU/TURNSTEP/DBD-Pg-2.18.1.tar.gz

perl-64bit-hack: enabled
Configuring DBD::Pg 2.18.1
PostgreSQL version: 80122 (default port: 5432)
POSTGRES_HOME: (not set)
POSTGRES_INCLUDE: /usr/include
POSTGRES_LIB: /usr/lib64
OS: linux

Checking if your kit is complete...
Looks good
'EXTRALIBDIR' is not a known MakeMaker parameter name.
'OTHERLDFLAGS' is not a known MakeMaker parameter name.
Using DBI 1.616 (for perl 5.008008 on x86_64-linux) installed in /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux/auto/DBI/
Writing Makefile for DBD::Pg
Could not read metadata file. Falling back to other methods to determine prerequisites
cp testme.tmp.pl blib/lib/DBD/testme.tmp.pl
cp lib/Bundle/DBD/Pg.pm blib/lib/Bundle/DBD/Pg.pm
cp Pg.pm blib/lib/DBD/Pg.pm
/usr/local/bin/perl -p -e "s/~DRIVER~/Pg/g; s/^do\(/dontdo\(/" /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux/auto/DBI/Driver.xst > Pg.xsi
/usr/local/bin/perl /usr/local/lib/perl5/site_perl/5.8.8/ExtUtils/xsubpp  -typemap /usr/local/lib/perl5/5.8.8/ExtUtils/typemap  Pg.xs > Pg.xsc && mv Pg.xsc Pg.c
cc -c  -I/usr/include -I/usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux/auto/DBI -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPGLIBVERSION=80122 -DPGDEFPORT=5432 -O2  -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"2.18.1\" -DXS_VERSION=\"2.18.1\" -fpic "-I/usr/local/lib/perl5/5.8.8/x86_64-linux/CORE"   Pg.c
Died at /scripts/cpan_sandbox/x86_64/cc line 24.
make: *** [Pg.o] Error 2

  TURNSTEP/DBD-Pg-2.18.1.tar.gz
  /usr/bin/make PREFIX=/home1/vol7ron/perl/usr/local OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 PREFIX=/home1/vol7ron/perl/usr/local OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 -- NOT OK
CPAN: YAML loaded ok (v0.73)
Running make install
  Make had returned bad status, install seems impossible
perlmod--Install done

 

 

I can't seem to get it installed. Also is there a newer version than 5.8.8 of Perl?

Link to comment
Share on other sites

  • Replies 50
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

I tried to install JSON::XS module via cPanel -> Perl Module Installer

but failed.

 

The end of the Log as follows:

====================

perl-64bit-hack: enabled

Checking if your kit is complete...

Looks good

Warning: prerequisite common::sense 0 not found.

'EXTRALIBDIR' is not a known MakeMaker parameter name.

'OTHERLDFLAGS' is not a known MakeMaker parameter name.

Writing Makefile for JSON::XS

Could not read metadata file. Falling back to other methods to determine prerequisites

CPAN: Module::CoreList loaded ok (v2.42)

cp XS/Boolean.pm blib/lib/JSON/XS/Boolean.pm

cp XS.pm blib/lib/JSON/XS.pm

/usr/local/bin/perl /usr/local/lib/perl5/site_perl/5.8.8/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap XS.xs > XS.xsc && mv XS.xsc XS.c

cc -c -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DVERSION=\"2.31\" -DXS_VERSION=\"2.31\" -fpic "-I/usr/local/lib/perl5/5.8.8/x86_64-linux/CORE" XS.c

Died at /scripts/cpan_sandbox/x86_64/cc line 24.

make: *** [XS.o] Error 2

MLEHMANN/JSON-XS-2.31.tar.gz

/usr/bin/make PREFIX=/home1/vierbein/perl/usr/local OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 PREFIX=/home1/vierbein/perl/usr/local OTHERLDFLAGS=-L/usr/lib64 LDFLAGS=-L/usr/lib64 EXTRALIBDIR=/usr/lib64 -- NOT OK

 

Running make install

Make had returned bad status, install seems impossible

perlmod--Install done

=====================

 

Can someone help me to overcome this difficulty?

 

Thanks

Link to comment
Share on other sites

What server would you like this installed on?

 

 

Stevie server on heliohost.org

 

I've installed one Perl module which uses JSON::XS.

I thought that process should install all dependent modules but it is not the case.

Anyway I can't install JSON::XS directly from CPAN.

Link to comment
Share on other sites

Both of those modules have been installed.

 

What version of perl would you like installed?

 

 

Both of those?

 

I still have no JSON::JS module installed in my account on arxiv.heliohost.org.

 

Here is the screenshot of installed modules

 

post-24170-1312534973.jpg

Link to comment
Share on other sites

Guest Geoff
I still have no JSON::JS module installed in my account on arxiv.heliohost.org.

 

I installed JSON::XS. You're confusing me about which modules you would like installed. Could you please confirm which modules you want installed?

 

 

Here is the screenshot of installed modules

 

Click "show system installed modules"

Link to comment
Share on other sites

I still have no JSON::JS module installed in my account on arxiv.heliohost.org.

 

I installed JSON::XS. You're confusing me about which modules you would like installed. Could you please confirm which modules you want installed?

 

 

Here is the screenshot of installed modules

 

Click "show system installed modules"

 

 

I checked that JSON::XS indeed was installed as regular module.

 

I wanted to check that my site works fine after all, but again failed.

 

my site is at http://arxiv.heliohost.org/ but it is down! At the same time heliohost.org is online.

Also I can't access it via (s)ftp also.

 

 

Link to comment
Share on other sites

Both of those modules have been installed.

 

What version of perl would you like installed?

 

 

Thank you Geoff. Originally this topic was titled DBD::Pg, but I guess it was changed to JSON::XS for the other user. I see DBD::Pg has been installed on Stevie (though I must be honest, I didn't see the Show System Installed Modules before, so it may have always been there. Regardless, thank you!

 

Regarding the Perl version, it would be nice to have 5.12+. I think HelioHost is using 5.8.8; I think that's what's shipped by default with RHEL/Red Hat, which could be why this is what's used. The current version according to the Perl docs (http://perldoc.perl.org/) is 5.14.1, but I would be glad to have anything 5.12 and on.

 

The only other update I would request is PostgreSQL. I think HelioHost is using 8.1, which was a long time ago and is no longer being supported by the community. The latest stable release is 9.0.4 (http://www.postgresql.org/), but I would be happy with 8.4 or later.

 

--- RECAP ---

Perl 5.8.8 -> 5.12.2+ (preferrably 5.14.1)

PostgreSQL 8.1 -> 8.4+ (preferably 9.0.4)

----

 

The other thing I'm trying to do is install Mason (http://search.cpan.org/~jswartz/Mason-2.13/lib/Mason/Manual/Admin.pod), which is a perl module/templating system that requires mod_perl installed on Apache, which I'm not sure if HH has installed. The point of this module is to make writing web-pages in Perl, more similar to PHP, in that script can easily be interpolated into HTML.

 

 

Thank you so much,

vol7ron

Link to comment
Share on other sites

Guest Geoff
Are these forums the best way to openly discuss server wants/wishes/updates?

 

HelioHost IRC is new; and we don't have a humongous community. That might be why no one is there. These forums have been here since before heliohost ever existed, so you're probably going to get better help here.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

×
×
  • Create New...