On Fri, 30 Aug 2002 13:13:17 +0800 [EMAIL PROTECTED] wrote:

> I use your DBI moudle to install in hp server. But, it faill to compile.
> Because it use gcc to make compile.
> Do you have any version of DBI moudle to use ansi c to compile?
> Thanks!
> 
> Here is the error message for your reference.
> 
> % make
>         /bin/perl -I/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi
> -I/opt/perl/lib/5.6.1 /opt/perl/lib/5.6.1/ExtUtils/xsubpp  -typemap
> /opt/perl/lib/5.6.1/ExtUtils/typemap Perl.xs > Perl.xsc && mv Perl.xsc
> Perl.c
>         gcc -c  -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE -L/lib/pa1.1
> -DUINT32_MAX_BROKEN -mpa-risc-1-1 -fPIC -fno-strict-aliasing
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O   
> -DVERSION=\"1.30\"  -DXS_VERSION=\"1.30\" -fPIC
> -I/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/CORE -Wall -Wno-comment
> Perl.c
> sh: gcc:  not found.
> *** Error exit code 127

You apparently have a copy of perl that was built using gcc.  To build DBI,
or other modules with binary components, you _MUST_ use the same compiler
as was used to build perl.  Either install the version of gcc used to build
perl (ask whoever provided the perl) or build your own perl from the source
archive available on CPAN.

If you build your own perl, be sure to read README.hpux before you start. 
If you intend to use DBD::Oracle, read
http:[EMAIL PROTECTED]/msg13027.html and the
README.hpux for that module as well before you build anything.
-- 
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.

Reply via email to