LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-18-2014, 01:25 PM   #1
slufoot80
Member
 
Registered: Nov 2011
Posts: 69

Rep: Reputation: Disabled
Problems using perl - What do I do?


Ok I am trying to install DBI:BD using perl but I am getting the errors below when running the command

Code:
perl -MCPAN -e 'install DBI::DBD'
is the command I am running and the error I am getting is

Code:
cc: error: unrecognized command line option '-KPIC'
below is the full code

Code:
-bash-3.2# perl -MCPAN -e 'install DBI::DBD'
CPAN: Storable loaded ok (v2.20)
Reading '/.cpan/Metadata'
  Database was generated on Thu, 18 Dec 2014 15:17:02 GMT
Running install for module 'DBI::DBD'
CPAN: Digest::SHA loaded ok (v5.47)
CPAN: Compress::Zlib loaded ok (v2.02)
Checksum for /.cpan/sources/authors/id/T/TI/TIMB/DBI-1.632.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.52)
DBI-1.632/
DBI-1.632/Changes
DBI-1.632/dbd_xsh.h
DBI-1.632/DBI.pm
DBI-1.632/DBI.xs
DBI-1.632/dbi_sql.h
DBI-1.632/dbilogstrip.PL
DBI-1.632/dbipport.h
DBI-1.632/dbiprof.PL
DBI-1.632/dbiproxy.PL
DBI-1.632/dbivport.h
DBI-1.632/DBIXS.h
DBI-1.632/dbixs_rev.h
DBI-1.632/dbixs_rev.pl
DBI-1.632/Driver.xst
DBI-1.632/Driver_xst.h
DBI-1.632/ex/
DBI-1.632/INSTALL
DBI-1.632/lib/
DBI-1.632/Makefile.PL
DBI-1.632/MANIFEST
DBI-1.632/META.json
DBI-1.632/META.yml
DBI-1.632/Perl.xs
DBI-1.632/README.md
DBI-1.632/t/
DBI-1.632/test.pl
DBI-1.632/typemap
DBI-1.632/t/01basics.t
DBI-1.632/t/02dbidrv.t
DBI-1.632/t/03handle.t
DBI-1.632/t/04mods.t
DBI-1.632/t/05concathash.t
DBI-1.632/t/06attrs.t
DBI-1.632/t/07kids.t
DBI-1.632/t/08keeperr.t
DBI-1.632/t/09trace.t
DBI-1.632/t/10examp.t
DBI-1.632/t/11fetch.t
DBI-1.632/t/12quote.t
DBI-1.632/t/13taint.t
DBI-1.632/t/14utf8.t
DBI-1.632/t/15array.t
DBI-1.632/t/16destroy.t
DBI-1.632/t/19fhtrace.t
DBI-1.632/t/20meta.t
DBI-1.632/t/30subclass.t
DBI-1.632/t/31methcache.t
DBI-1.632/t/35thrclone.t
DBI-1.632/t/40profile.t
DBI-1.632/t/41prof_dump.t
DBI-1.632/t/42prof_data.t
DBI-1.632/t/43prof_env.t
DBI-1.632/t/48dbi_dbd_sqlengine.t
DBI-1.632/t/49dbd_file.t
DBI-1.632/t/50dbm_simple.t
DBI-1.632/t/51dbm_file.t
DBI-1.632/t/52dbm_complex.t
DBI-1.632/t/60preparse.t
DBI-1.632/t/65transact.t
DBI-1.632/t/70callbacks.t
DBI-1.632/t/72childhandles.t
DBI-1.632/t/80proxy.t
DBI-1.632/t/85gofer.t
DBI-1.632/t/86gofer_fail.t
DBI-1.632/t/87gofer_cache.t
DBI-1.632/t/90sql_type_cast.t
DBI-1.632/t/lib.pl
DBI-1.632/t/pod-coverage.t
DBI-1.632/t/pod.t
DBI-1.632/lib/Bundle/
DBI-1.632/lib/DBD/
DBI-1.632/lib/DBI/
DBI-1.632/lib/Win32/
DBI-1.632/lib/Win32/DBIODBC.pm
DBI-1.632/lib/DBI/Const/
DBI-1.632/lib/DBI/DBD/
DBI-1.632/lib/DBI/DBD.pm
DBI-1.632/lib/DBI/FAQ.pm
DBI-1.632/lib/DBI/Gofer/
DBI-1.632/lib/DBI/Profile.pm
DBI-1.632/lib/DBI/ProfileData.pm
DBI-1.632/lib/DBI/ProfileDumper/
DBI-1.632/lib/DBI/ProfileDumper.pm
DBI-1.632/lib/DBI/ProfileSubs.pm
DBI-1.632/lib/DBI/ProxyServer.pm
DBI-1.632/lib/DBI/PurePerl.pm
DBI-1.632/lib/DBI/SQL/
DBI-1.632/lib/DBI/Util/
DBI-1.632/lib/DBI/W32ODBC.pm
DBI-1.632/lib/DBI/Util/_accessor.pm
DBI-1.632/lib/DBI/Util/CacheMemory.pm
DBI-1.632/lib/DBI/SQL/Nano.pm
DBI-1.632/lib/DBI/ProfileDumper/Apache.pm
DBI-1.632/lib/DBI/Gofer/Execute.pm
DBI-1.632/lib/DBI/Gofer/Request.pm
DBI-1.632/lib/DBI/Gofer/Response.pm
DBI-1.632/lib/DBI/Gofer/Serializer/
DBI-1.632/lib/DBI/Gofer/Transport/
DBI-1.632/lib/DBI/Gofer/Transport/Base.pm
DBI-1.632/lib/DBI/Gofer/Transport/pipeone.pm
DBI-1.632/lib/DBI/Gofer/Transport/stream.pm
DBI-1.632/lib/DBI/Gofer/Serializer/Base.pm
DBI-1.632/lib/DBI/Gofer/Serializer/DataDumper.pm
DBI-1.632/lib/DBI/Gofer/Serializer/Storable.pm
DBI-1.632/lib/DBI/DBD/Metadata.pm
DBI-1.632/lib/DBI/DBD/SqlEngine/
DBI-1.632/lib/DBI/DBD/SqlEngine.pm
DBI-1.632/lib/DBI/DBD/SqlEngine/Developers.pod
DBI-1.632/lib/DBI/DBD/SqlEngine/HowTo.pod
DBI-1.632/lib/DBI/Const/GetInfo/
DBI-1.632/lib/DBI/Const/GetInfoReturn.pm
DBI-1.632/lib/DBI/Const/GetInfoType.pm
DBI-1.632/lib/DBI/Const/GetInfo/ANSI.pm
DBI-1.632/lib/DBI/Const/GetInfo/ODBC.pm
DBI-1.632/lib/DBD/DBM.pm
DBI-1.632/lib/DBD/ExampleP.pm
DBI-1.632/lib/DBD/File/
DBI-1.632/lib/DBD/File.pm
DBI-1.632/lib/DBD/Gofer/
DBI-1.632/lib/DBD/Gofer.pm
DBI-1.632/lib/DBD/NullP.pm
DBI-1.632/lib/DBD/Proxy.pm
DBI-1.632/lib/DBD/Sponge.pm
DBI-1.632/lib/DBD/Gofer/Policy/
DBI-1.632/lib/DBD/Gofer/Transport/
DBI-1.632/lib/DBD/Gofer/Transport/Base.pm
DBI-1.632/lib/DBD/Gofer/Transport/corostream.pm
DBI-1.632/lib/DBD/Gofer/Transport/null.pm
DBI-1.632/lib/DBD/Gofer/Transport/pipeone.pm
DBI-1.632/lib/DBD/Gofer/Transport/stream.pm
DBI-1.632/lib/DBD/Gofer/Policy/Base.pm
DBI-1.632/lib/DBD/Gofer/Policy/classic.pm
DBI-1.632/lib/DBD/Gofer/Policy/pedantic.pm
DBI-1.632/lib/DBD/Gofer/Policy/rush.pm
DBI-1.632/lib/DBD/File/Developers.pod
DBI-1.632/lib/DBD/File/HowTo.pod
DBI-1.632/lib/DBD/File/Roadmap.pod
DBI-1.632/lib/Bundle/DBI.pm
DBI-1.632/ex/corogofer.pl
DBI-1.632/ex/perl_dbi_nulls_test.pl
DBI-1.632/ex/profile.pl
CPAN: File::Temp loaded ok (v0.22)
'YAML' not installed, will not store persistent state
CPAN: Parse::CPAN::Meta loaded ok (v1.4414)
CPAN: CPAN::Meta loaded ok (v2.143240)
CPAN: Module::CoreList loaded ok (v2.18)
Configuring T/TI/TIMB/DBI-1.632.tar.gz with Makefile.PL
Creating test wrappers for DBD::Gofer:
t/zvg_01basics.t 
t/zvg_02dbidrv.t 
t/zvg_03handle.t 
t/zvg_04mods.t 
t/zvg_05concathash.t 
t/zvg_06attrs.t 
t/zvg_07kids.t 
t/zvg_08keeperr.t 
t/zvg_09trace.t 
t/zvg_10examp.t 
t/zvg_11fetch.t 
t/zvg_12quote.t 
t/zvg_13taint.t 
t/zvg_14utf8.t 
t/zvg_15array.t 
t/zvg_16destroy.t 
t/zvg_19fhtrace.t 
t/zvg_20meta.t 
t/zvg_30subclass.t 
t/zvg_31methcache.t 
t/zvg_35thrclone.t (use threads)
t/zvg_40profile.t 
t/zvg_41prof_dump.t 
t/zvg_42prof_data.t 
t/zvg_43prof_env.t 
t/zvg_48dbi_dbd_sqlengine.t 
t/zvg_49dbd_file.t 
t/zvg_50dbm_simple.t 
t/zvg_51dbm_file.t 
t/zvg_52dbm_complex.t 
t/zvg_60preparse.t 
t/zvg_65transact.t 
t/zvg_70callbacks.t 
t/zvg_72childhandles.t 
t/zvg_80proxy.t 
t/zvg_85gofer.t 
t/zvg_86gofer_fail.t 
t/zvg_87gofer_cache.t 
t/zvg_90sql_type_cast.t 
Creating test wrappers for DBI::SQL::Nano:
t/zvn_48dbi_dbd_sqlengine.t 
t/zvn_49dbd_file.t 
t/zvn_50dbm_simple.t 
t/zvn_51dbm_file.t 
t/zvn_52dbm_complex.t 
t/zvn_85gofer.t 
Creating test wrappers for DBI::PurePerl:
t/zvp_01basics.t 
t/zvp_02dbidrv.t 
t/zvp_03handle.t 
t/zvp_04mods.t 
t/zvp_05concathash.t 
t/zvp_06attrs.t 
t/zvp_07kids.t 
t/zvp_08keeperr.t 
t/zvp_09trace.t 
t/zvp_10examp.t 
t/zvp_11fetch.t 
t/zvp_12quote.t 
t/zvp_13taint.t 
t/zvp_14utf8.t 
t/zvp_15array.t 
t/zvp_16destroy.t 
t/zvp_19fhtrace.t 
t/zvp_20meta.t 
t/zvp_30subclass.t 
t/zvp_31methcache.t 
t/zvp_35thrclone.t (use threads)
t/zvp_40profile.t 
t/zvp_41prof_dump.t 
t/zvp_42prof_data.t 
t/zvp_43prof_env.t 
t/zvp_48dbi_dbd_sqlengine.t 
t/zvp_49dbd_file.t 
t/zvp_50dbm_simple.t 
t/zvp_51dbm_file.t 
t/zvp_52dbm_complex.t 
t/zvp_60preparse.t 
t/zvp_65transact.t 
t/zvp_70callbacks.t 
t/zvp_72childhandles.t 
t/zvp_80proxy.t 
t/zvp_85gofer.t 
t/zvp_86gofer_fail.t 
t/zvp_87gofer_cache.t 
t/zvp_90sql_type_cast.t 
Creating test wrappers for DBD::Gofer + DBI::SQL::Nano:
t/zvxgn_48dbi_dbd_sqlengine.t 
t/zvxgn_49dbd_file.t 
t/zvxgn_50dbm_simple.t 
t/zvxgn_51dbm_file.t 
t/zvxgn_52dbm_complex.t 
t/zvxgn_85gofer.t 
Creating test wrappers for DBD::Gofer + DBI::PurePerl:
t/zvxgp_01basics.t 
t/zvxgp_02dbidrv.t 
t/zvxgp_03handle.t 
t/zvxgp_04mods.t 
t/zvxgp_05concathash.t 
t/zvxgp_06attrs.t 
t/zvxgp_07kids.t 
t/zvxgp_08keeperr.t 
t/zvxgp_09trace.t 
t/zvxgp_10examp.t 
t/zvxgp_11fetch.t 
t/zvxgp_12quote.t 
t/zvxgp_13taint.t 
t/zvxgp_14utf8.t 
t/zvxgp_15array.t 
t/zvxgp_16destroy.t 
t/zvxgp_19fhtrace.t 
t/zvxgp_20meta.t 
t/zvxgp_30subclass.t 
t/zvxgp_31methcache.t 
t/zvxgp_35thrclone.t (use threads)
t/zvxgp_40profile.t 
t/zvxgp_41prof_dump.t 
t/zvxgp_42prof_data.t 
t/zvxgp_43prof_env.t 
t/zvxgp_48dbi_dbd_sqlengine.t 
t/zvxgp_49dbd_file.t 
t/zvxgp_50dbm_simple.t 
t/zvxgp_51dbm_file.t 
t/zvxgp_52dbm_complex.t 
t/zvxgp_60preparse.t 
t/zvxgp_65transact.t 
t/zvxgp_70callbacks.t 
t/zvxgp_72childhandles.t 
t/zvxgp_80proxy.t 
t/zvxgp_85gofer.t 
t/zvxgp_86gofer_fail.t 
t/zvxgp_87gofer_cache.t 
t/zvxgp_90sql_type_cast.t 
Creating test wrappers for DBI::SQL::Nano + DBI::PurePerl:
t/zvxnp_48dbi_dbd_sqlengine.t 
t/zvxnp_49dbd_file.t 
t/zvxnp_50dbm_simple.t 
t/zvxnp_51dbm_file.t 
t/zvxnp_52dbm_complex.t 
t/zvxnp_85gofer.t 
Creating test wrappers for DBD::Gofer + DBI::SQL::Nano + DBI::PurePerl:
t/zvxgnp_48dbi_dbd_sqlengine.t 
t/zvxgnp_49dbd_file.t 
t/zvxgnp_50dbm_simple.t 
t/zvxgnp_51dbm_file.t 
t/zvxgnp_52dbm_complex.t 
t/zvxgnp_85gofer.t 
Checking if your kit is complete...
Looks good

    I see you're using perl 5.010001 on sun4-solaris-thread-multi, okay.
    Remember to actually *read* the README file!
    Use  'make' to build the software (dmake or nmake on Windows).
    Then 'make test' to execute self tests.
    Then 'make install' to install the DBI and then delete this working
    directory before unpacking and building any DBD::* drivers.

Writing Makefile for DBI
  TIMB/DBI-1.632.tar.gz
  /opt/csw/bin/perl Makefile.PL -- OK
Running make for T/TI/TIMB/DBI-1.632.tar.gz
Could not read metadata file. Falling back to other methods to determine prerequisites
/opt/csw/bin/perl -MExtUtils::Command -e 'mkpath' -- blib/lib/DBI
rm -f blib/lib/DBI/Changes.pm
cp Changes blib/lib/DBI/Changes.pm
cp Driver_xst.h blib/arch/auto/DBI/Driver_xst.h
cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
cp lib/DBI/Gofer/Response.pm blib/lib/DBI/Gofer/Response.pm
cp lib/DBI/Util/_accessor.pm blib/lib/DBI/Util/_accessor.pm
cp lib/DBI/Gofer/Transport/Base.pm blib/lib/DBI/Gofer/Transport/Base.pm
cp lib/DBD/DBM.pm blib/lib/DBD/DBM.pm
cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
cp dbixs_rev.pl blib/lib/dbixs_rev.pl
cp lib/DBI/Gofer/Serializer/DataDumper.pm blib/lib/DBI/Gofer/Serializer/DataDumper.pm
cp lib/DBI/Const/GetInfoType.pm blib/lib/DBI/Const/GetInfoType.pm
cp lib/DBI/DBD/Metadata.pm blib/lib/DBI/DBD/Metadata.pm
cp lib/DBD/Gofer/Transport/pipeone.pm blib/lib/DBD/Gofer/Transport/pipeone.pm
cp lib/DBI/Const/GetInfo/ODBC.pm blib/lib/DBI/Const/GetInfo/ODBC.pm
cp lib/DBI/ProfileDumper/Apache.pm blib/lib/DBI/ProfileDumper/Apache.pm
cp lib/DBD/File/Roadmap.pod blib/lib/DBD/File/Roadmap.pod
cp Driver.xst blib/arch/auto/DBI/Driver.xst
cp lib/DBD/File.pm blib/lib/DBD/File.pm
cp lib/DBI/Util/CacheMemory.pm blib/lib/DBI/Util/CacheMemory.pm
cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
cp lib/DBI/ProfileSubs.pm blib/lib/DBI/ProfileSubs.pm
cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
cp lib/DBD/File/HowTo.pod blib/lib/DBD/File/HowTo.pod
cp lib/DBD/Gofer.pm blib/lib/DBD/Gofer.pm
cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
cp dbivport.h blib/arch/auto/DBI/dbivport.h
cp lib/DBI/DBD/SqlEngine/HowTo.pod blib/lib/DBI/DBD/SqlEngine/HowTo.pod
cp dbixs_rev.h blib/arch/auto/DBI/dbixs_rev.h
cp lib/DBD/Gofer/Transport/Base.pm blib/lib/DBD/Gofer/Transport/Base.pm
cp lib/DBD/Gofer/Transport/corostream.pm blib/lib/DBD/Gofer/Transport/corostream.pm
cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm
cp lib/DBD/Gofer/Policy/rush.pm blib/lib/DBD/Gofer/Policy/rush.pm
cp lib/DBI/SQL/Nano.pm blib/lib/DBI/SQL/Nano.pm
cp lib/DBI/Gofer/Request.pm blib/lib/DBI/Gofer/Request.pm
cp lib/DBI/Const/GetInfo/ANSI.pm blib/lib/DBI/Const/GetInfo/ANSI.pm
cp lib/DBD/Gofer/Transport/stream.pm blib/lib/DBD/Gofer/Transport/stream.pm
cp lib/DBD/Gofer/Policy/classic.pm blib/lib/DBD/Gofer/Policy/classic.pm
cp lib/DBD/Gofer/Policy/Base.pm blib/lib/DBD/Gofer/Policy/Base.pm
cp DBI.pm blib/lib/DBI.pm
cp lib/DBI/Gofer/Transport/stream.pm blib/lib/DBI/Gofer/Transport/stream.pm
cp lib/DBI/Gofer/Serializer/Storable.pm blib/lib/DBI/Gofer/Serializer/Storable.pm
cp lib/DBI/Const/GetInfoReturn.pm blib/lib/DBI/Const/GetInfoReturn.pm
cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
cp lib/DBD/Gofer/Policy/pedantic.pm blib/lib/DBD/Gofer/Policy/pedantic.pm
cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm
cp lib/DBI/DBD/SqlEngine/Developers.pod blib/lib/DBI/DBD/SqlEngine/Developers.pod
cp lib/DBI/Gofer/Transport/pipeone.pm blib/lib/DBI/Gofer/Transport/pipeone.pm
cp lib/DBD/Gofer/Transport/null.pm blib/lib/DBD/Gofer/Transport/null.pm
cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm
cp lib/DBD/File/Developers.pod blib/lib/DBD/File/Developers.pod
cp lib/DBI/Profile.pm blib/lib/DBI/Profile.pm
cp lib/DBI/ProfileDumper.pm blib/lib/DBI/ProfileDumper.pm
cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
cp lib/DBI/Gofer/Serializer/Base.pm blib/lib/DBI/Gofer/Serializer/Base.pm
cp dbipport.h blib/arch/auto/DBI/dbipport.h
cp lib/DBI/Gofer/Execute.pm blib/lib/DBI/Gofer/Execute.pm
cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
cp lib/DBI/DBD/SqlEngine.pm blib/lib/DBI/DBD/SqlEngine.pm
cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
cp lib/DBI/PurePerl.pm blib/lib/DBI/PurePerl.pm
cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
cp lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm
/opt/csw/bin/perl -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi
/opt/csw/bin/perl /opt/csw/share/perl/5.10.1/ExtUtils/xsubpp  -typemap /opt/csw/share/perl/5.10.1/ExtUtils/typemap -typemap typemap  Perl.xs > Perl.xsc && mv Perl.xsc Perl.c
/opt/SUNWspro/bin/cc -c    -D_REENTRANT -xO3 -m32 -xarch=sparc -I/opt/csw/bdb48/include -I/opt/csw/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -xO3 -m32 -xarch=sparc    -DVERSION=\"1.632\"  -DXS_VERSION=\"1.632\" -KPIC "-I/opt/csw/lib/perl/5.10.1/CORE"   Perl.c
cc: error: unrecognized command line option '-KPIC'
 
Old 12-18-2014, 04:24 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,162

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
Why did you put this in the Linux forum? This is a Solaris compiler problem.
 
Old 12-18-2014, 04:25 PM   #3
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
A Google search found this. It's pretty old but perhaps it'll help.
 
  


Reply

Tags
perl, programming


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Perl problems jfsiegel Programming 4 05-07-2012 10:22 AM
Perl problems gharvey Linux - Newbie 8 12-21-2004 07:21 AM
Perl problems rickenbacherus Linux - Software 1 06-08-2004 11:57 PM
Perl problems Vindane Linux - Software 1 06-05-2004 05:09 PM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration