Operating System - HP-UX
1825509 Members
1762 Online
109681 Solutions
New Discussion юеВ

perl DBI installation problems

 
SOLVED
Go to solution
hpjinyq
New Member

perl DBI installation problems

Dear all,

I am trying to install DBI(1.48) on a server.
I am following these steps.

1,#perl Makefile.pl(successful)
2. #make (error - see below)

I received the following error.
# make
gcc -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -mlp64 -fPIC -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.48\" -DXS_VERSION=\"1.48\" -fPIC "-I/opt/perl_64/lib/5.8.0/IA64.ARCHREV_0-thread-multi-LP64/CORE" -Wall -Wno-comment Perl.c
error 2005: invalid option '-x'
*** Error exit code 1

Stop.

# gcc -v
Using built-in specs.
Target: ia64-hp-hpux11.23
Configured with: /scratch/joseph/pkgbuild/3.3.1/hpux-11/gcc-4.0.0/configure --enable-languages=c,c++ --enable-threads=posix --disable-nls --disable-libmudflap --with-gnu-as --without-gnu-ld --with-as=/usr/local/bin/as --with-ld=/usr/ccs/bin/ld --prefix=/usr/local
Thread model: posix
gcc version 4.0.0
# uname -a
HP-UX panda B.11.23 U ia64 0936137809 unlimited-user license
# perl -v
This is perl, v5.8.0 built for IA64.ARCHREV_0-thread-multi-LP64
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2002, Larry Wall

Binary build 806 provided by ActiveState Corp. http://www.ActiveState.com
Built 22:05:45 May 2 2003

Any would would be greatly appreciated.

Thanks,

Justin Jin

7 REPLIES 7
VEL_1
Valued Contributor

Re: perl DBI installation problems

Hi,

Try to use the gmake utility.
H.Merijn Brand (procura
Honored Contributor

Re: perl DBI installation problems

perl-5.8.0 is VERY old.

http://hpux.connect.org.uk/hppd/hpux/Languages/perl-5.8.7/

5.8.8 is due in a month (or two)

gcc-4.0.0 is not being nice to me in 64bit mode on HP-UX, so I went back (or forward) to gcc-3.4.4

I see no -x option in the command line preceding the error.

What I *expect* is that, since your perl is that old, perl was built with different gcc options (due to an older gcc) than you are now having support for in gcc-4.0.0

In your case, I'd suggest to build perl-5.8.7 from scratch (source) and then install the modules you need.

Enjoy, Have FUN! H.Merijn [ who suspects more followup, since most people install DBI to be used with DBD::Oracle and since Oracle itself is not built with gcc, expect dragons there ]
Enjoy, Have FUN! H.Merijn
Arunvijai_4
Honored Contributor

Re: perl DBI installation problems

Try to use perl that comes with 11.23 or install a new version from http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=PERL

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
hpjinyq
New Member

Re: perl DBI installation problems

Thanks a million to all,

I have installed NEW perl from http://hpux.connect.org.uk/hppd/hpux/Languages/perl-5.8.7/

# perl -v

This is perl, v5.8.7 built for IA64.ARCHREV_0

Copyright 1987-2005, 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 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.org/, the Perl Home Page.

But the issue occured still.
# make
cp Changes blib/lib/DBI/Changes.pm
cp Roadmap.pod blib/lib/DBI/Roadmap.pm
cp dbivport.h blib/arch/auto/DBI/dbivport.h
cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm
cp Driver_xst.h blib/arch/auto/DBI/Driver_xst.h
cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
cp lib/DBI/SQL/Nano.pm blib/lib/DBI/SQL/Nano.pm
cp lib/DBI/Const/GetInfo/ANSI.pm blib/lib/DBI/Const/GetInfo/ANSI.pm
cp lib/DBD/DBM.pm blib/lib/DBD/DBM.pm
cp DBI.pm blib/lib/DBI.pm
cp lib/DBI/Const/GetInfoReturn.pm blib/lib/DBI/Const/GetInfoReturn.pm
cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
cp Roadmap.pod blib/lib/Roadmap.pod
cp lib/DBI/Const/GetInfoType.pm blib/lib/DBI/Const/GetInfoType.pm
cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm
cp lib/DBI/DBD/Metadata.pm blib/lib/DBI/DBD/Metadata.pm
cp lib/DBI/Const/GetInfo/ODBC.pm blib/lib/DBI/Const/GetInfo/ODBC.pm
cp lib/DBI/ProfileDumper/Apache.pm blib/lib/DBI/ProfileDumper/Apache.pm
cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm
cp lib/DBI/Profile.pm blib/lib/DBI/Profile.pm
cp lib/DBI/ProfileDumper.pm blib/lib/DBI/ProfileDumper.pm
cp lib/DBD/File.pm blib/lib/DBD/File.pm
cp Driver.xst blib/arch/auto/DBI/Driver.xst
cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
cp dbipport.h blib/arch/auto/DBI/dbipport.h
cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
cp lib/DBI/PurePerl.pm blib/lib/DBI/PurePerl.pm
cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
cp lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm
/usr/contrib/Q4/bin/perl -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi
/usr/contrib/Q4/bin/perl /usr/local/lib/perl5/5.8.7/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.7/ExtUtils/typemap -typemap typemap Perl.xs > Perl.xsc && mv Perl.xsc Perl.c
gcc -c -D_HPUX_SOURCE -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -O0 -DVERSION=\"1.48\" -DXS_VERSION=\"1.48\" -fPIC "-I/usr/local/lib/perl5/5.8.7/IA64.ARCHREV_0/CORE" -Wall -Wno-comment -DDBI_NO_THREADS Perl.c
error 2005: invalid option '-x'
*** Error exit code 2

Thanks again,

Justin Jin
Arunvijai_4
Honored Contributor
Solution

Re: perl DBI installation problems

Just a thought, Did you do # make clean
# make distclean and # perl Makefile;# make after installing new perl ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
hpjinyq
New Member

Re: perl DBI installation problems

Thanks Arun,

Yes,
I have run #make realclean before i run perl Makefile.PL.

-Justin Jin
H.Merijn Brand (procura
Honored Contributor

Re: perl DBI installation problems

Can you attach the Makefile please

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn