Problem with DBI install

From: Phi Luu (terachichi_at_yahoo.com)
Date: 10/24/03


Date: Thu, 23 Oct 2003 16:27:52 -0700 (PDT)
To: dbi-users@perl.org

Hi, DBI group:

I had problem with installing DBI module.
When make, make test, make install, it complained
of c-compiler not found in a non-existent directory.
How can I make DBI generate a Makefile with correct
C compiler path location.
(see errorlog below)

My C-compiler is: /usr/ucb/cc
thanks

////////////////////
philuu-u10:/users/philuu/DBI-1.38> !119
/usr/local/bin/perl5.6 Makefile.PL

**************************************************************************
**************************************************************************
  Version 5.006 of perl will NOT BE SUPPORTED by
future DBI releases.
  You will have to upgrade your perl or stop upgrading
DBI.
  Perl version 5.6.1 will be the lowest version
supported.
  Using perl 5.006 you may notice some test warnings
and two failures.
  Press return to continue...
**************************************************************************
**************************************************************************

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_03handle_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_06attrs_pp.t
Creating extra DBI::PurePerl test: t/zz_07kids_pp.t
Creating extra DBI::PurePerl test: t/zz_08keeperr_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_41prof_dump_pp.t
Creating extra DBI::PurePerl test:
t/zz_42prof_data_pp.t
Creating extra DBI::PurePerl test:
t/zz_60preparse_pp.t
Creating extra DBI::PurePerl test: t/zz_80proxy_pp.t

    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
philuu-u10:/users/philuu/DBI-1.38> make
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/opt/SUNWspro/bin/cc -c -I/usr/cisco/include
-I/opt/SUNWspro/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.38\"
-DXS_VERSION=\"1.38\" -KPIC
-I/usr/cisco/lib/perl5/5.6.0/sunos-5.8-sparc-64/CORE
-DDBI_NO_THREADS Perl.c
make: /opt/SUNWspro/bin/cc: Command not found
make: *** [Perl.o] Error 127
philuu-u10:/users/philuu/DBI-1.38> make test
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/opt/SUNWspro/bin/cc -c -I/usr/cisco/include
-I/opt/SUNWspro/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.38\"
-DXS_VERSION=\"1.38\" -KPIC
-I/usr/cisco/lib/perl5/5.6.0/sunos-5.8-sparc-64/CORE
-DDBI_NO_THREADS Perl.c
make: /opt/SUNWspro/bin/cc: Command not found
make: *** [Perl.o] Error 127
philuu-u10:/users/philuu/DBI-1.38>
philuu-u10:/users/philuu/DBI-1.38> make test
TEST_VERBOSE=1
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/opt/SUNWspro/bin/cc -c -I/usr/cisco/include
-I/opt/SUNWspro/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.38\"
-DXS_VERSION=\"1.38\" -KPIC
-I/usr/cisco/lib/perl5/5.6.0/sunos-5.8-sparc-64/CORE
-DDBI_NO_THREADS Perl.c
make: /opt/SUNWspro/bin/cc: Command not found
make: *** [Perl.o] Error 127
philuu-u10:/users/philuu/DBI-1.38>
//////////////////

Output of perl -V
/////////////////
philuu-u10:/users/philuu/DBI-1.38> perl -V
Summary of my perl5 (5.0 patchlevel 4 subversion 4)
configuration:
  Platform:
    osname=solaris, osvers=2.6,
archname=sparc-sun-solaris2.6
    uname='sunos cp-ss20 5.6 generic sun4m sparc
sunw,sparcstation-20 '
    hint=recommended, useposix=true,
d_sigaction=define
    bincompat3=y useperlio=undef d_sfio=undef
  Compiler:
    cc='gcc -B/usr/ccs/bin/', optimize='-O',
gccversion=2.7-97r1
    cppflags='-I/nfs/swtau/cp/local/include'
    ccflags ='-I/nfs/swtau/cp/local/include'
    stdchar='unsigned char', d_stdstdio=define,
usevfork=false
    voidflags=15, castflags=0, d_casti32=define,
d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y,
prototype=define
  Linker and Libraries:
    ld='gcc -B/usr/ccs/bin/', ldflags ='
-L/nfs/swtau/cp/local/lib/sparc-sun-solaris2.6'
   
libpth=/nfs/swtau/cp/local/lib/sparc-sun-solaris2.6
/lib /usr/lib /usr/ccs/lib /usr/local/lib
    libs=-lsocket -lnsl -lgdbm -ldl -lm -lc -lcrypt
    libc=, so=so
    useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags=' '
    cccdlflags='-fpic', lddlflags='-G
-L/nfs/swtau/cp/local/lib/sparc-sun-solaris2.6'

Characteristics of this binary (from libperl):
  Built under solaris
  Compiled at May 20 1998 18:06:27
  @INC:
   
/opt/perl/packages/5.004_04/sparc-sun-solaris2.6/lib
    /opt/perl/packages/5.004_04/lib
   
/opt/perl/packages/5.004_04/lib/site_perl/sparc-sun-solaris2.6
    /opt/perl/packages/5.004_04/lib/site_perl
    .
philuu-u10:/users/philuu/DBI-1.38>
///////////////

=====

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com



Relevant Pages

  • Installing DBI and DBD::TSM
    ... I am having trouble installing DBI. ... This is perl, v5.8.0 built for aix-thread-multi ... blib/lib/DB ... You can install them any time after installing the DBI. ...
    (perl.dbi.users)
  • Problem of installing DBI packages
    ... my curent configuration of HP Unix system is as below: ... When i do>>perl makefile.PL, ... You can install them any time after installing the DBI. ...
    (perl.dbi.users)
  • Re: DBI Installation Problems
    ... In case if anyone else has this ELFCLASS problem in the future when building DBI & DBD::Oracle on Solaris 10 using a 32-bit Perl installation, here is what worked for me. ... Next you can install DBI as it is normally setup... ... wrong ELF class: ELFCLASS64 at ...
    (perl.dbi.users)
  • Errors in DBI installation!!
    ... I am getting the errors when trying to install DBI module. ... Perl versions below 5.6.1 are no longer supported by the DBI. ... *** Error code 1 ...
    (perl.dbi.users)
  • Problem of DBI build
    ... I installed Oracle Application Server 4.0.8.2 included perl module. ... I need to installe DBI and DBD::Oracle module. ... You can install them any time after installing the DBI. ... line 318: error 1705: Function prototypes are an ANSI feature. ...
    (perl.dbi.users)