Hi,

I am trying to install DBI-1.201 on a Solaris system.

bash-2.03$ perl Makefile.PL *** Note: The optional PlRPC-modules (RPC::PlServer etc) are not installed. If you want to use the DBD::Proxy driver and DBI::ProxyServer ... yada yada yada bash-2.03$ make cc -c -xO3 -xdepend -DVERSION=\"1.201\" -DXS_VERSION=\"1.201\" +-KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE -DDBI_NO_THREADS Perl.c ucbcc: Warning: Option -YP,:/usr/ucblib:/opt/SUNWspro/WS6U2/bin/../lib +:/opt/SUNWspro/WS6U2/bin:/usr/ccs/lib:/usr/lib passed to ld, if ld is + invoked, ignored otherwise License Error : The license for this product(Sun WorkShop Compiler C S +PARC) has expired ... blah blah blah
Okay I don't have cc I have gcc so I cleaned things up and did this ...
bash-2.03$ perl Makefile.PL CC=`which gcc` *** Note: The optional PlRPC-modules (RPC::PlServer etc) are not installed. If you want to use the DBD::Proxy driver and DBI::ProxyServer ... yada yada yada bash-2.03$ make mkdir blib mkdir blib/lib ... cp DBI.pm blib/lib/DBI.pm /usr/bin/perl -p -e "s/~DRIVER~/Perl/g" < blib/arch/auto/DBI/Driver.xs +t > Perl.xsi /usr/bin/perl -I/usr/perl5/5.00503/sun4-solaris -I/usr/perl5/5.00503 / +usr/perl5/5.00503/ExtUtils/xsubpp -typemap /usr/perl5/5.00503/ExtUti +ls/typemap Perl.xs >xstmp.c && mv xstmp.c Perl.c /usr/local/bin/gcc -c -xO3 -xdepend -DVERSION=\"1.201\" -DXS_VE +RSION=\"1.201\" -KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE -DDBI_NO +_THREADS Perl.c gcc: unrecognized option `-KPIC' gcc: language depend not recognized gcc: Perl.c: linker input file unused because linking not done /usr/bin/perl -I/usr/perl5/5.00503/sun4-solaris -I/usr/perl5/5.00503 / +usr/perl5/5.00503/ExtUtils/xsubpp -typemap /usr/perl5/5.00503/ExtUti +ls/typemap DBI.xs >xstmp.c && mv xstmp.c DBI.c /usr/local/bin/gcc -c -xO3 -xdepend -DVERSION=\"1.201\" -DXS_VE +RSION=\"1.201\" -KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE -DDBI_NO +_THREADS DBI.c gcc: unrecognized option `-KPIC' gcc: language depend not recognized gcc: DBI.c: linker input file unused because linking not done Running Mkbootstrap for DBI () chmod 644 DBI.bs LD_RUN_PATH="" cc -o blib/arch/auto/DBI/DBI.so -G DBI.o ucbcc: Warning: Option -YP,:/usr/ucblib:/opt/SUNWspro/WS6U2/bin/../lib +:/opt/SUNWspro/WS6U2/bin:/usr/ccs/lib:/usr/lib passed to ld, if ld is + invoked, ignored otherwise ld: warning: option -YP appears more than once, first setting taken ld: fatal: file DBI.o: cannot open file: No such file or directory ld: fatal: File processing errors. No output written to blib/arch/auto +/DBI/DBI.so *** Error code 1 make: Fatal error: Command failed for target `blib/arch/auto/DBI/DBI.s +o' bash-2.03$
... after this I gave up and am I asking you ... the Monks!

Oh here's some other info that my shred some light ...
bash-2.03$ uname -a SunOS stupid 5.8 Generic_108528-13 sun4u sparc SUNW,UltraAX-i2 bash-2.03$ perl -v This is perl, version 5.005_03 built for sun4-solaris Copyright 1987-1999, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5.0 source +kit. Complete documentation for Perl, including FAQ lists, should be found +on this system using `man perl' or `perldoc perl'. If you have access to + the Internet, point your browser at http://www.perl.com/, the Perl Home Pa +ge.

Thanks much!

20030221 Edit by Corion : Changed PRE to CODE


In reply to Install DBI on Solaris by LameNerd

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.