The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Failed to install shell script compiler (shc) alfredo HP-UX 0 01-30-2008 11:03 PM
PERL DBI module install jerardfjay Shell Programming and Scripting 3 10-27-2006 10:29 AM
Can`t install gcc compiler markdr011 SUN Solaris 3 12-13-2005 12:59 AM
acc compiler install question tb0ne HP-UX 3 09-06-2005 11:15 PM
Need Help Finding C Compiler on install CDs StorageGuy Red Hat 1 08-08-2005 11:42 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-05-2002
photon's Avatar
photon photon is offline
Registered User
  
 

Join Date: Jul 2002
Posts: 162
Perl DBI install with gcc compiler

I want to install the Perl DBI module on to
my solaris ultra 10.

Solaris ultra 10 does not come with a C compiler
so I downloaded gcc compiler.

Then I ran install as follows:
Code:
# cd DBI-1.30
# ls
blib          DBI.xs        Driver.xst    Perl.c        test.pl
Changes       dbi_sql.h     Driver_xst.h  Perl.xs       ToDo
dbd_xsh.h     dbipport.h    lib           Perl.xsi
DBI.bs        dbiproxy.PL   Makefile      pm_to_blib
DBI.c         dbish.PL      Makefile.PL   README
DBI.pm        DBIXS.h       MANIFEST      t
# 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
    modules, then you'll need to install the RPC::PlServer, RPC::PlClient,
    Storable and Net::Daemon modules. The CPAN Bundle::DBI may help you.
    You can install them any time after installing the DBI.
    You do *not* need these modules for typical DBI usage.

Optional modules are available from any CPAN mirror, in particular
    http://www.perl.com/CPAN/modules/by-module
    http://www.perl.org/CPAN/modules/by-module
    ftp://ftp.funet.fi/pub/languages/per...ules/by-module

Creating extra DBI::PurePerl test: t/zz_01basics_pp.t 
Creating extra DBI::PurePerl test: t/zz_02dbidrv_pp.t 
Creating extra DBI::PurePerl test: t/zz_03hleak_pp.t 
Creating extra DBI::PurePerl test: t/zz_04mods_pp.t 
Creating extra DBI::PurePerl test: t/zz_05thrclone_pp.t 
Creating extra DBI::PurePerl test: t/zz_10examp_pp.t 
Creating extra DBI::PurePerl test: t/zz_15array_pp.t 
Creating extra DBI::PurePerl test: t/zz_20meta_pp.t 
Creating extra DBI::PurePerl test: t/zz_30subclass_pp.t 
Creating extra DBI::PurePerl test: t/zz_40profile_pp.t 
Creating extra DBI::PurePerl test: t/zz_60preparse_pp.t 
Creating extra DBI::PurePerl test: t/zz_70shell_pp.t 
Creating extra DBI::PurePerl test: t/zz_80proxy_pp.t 
Writing Makefile for DBI

    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.

# make
cc -c   -xO3 -xdepend     -DVERSION=\"1.30\"  -DXS_VERSION=\"1.30\" -KPIC -I/usr
/perl5/5.00503/sun4-solaris/CORE -DDBI_NO_THREADS Perl.c
ucbcc: unrecognized option `-Xs'
ucbcc: unrecognized option `-KPIC'
ucbcc: language depend not recognized
ucbcc: Perl.c: linker input file unused since linking not done
ucbcc: -lucb: linker input file unused since linking not done
ucbcc: -lsocket: linker input file unused since linking not done
ucbcc: -lnsl: linker input file unused since linking not done
ucbcc: -lelf: linker input file unused since linking not done
ucbcc: -laio: linker input file unused since 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/ExtUtils/typemap DBI.xs >xs
tmp.c && mv xstmp.c DBI.c
cc -c   -xO3 -xdepend     -DVERSION=\"1.30\"  -DXS_VERSION=\"1.30\" -KPIC -I/usr
/perl5/5.00503/sun4-solaris/CORE -DDBI_NO_THREADS DBI.c
ucbcc: unrecognized option `-Xs'
ucbcc: unrecognized option `-KPIC'
ucbcc: language depend not recognized
ucbcc: DBI.c: linker input file unused since linking not done
ucbcc: -lucb: linker input file unused since linking not done
ucbcc: -lsocket: linker input file unused since linking not done
ucbcc: -lnsl: linker input file unused since linking not done
ucbcc: -lelf: linker input file unused since linking not done
ucbcc: -laio: linker input file unused since 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: DBI.o: No such file or directory
ucbcc: unrecognized option `-Xs'
*** Error code 1
make: Fatal error: Command failed for target `blib/arch/auto/DBI/DBI.so'
#
I think I may have to recompile the perl and
DBI module with the same compiler.

Can someone confirm this?
  #2 (permalink)  
Old 11-21-2003
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
  
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
E3500 and Ultra 10.

it has been a long while since i installed perl and DBI support useing gcc version: gcc version 3.1

i know i had some issues but it was resolved once i had the dependances needed ie: Bundle: DBI and Net:: Daemon.

as i recall you also have to have everything set up to connect to a DB when you test out the package.
  #3 (permalink)  
Old 11-21-2003
kduffin's Avatar
kduffin kduffin is offline Forum Advisor  
UN1X
  
 

Join Date: Nov 2003
Location: Maryland
Posts: 449
It doesn't appear that it is using your gcc complier:

# make
cc ....

Is /usr/ucb in your path?

Cheers,

Keith
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:24 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0