SPUG: Some modules won't install gcc error

mmccaws at comcast.net mmccaws at comcast.net
Fri Nov 23 13:02:30 PST 2007


Hi

I'm running a second installation of perl on and was trying to install Bundle::CPAN.  Some modules installed and some did not.  The Bundle summary provides the list of those that did not.  I also need the modules for DBD::mysql and DBI to install.  I figure if I can correct the problems associated with installing these I'll understand what settings are needed in my cpan, makefile.pl, and build modules.

I don't know if this is the source of the problem but there is an error message :
/usr/bin/sh: gcc: Execute permission denied.
*** Error exit code 1

that gcc has the following permissions
-rwxr-xr-x   1 slade      users       247672 Nov  9  2006 /home/slade/scripts/gcc

I thought with these permission settings that other users should be able to access it.
the Bundle summary, perl -V and the failed install outputs info for  Term::ReadKey and DBD::mysql are below

What other information is needed to make sure my settings are correct?

Thanks 

Mike McCann

 perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=hpux, osvers=11.23, archname=IA64.ARCHREV_0
    uname='hp-ux valhalla b.11.23 u ia64 0392673761 unlimited-user license '
    config_args='-A prepend:libswanted=cl pthread  -d -e -Dcc=gcc -Ui_dbm -Ui_db -Dprefix=/usr/local useposix=true'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_HPUX_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE',
    optimize='-O0',
    cppflags='-D_HPUX_SOURCE -D_HPUX_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include'
    ccversion='', gccversion='4.1.1', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='/usr/bin/ld', ldflags =' -L/usr/local/lib -L/opt/local/lib -L/usr/lib/hpux32'
    libpth=/usr/local/lib /opt/local/lib /usr/lib/hpux32 /lib /usr/lib /usr/ccs/lib
    libs=-lcl -lpthread -lnsl -lnm -lndbm -ldl -ldld -lm
    perllibs=-lcl -lpthread -lnsl -lnm -ldl -ldld -lm
    libc=/usr/lib/hpux32/libc.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-B,deferred '
    cccdlflags='-fPIC', lddlflags='-b -L/usr/local/lib -L/opt/local/lib -L/usr/lib/hpux32'


Characteristics of this binary (from libperl):
  Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO
  Built under hpux
  Compiled at Sep 19 2006 16:59:33
  @INC:
    /usr/local/lib/perl5/5.8.8/IA64.ARCHREV_0
    /usr/local/lib/perl5/5.8.8
    /usr/local/lib/perl5/site_perl/5.8.8/IA64.ARCHREV_0
    /usr/local/lib/perl5/site_perl/5.8.8
    /usr/local/lib/perl5/site_perl


Bundle summary: The following items in bundle Bundle::CPAN had installation
problems:
  ExtUtils::CBuilder ExtUtils::MakeMaker File::Spec Digest::SHA
  Compress::Raw::Zlib IO::Compress::Base IO::Uncompress::Gunzip
  Compress::Zlib IO::Zlib Archive::Tar Term::ReadKey YAML



$ sudo perl -MCPAN -e shell
CPAN: File::HomeDir loaded ok (v0.66)
Your OS does not support locking; continuing and ignoring all locking issues
CPAN: Time::HiRes loaded ok (v1.86)

cpan shell -- CPAN exploration and modules installation (v1.9205)
ReadLine support enabled

Can't ioctl TIOCGETP: Invalid argument
Consider installing Term::ReadKey from CPAN site nearby
        at http://www.perl.com/CPAN
Or use
        perl -MCPAN -e shell
to reach CPAN. Falling back to 'stty'.
        If you do not want to see this warning, set PERL_READLINE_NOWARN
in your environment.
cpan[1]> install Term::ReadKey
CPAN: Storable loaded ok (v2.15)
Going to read /home/smartcd/.cpan/Metadata
  Database was generated on Thu, 22 Nov 2007 17:36:41 GMT
  LWP not available
CPAN: Net::FTP loaded ok (v2.77)
Fetching with Net::FTP:
  ftp://cpan.mirrors.redwire.net/pub/CPAN/authors/01mailrc.txt.gz
CPAN: YAML loaded ok (v0.66)
Going to read /home/smartcd/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok (v1.42)
............................................................................DONE
  LWP not available
Fetching with Net::FTP:
  ftp://cpan.mirrors.redwire.net/pub/CPAN/modules/02packages.details.txt.gz
Going to read /home/smartcd/.cpan/sources/modules/02packages.details.txt.gz
  Database was generated on Fri, 23 Nov 2007 17:36:36 GMT
  HTTP::Date not available
............................................................................DONE
  LWP not available
Fetching with Net::FTP:
  ftp://cpan.mirrors.redwire.net/pub/CPAN/modules/03modlist.data.gz
Going to read /home/smartcd/.cpan/sources/modules/03modlist.data.gz
............................................................................DONE
Going to write /home/smartcd/.cpan/Metadata
Running install for module 'Term::ReadKey'
Running make for J/JS/JSTOWE/TermReadKey-2.30.tar.gz

  CPAN: checksum security checks disabled because Digest::SHA not installed.
  Please consider installing the Digest::SHA module.

Scanning cache /home/smartcd/.cpan/build for sizes
............................................................................DONE
x TermReadKey-2.30/genchars.pl, 10688 bytes, 21 tape blocks
x TermReadKey-2.30/Makefile.PL, 1222 bytes, 3 tape blocks
x TermReadKey-2.30/Configure.pm, 27633 bytes, 54 tape blocks
x TermReadKey-2.30/test.pl, 7696 bytes, 16 tape blocks
x TermReadKey-2.30/ReadKey.pm, 16187 bytes, 32 tape blocks
x TermReadKey-2.30/META.yml, 245 bytes, 1 tape blocks
x TermReadKey-2.30/ReadKey.xs, 41938 bytes, 82 tape blocks
x TermReadKey-2.30/ppport.h, 15782 bytes, 31 tape blocks
x TermReadKey-2.30/MANIFEST, 170 bytes, 1 tape blocks
x TermReadKey-2.30/README, 6357 bytes, 13 tape blocks
CPAN: File::Temp loaded ok (v0.19)

  CPAN.pm: Going to build J/JS/JSTOWE/TermReadKey-2.30.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Term::ReadKey
cp ReadKey.pm blib/lib/Term/ReadKey.pm
AutoSplitting blib/lib/Term/ReadKey.pm (blib/lib/auto/Term/ReadKey)
        /usr/local/bin/perl -I/usr/local/lib/perl5/5.8.8 genchars.pl

Writing termio/termios section of cchars.h... Done.
Checking for sgtty...
        Sgtty NOT found.
Writing sgtty section of cchars.h... Done.
        /usr/local/bin/perl /usr/local/lib/perl5/5.8.8/ExtUtils/xsubpp -noprototypes -typemap /usr/local/lib/perl5/5.8.8/ExtUtils/typemap  ReadKey.xs > ReadKey.xsc && mv ReadKey.xsc ReadKey.c
        gcc -c    -D_HPUX_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -O0    -DVERSION=\"2.30\"  -DXS_VERSION=\"2.30\" -fPIC "-I/usr/local/lib/perl5/5.8.8/IA64.ARCHREV_0/CORE"   ReadKey.c
/usr/bin/sh: gcc: Execute permission denied.
*** Error exit code 1

Stop.
  JSTOWE/TermReadKey-2.30.tar.gz
  /usr/bin/make -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Failed during this command:
 JSTOWE/TermReadKey-2.30.tar.gz               : make NO

cpan[2]>
cpan[2]> exit
Lockfile removed.


cpan[2]> install DBD::mysql
Running install for module 'DBD::mysql'
Running make for C/CA/CAPTTOFU/DBD-mysql-4.005.tar.gz
CPAN: checksum security checks disabled because Digest::SHA not installed.
x DBD-mysql-4.005/ChangeLog, 55726 bytes, 109 tape blocks
x DBD-mysql-4.005/constants.h, 1936 bytes, 4 tape blocks
x DBD-mysql-4.005/dbdimp.c, 127251 bytes, 249 tape blocks
x DBD-mysql-4.005/dbdimp.h, 10169 bytes, 20 tape blocks
x DBD-mysql-4.005/eg/prepare_memory_usage.pl, 450 bytes, 1 tape blocks
x DBD-mysql-4.005/eg/proc_example1.pl, 1053 bytes, 3 tape blocks
x DBD-mysql-4.005/eg/proc_example2.pl, 1418 bytes, 3 tape blocks
x DBD-mysql-4.005/eg/proc_example3.pl, 901 bytes, 2 tape blocks
x DBD-mysql-4.005/INSTALL.html, 29283 bytes, 58 tape blocks
x DBD-mysql-4.005/lib/Bundle/DBD/mysql.pm, 364 bytes, 1 tape blocks
x DBD-mysql-4.005/lib/DBD/mysql/GetInfo.pm, 16096 bytes, 32 tape blocks
x DBD-mysql-4.005/lib/DBD/mysql/INSTALL.pod, 22221 bytes, 44 tape blocks
x DBD-mysql-4.005/lib/DBD/mysql.pm, 55349 bytes, 109 tape blocks
x DBD-mysql-4.005/Makefile.PL, 23671 bytes, 47 tape blocks
x DBD-mysql-4.005/Makefile.PL.embedded, 713 bytes, 2 tape blocks
x DBD-mysql-4.005/MANIFEST, 836 bytes, 2 tape blocks
x DBD-mysql-4.005/MANIFEST.SKIP, 41 bytes, 1 tape blocks
x DBD-mysql-4.005/META.yml, 380 bytes, 1 tape blocks
x DBD-mysql-4.005/myld, 1709 bytes, 4 tape blocks
x DBD-mysql-4.005/mysql.xs, 17277 bytes, 34 tape blocks
x DBD-mysql-4.005/README, 2781 bytes, 6 tape blocks
x DBD-mysql-4.005/t/00base.t, 985 bytes, 2 tape blocks
x DBD-mysql-4.005/t/10connect.t, 609 bytes, 2 tape blocks
x DBD-mysql-4.005/t/20createdrop.t, 753 bytes, 2 tape blocks
x DBD-mysql-4.005/t/30insertfetch.t, 1034 bytes, 3 tape blocks
x DBD-mysql-4.005/t/35limit.t, 2007 bytes, 4 tape blocks
x DBD-mysql-4.005/t/35prepare.t, 3320 bytes, 7 tape blocks
x DBD-mysql-4.005/t/40bindparam.t, 6685 bytes, 14 tape blocks
x DBD-mysql-4.005/t/40bindparam2.t, 2783 bytes, 6 tape blocks
x DBD-mysql-4.005/t/40blobs.t, 3224 bytes, 7 tape blocks
x DBD-mysql-4.005/t/40catalog.t, 10073 bytes, 20 tape blocks
x DBD-mysql-4.005/t/40listfields.t, 4528 bytes, 9 tape blocks
x DBD-mysql-4.005/t/40nulls.t, 2555 bytes, 5 tape blocks
x DBD-mysql-4.005/t/40numrows.t, 4152 bytes, 9 tape blocks
x DBD-mysql-4.005/t/41bindparam.t, 2010 bytes, 4 tape blocks
x DBD-mysql-4.005/t/41blobs_prepare.t, 4162 bytes, 9 tape blocks
x DBD-mysql-4.005/t/42bindparam.t, 2159 bytes, 5 tape blocks
x DBD-mysql-4.005/t/50chopblanks.t, 3854 bytes, 8 tape blocks
x DBD-mysql-4.005/t/50commit.t, 6621 bytes, 13 tape blocks
x DBD-mysql-4.005/t/60leaks.t, 5233 bytes, 11 tape blocks
x DBD-mysql-4.005/t/70takeimp.t, 4858 bytes, 10 tape blocks
x DBD-mysql-4.005/t/75supported_sql.t, 2545 bytes, 5 tape blocks
x DBD-mysql-4.005/t/80procs.t, 5191 bytes, 11 tape blocks
x DBD-mysql-4.005/t/insertid.t, 1666 bytes, 4 tape blocks
x DBD-mysql-4.005/t/lib.pl, 6101 bytes, 12 tape blocks
x DBD-mysql-4.005/t/multi_statement.t, 1396 bytes, 3 tape blocks
x DBD-mysql-4.005/t/mysql.dbtest, 3680 bytes, 8 tape blocks
x DBD-mysql-4.005/t/param_values.t, 1192 bytes, 3 tape blocks
x DBD-mysql-4.005/t/prepare_noerror.t, 1798 bytes, 4 tape blocks
x DBD-mysql-4.005/t/texecute.t, 1379 bytes, 3 tape blocks
x DBD-mysql-4.005/t/utf8.t, 5272 bytes, 11 tape blocks
x DBD-mysql-4.005/TODO, 896 bytes, 2 tape blocks

  CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-4.005.tar.gz

Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.

Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
not contain the path to mysql_config. Resorting to guessed values!
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 466.
I will use the following settings for compiling and testing:

  cflags        (guessed) = -I/opt/mysql/include
  embedded      (guessed) =
  libs          (guessed) = -L/opt/mysql/lib -lmysqlclient -lz -lm -lcrypt -lnsl
  mysql_config  (guessed) = mysql_config
  nocatchstderr (default) = 0
  nofoundrows   (default) = 0
  ssl           (guessed) = 0
  testdb        (default) = test
  testhost      (default) =
  testpassword  (default) =
  testsocket    (default) =
  testuser      (default) =

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lcrypt
Using DBI 1.52 (for perl 5.008008 on IA64.ARCHREV_0) installed in /usr/local/lib/perl5/5.8.8/IA64.ARCHREV_0/auto/DBI/
Writing Makefile for DBD::mysql
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
        gcc -c  -I/usr/local/lib/perl5/5.8.8/IA64.ARCHREV_0/auto/DBI -I/opt/mysql/include -DDBD_MYSQL_INSERT_ID_IS_GOOD -g   -D_HPUX_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -O0    -DVERSION=\"4.005\"  -DXS_VERSION=\"4.005\" -fPIC "-I/usr/local/lib/perl5/5.8.8/IA64.ARCHREV_0/CORE"   dbdimp.c
/usr/bin/sh: gcc: Execute permission denied.
*** Error exit code 1

Stop.
  CAPTTOFU/DBD-mysql-4.005.tar.gz
  /usr/bin/make -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Failed during this command:
 CAPTTOFU/DBD-mysql-4.005.tar.gz              : make NO


More information about the spug-list mailing list