SUMMARY: Perl module (Text::CSV_XS) installation failed... any suggestions?

From: Sharma, Vikas \(TEK System\) <vshar_at_allstate.com>
Date: Thu Oct 04 2007 - 14:04:32 EDT
Hi all,

Thanks to Lisa, Barry, Musa, Anthony, Darren and Chris for their
suggestions. Almost everyone pointed in same direction.... installation
of GCC :) and it worked.

Here is what I have done to make it work:

1) Installed GCC compiler
/PERL_MODULES/Text-CSV_XS-0.31->which gcc
/usr/sfw/bin/gcc

2) Made a soft link of gcc to /usr/ucb/cc

3) The following article is having very good stuff for the error I
received:
http://blogs.sun.com/fintanr/category/Perl

I followed :

/PERL_MODULES/Text-CSV_XS-0.31->ls -l /usr/perl5/5.8.4/bin/perlgcc
-r-xr-xr-x   1 root     bin          651 Jan 21  2005
/usr/perl5/5.8.4/bin/perlgcc

/PERL_MODULES/Text-CSV_XS-0.31->/usr/perl5/5.8.4/bin/perlgcc Makefile.PL
Writing Makefile for Text::CSV_XS


/PERL_MODULES/Text-CSV_XS-0.31->/usr/ccs/bin/make
gcc -c    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O2
-fno-strict-aliasing    -DVERSION=\"0.31\"  -DXS_VERSION=\"0.31\" -fPIC
"-I             /usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE"   CSV_XS.c
Running Mkbootstrap for Text::CSV_XS ()
chmod 644 CSV_XS.bs
rm -f blib/arch/auto/Text/CSV_XS/CSV_XS.so
LD_RUN_PATH="" gcc  -G CSV_XS.o  -o blib/arch/auto/Text/CSV_XS/CSV_XS.so
chmod 755 blib/arch/auto/Text/CSV_XS/CSV_XS.so
cp CSV_XS.bs blib/arch/auto/Text/CSV_XS/CSV_XS.bs
chmod 644 blib/arch/auto/Text/CSV_XS/CSV_XS.bs
Manifying blib/man3/Text::CSV_XS.3

/PERL_MODULES/Text-CSV_XS-0.31->/usr/ccs/bin/make test
PERL_DL_NONLAZY=1 /usr/perl5/5.8.4/bin/perl "-MExtUtils::Command::MM"
"-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_pod..........skipped
        all skipped: Test::Pod 1.00 required for testing POD
t/01_pod..........skipped
        all skipped: Test::Pod::Covarage required for testing POD
Coverage
t/10_base.........ok
t/12_acc..........ok
t/15_flags........ok
t/20_file.........ok
t/21_lexicalio....ok
t/22_scalario.....ok
t/30_types........ok
t/40_misc.........ok
t/45_eol..........ok
t/50_utf8.........ok
t/55_combi........ok
t/60_samples......ok
t/65_allow........ok
t/70_rt...........ok
t/80_diag.........ok 1/6# Next line should be an error message
t/80_diag.........ok 2/6# CSV_XS ERROR: 2027 - EIQ - Quoted field not
terminated
t/80_diag.........ok
All tests successful, 2 tests skipped.
Files=17, Tests=10510,  9 wallclock secs ( 8.77 cusr +  0.47 csys =
9.24 CPU)


/PERL_MODULES/Text-CSV_XS-0.31->/usr/ccs/bin/make install
Installing
/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/Text/CSV_XS/CSV_XS.so
Installing
/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/Text/CSV_XS/CSV_XS.bs
Files found in blib/arch: installing files in blib/lib into architecture
dependent library tree
Installing /usr/perl5/site_perl/5.8.4/sun4-solaris-64int/Text/CSV_XS.pm
Installing /usr/perl5/5.8.4/man/man3/Text::CSV_XS.3
Writing
/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/Text/CSV_XS/.packlist
Appending installation info to
/usr/perl5/5.8.4/lib/sun4-solaris-64int/perllocal.pod


/PERL_MODULES/Text-CSV_XS-0.31->/usr/ccs/bin/make clean
rm -rf CSV_XS.c CSV_XS.c.gcov CSV_XS.gcda CSV_XS.gcno CSV_XS.xs.gcov
cover_db ./blib Makefile.aperl blib/arch/auto/Text/CSV_XS/extralibs.all
bli             b/arch/auto/Text/CSV_XS/extralibs.ld perlmain.c tmon.out
mon.out so_locations pm_to_blib *.o *.a perl.exe perl perl CSV_XS.bs
CSV_XS.bso CSV_XS.             def libCSV_XS.def CSV_XS.exp CSV_XS.x
core core.*perl.*.? *perl.core core.[0-9] core.[0-9][0-9]
core.[0-9][0-9][0-9] core.[0-9][0-9][0-9][0-9] c
ore.[0-9][0-9][0-9][0-9][0-9]
mv Makefile Makefile.old > /dev/null 2>&1

This way I was able to install the perl module which was failing earlier
with CC error.

Thanks again for your time.

Vikas




-----Original Message-----
From: sunmanagers-bounces@sunmanagers.org
[mailto:sunmanagers-bounces@sunmanagers.org] On Behalf Of Sharma, Vikas
(TEK System)
Sent: Thursday, October 04, 2007 11:00 AM
To: sunmanagers@sunmanagers.org
Subject: Perl module (Text::CSV_XS) installation failed... any
suggestions?

Dear Sun & Perl gurus,

It is bit different track to ask any perl module installation question
here but since it is more of dependency on OS package question hence I
am daring to ask in this forum. :-)

I am trying to install Text-CSV_XS-0.31 (Text::CSV_XS) module on my
Solaris 10 server. Like any other module, I followed the same procedure
and ended up with OS package related error. Could anyone please have a
look at the error and let me know the possible cause of this error and
how to correctly install this module without any problem.

Needless to say that I am a newbie for perl but know and added modules
in past without any such problem. I already google'd for this error
without any luck.

Thanks for your time.
Vikas

------------------------------------------------------------------------
--------


/PERL_MODULES->ls -la
total 1064
drwxr-xr-x   2 root     root         512 Oct  4 10:23 .
drwxr-xr-x   7 root     root        1024 Oct  4 10:23 ..
-rw-r--r--   1 root     root      484105 Oct  3 15:56
Spreadsheet-WriteExcel-2.18.tar.gz
-rw-r--r--   1 root     root       42884 Oct  4 09:22
Text-CSV_XS-0.31.tar.gz

/PERL_MODULES->gunzip Text-CSV_XS-0.31.tar.gz

/PERL_MODULES->tar xf Text-CSV_XS-0.31.tar

/PERL_MODULES->ls -la
total 1350
drwxr-xr-x   3 root     root         512 Oct  4 10:25 .
drwxr-xr-x   7 root     root        1024 Oct  4 10:23 ..
-rw-r--r--   1 root     root      484105 Oct  3 15:56
Spreadsheet-WriteExcel-2.18.tar.gz
drwxr-xr-x   4 dmasj    100          512 Jul 23 09:07 Text-CSV_XS-0.31
-rw-r--r--   1 root     root      174080 Oct  4 09:22
Text-CSV_XS-0.31.tar

/PERL_MODULES->cd Text-CSV_XS-0.31

/PERL_MODULES/Text-CSV_XS-0.31->ls -la
total 172
drwxr-xr-x   4 dmasj    100          512 Jul 23 09:07 .
drwxr-xr-x   3 root     root         512 Oct  4 10:25 ..
-rw-r--r--   1 dmasj    100        34718 Jun 21 06:29 CSV_XS.pm
-rw-r--r--   1 dmasj    100        24089 Jul 23 08:58 CSV_XS.xs
-rw-r--r--   1 dmasj    100         8471 Jul 23 09:01 ChangeLog
-rw-r--r--   1 dmasj    100         1092 Jul 23 09:07 MANIFEST
-rw-rw-rw-   1 dmasj    100          483 Jul 23 09:07 META.yml
-rw-r--r--   1 dmasj    100         1435 Jun  8 09:53 Makefile.PL
-rw-r--r--   1 dmasj    100         1209 Jun 17 10:22 README
drwxr-xr-x   2 dmasj    100          512 Jul 23 09:07 examples
-rw-r--r--   1 dmasj    100         7795 Jun 28  1999 ppport.h
drwxr-xr-x   2 dmasj    100          512 Jul 23 09:07 t

/PERL_MODULES/Text-CSV_XS-0.31->perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Text::CSV_XS

/PERL_MODULES/Text-CSV_XS-0.31->/usr/ccs/bin/make
cp CSV_XS.pm blib/lib/Text/CSV_XS.pm
/usr/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp  -typemap
/usr/perl5/5.8.4/lib/ExtUtils/typemap  CSV_XS.xs > CSV_XS.xsc && mv
CSV_XS.xsc CSV_XS.c
cc -c    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8
-D_TS_ERRNO -xO3 -xspace -xildoff    -DVERSION=\"0.31\"
-DXS_VERSION=\"0.31\" -KPIC
"-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE"   CSV_XS.c
/usr/ucb/cc:  language optional software package not installed
*** Error code 1
make: Fatal error: Command failed for target `CSV_XS.o'

/PERL_MODULES/Text-CSV_XS-0.31->ls -la /usr/ucb/cc
-r-xr-xr-x   1 root     bin         3487 Jan 21  2005 /usr/ucb/cc

/PERL_MODULES/Text-CSV_XS-0.31->/usr/ccs/bin/make
cc -c    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8
-D_TS_ERRNO -xO3 -xspace -xildoff    -DVERSION=\"0.31\"
-DXS_VERSION=\"0.31\" -KPIC
"-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE"   CSV_XS.c
/usr/ucb/cc:  language optional software package not installed
*** Error code 1
make: Fatal error: Command failed for target `CSV_XS.o'

/PERL_MODULES/Text-CSV_XS-0.31->/usr/ccs/bin/make test
cc -c    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8
-D_TS_ERRNO -xO3 -xspace -xildoff    -DVERSION=\"0.31\"
-DXS_VERSION=\"0.31\" -KPIC
"-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE"   CSV_XS.c
/usr/ucb/cc:  language optional software package not installed
*** Error code 1
make: Fatal error: Command failed for target `CSV_XS.o'

/PERL_MODULES/Text-CSV_XS-0.31->/usr/ccs/bin/make install
cc -c    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8
-D_TS_ERRNO -xO3 -xspace -xildoff    -DVERSION=\"0.31\"
-DXS_VERSION=\"0.31\" -KPIC
"-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE"   CSV_XS.c
/usr/ucb/cc:  language optional software package not installed
*** Error code 1
make: Fatal error: Command failed for target `CSV_XS.o'

/PERL_MODULES/Text-CSV_XS-0.31->/usr/ccs/bin/make clean
rm -rf CSV_XS.c CSV_XS.c.gcov CSV_XS.gcda CSV_XS.gcno CSV_XS.xs.gcov
cover_db ./blib Makefile.aperl blib/arch/auto/Text/CSV_XS/extralibs.all
blib/arch/auto/Text/CSV_XS/extralibs.ld perlmain.c tmon.out mon.out
so_locations pm_to_blib *.o *.a perl.exe perl perl CSV_XS.bs CSV_XS.bso
CSV_XS.def libCSV_XS.def CSV_XS.exp CSV_XS.x core core.*perl.*.?
*perl.core core.[0-9] core.[0-9][0-9] core.[0-9][0-9][0-9]
core.[0-9][0-9][0-9][0-9] core.[0-9][0-9][0-9][0-9][0-9]
mv Makefile Makefile.old > /dev/null 2>&1
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Oct 4 14:05:12 2007

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:07 EST