Re: GOOD NEWS: Re: perl DBI-1.51 install error .... Math Libraries
am 22.07.2006 21:07:30 von jonathan.leffler------=_Part_51204_14273332.1153595250791
Content-Type: text/plain; charset=WINDOWS-1252; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Paul,
If you need more help, you neded to go back to DBI or a Perl news group.
I'm on vacation for the next two weeks, starting in less than an hour.
On 7/22/06, Paul Adelaide
>
>
>
>
> Now I am able to successfully install and compile perl on my box to:
> /usr/opt/perl5.8.8.
>
> perl 5.8.8 64bit
> ----------------
> ./Configure -de -Dcc=3Dgcc -Duse64bitall
> make
> make test
> make install
> ---------------------------Successful
>
> DBI 1.46
> --------
> !!Make sure you are using the newly installed perl!!
> check with perl -v it should show :
> This is perl, v5.8.6 built for aix-64all
> perl Makefile.PL
> make
> make test
> make install
> ------------------------------?????
>
>
> Next question: what is the best method to include this path for the DBI
> module install?
>
> Thanks
>
> paul.adelaide@yahoo.com | mobile: 301.537.5929
>
> ----- Original Message ----
> From: Paul Adelaide
> To: Jonathan Leffler
> Sent: Saturday, July 22, 2006 7:49:26 AM
> Subject: Fw: perl DBI-1.51 install error .... Math Libraries
>
> Also, the math libraries? Explain where I need to incorporate it in
> the2 steps below.
>
>
> paul.adelaide@yahoo.com | mobile: 301.537.5929
>
> ----- Forwarded Message ----
> From: Paul Adelaide
> To: Jonathan Leffler
> Sent: Saturday, July 22, 2006 7:46:47 AM
> Subject: Re: perl DBI-1.51 install error ....
>
> Ok I will start all over again. The following are the steps I need to
> take right? I am going to re-compile perl to new location:
> /usr/opt/perl5.8.8. Two things I would appreciate from you:
>
> 1. Can you modify the steps to indicate where I need to change to ensure =
I
> create perl in the new location.
> 2. Ensure that I use the path for the new perl (/usr/opt/perl5.8.8) in
> the DBI install
> Thanks.
>
> perl 5.8.8 64bit
> ----------------
> ./Configure -de -Dcc=3Dgcc -Duse64bitall
> make
> make test
> make install
>
> DBI 1.46
> --------
> !!Make sure you are using the newly installed perl!!
> check with perl -v it should show :
> This is perl, v5.8.6 built for aix-64all
> perl Makefile.PL
> make
> make test
> make install
>
>
> paul.adelaide@yahoo.com | mobile: 301.537.5929
>
> ----- Original Message ----
> From: Jonathan Leffler
> To: Paul Adelaide
> Sent: Friday, July 21, 2006 9:37:23 PM
> Subject: Re: perl DBI-1.51 install error ....
>
>
>
> On 7/21/06, Paul Adelaide
> >
> > Thanks for the response. So I should use 32bit of perl, right? Also
> > the intent is to access Oracle 10g which is 64bit (I am counting on the=
DBD
> > that came with Oracle -- so need to include that in the perl module
> > install).
> >
>
>
> OK - I would agree with you that the Perl for a 64-bit Oracle should
> probably be a 64-bit Perl. And the more I looked at the problem, the mor=
e
> convinced I am that you just needed to add -lm to the list of libraries (=
and
> I'm surprised that Perl's Configure script didn't do that anyway). At so=
me
> point in the configuration, you get to specify libraries and you should a=
dd
> -lm to that list.
>
> You could poke around at the Oracle documentation to see what it tells yo=
u
> - about 64-bit vs 32-bit. I don't know enough about Oracle client softwa=
re
> to be able to tell what applies with certainty.
>
>
>
> Jonathan I am new at this... Can you please shed more light on this for
> > me, thanks.
> >
> > paul.adelaide@yahoo.com | mobile: 301.537.5929
> >
> >
> > ----- Original Message ----
> > From: Jonathan Leffler < jonathan.leffler@gmail.com>
> > To: Paul Adelaide
> > Sent: Friday, July 21, 2006 8:14:15 PM
> > Subject: Re: perl DBI-1.51 install error ....
> >
> > Your original Perl was 32-bit, not 64-bit. That might make things
> > better.
> >
> > The other question is whether you've been able to build any program
> > using the maths functions and not including the -lm (ell, em) flag. Th=
ey're
> > all maths library functions. Since -lm is not listed, that may be the
> > trouble.
> >
> > On 7/21/06, Paul Adelaide < pauladelaide@yahoo.com> wrote:
> > >
> > > perl 5.8.8 64bit
> > > ------------------
> > >
> > >
> > >
> > > ./Configure -de -Dcc=3D/usr/bin/gcc -Duse64bitall - seems OK
> > >
> > > make -- Failed see below
> > >
> > >
> > >
> > > .o regexec.o utf8.o taint.o deb.o universal.o xsutils.o globals.o
> > > perlio.o perlapi.o numeric.o locale.o pp_pack.o pp_sort.o | sed 's/
> > > op.o / /'` miniperlmain.o opmini.o perl.o -lbind -lnsl -ldl -lld
> > > -lcrypt -lc -lbsd
> > >
> > > ld: 0711-317 ERROR: Undefined symbol: .pow
> > >
> > > ld: 0711-317 ERROR: Undefined symbol: .floor
> > >
> > > ld: 0711-317 ERROR: Undefined symbol: .fmod
> > >
> > > ld: 0711-317 ERROR: Undefined symbol: .atan2
> > >
> > > ld: 0711-317 ERROR: Undefined symbol: .sin
> > >
> > > ld: 0711-317 ERROR: Undefined symbol: .cos
> > >
> > > ld: 0711-317 ERROR: Undefined symbol: .exp
> > >
> > > ld: 0711-317 ERROR: Undefined symbol: .log
> > >
> > > ld: 0711-317 ERROR: Undefined symbol: .sqrt
> > >
> > > ld: 0711-317 ERROR: Undefined symbol: .ceil
> > >
> > > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> > > information.
> > >
> > > collect2: ld returned 8 exit status
> > >
> > > make: 1254-004 The error code from the last command is 1.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > paul.adelaide@yahoo.com | mobile: 301.537.5929
> > >
> > >
> > > ----- Original Message ----
> > > From: Jonathan Leffler < jonathan.leffler@gmail.com>
> > > To: Paul Adelaide < pauladelaide@yahoo.com >
> > > Sent: Friday, July 21, 2006 7:32:25 PM
> > > Subject: Re: perl DBI-1.51 install error ....
> > >
> > >
> > >
> > > On 7/21/06, Paul Adelaide < pauladelaide@yahoo.com> wrote:
> > > >
> > > > Hello Jonathan, still no luck. I am not sure where to obatin
> > > > this cc_r compiler. Below is the output of the perl _V on the box.
> > > >
> > >
> > > cc_r is one of the IBM (AIX) compilers - something to do with
> > > re-entrant compilation, I believe.
> > > Google: cc_r site: ibm.com gets you to various chunks of info,
> > > including http://tinyurl.com/omu8y .
> > >
> > > If you can't lay hold of it, then the best thing is to obtain GCC fro=
m
> > > somewhere (it looks like you might already have it), and then use tha=
t to
> > > build a version of Perl for installation in a suitable location. For
> > > example, since /usr/opt/perl5 is used by the standard Perl, you might=
choose
> > > /usr/opt/perl5.8.8 as the location for a new build. After you've bui=
lt Perl
> > > (it isn't a traumatic experience as long as you are self-consistent a=
bout
> > > where you want the software installed), then you can use it to instal=
l CPAN
> > > or CPANPLUS and DBI and ultimately DBD::Informix. And then, when you=
're fed
> > > up with the ultimate, you can enhance it by installing ever more comp=
elling
> > > examples from CPAN.
> > > *
> > >
> > > *
> > >
> > > I tried this: "ln -s /usr/bin/gcc /usr/bin/cc_r" and re-ran
> > > > Makefile.PL -- still failed. Can you help?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Fidelity Information Services | Chicago Technology Center =96 Tools
> > > > Tivoli
> > > >
> > > > paul.adelaide@fnf.com | office: 312.528.4557 | mobile: 301.537.5929=
| fax:
> > > > 312.842.8267
> > > >
> > > >
> > > >
> > > >
> > > > root@ictctwc01
> > > >
> > > > /tmp/perl/DBI-1.51
> > > >
> > > > # make
> > > >
> > > > /usr/bin/perl "-MExtUtils::Command" -e mkpath blib/lib/DBI
> > > >
> > > > rm -f blib/lib/DBI/Changes.pm
> > > >
> > > > cp Changes blib/lib/DBI/Changes.pm
> > > >
> > > > /usr/bin/perl "-MExtUtils::Command" -e mkpath blib/lib/DBI
> > > >
> > > > rm -f blib/lib/DBI/Roadmap.pm
> > > >
> > > > cp Roadmap.pod blib/lib/DBI/Roadmap.pm
> > > >
> > > > cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
> > > >
> > > > cp dbivport.h blib/arch/auto/DBI/dbivport.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/bin/perl -e 'use ExtUtils::Mksymlists; Mksymlists("NAME" =3D>
> > > > "DBI", "DL_FUNCS" =3D> { }, "FUNCLIST" =3D> [], "DL_VARS" =3D> []);=
'
> > > >
> > > > /usr/bin/perl -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi
> > > >
> > > > /usr/bin/perl /usr/opt/perl5/lib/5.8.2/ExtUtils/xsubpp -typemap
> > > > /usr/opt/perl5/lib/5.8.2/ExtUtils/typemap -typemap typemap Perl.xs =
>
> > > > Perl.xsc && mv Perl.xsc Perl.c
> > > >
> > > > cc_r -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
> > > > -qmaxmem=3D16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_I=
NIT -q32
> > > > -D_LARGE_FILES -qlonglong -O -DVERSION=3D\"1.51\" -DXS_VERSION=3D\"
> > > > 1.51\" "-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE" Perl.c
> > > >
> > > > /bin/sh: cc_r: not found.
> > > >
> > > > make: 1254-004 The error code from the last command is 127.
> > > >
> > > >
> > > >
> > > > Stop.
> > > >
> > > > root@ictctwc01
> > > >
> > > > /tmp/perl/DBI-1.51
> > > >
> > > > # make test
> > > >
> > > > cc_r -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
> > > > -qmaxmem=3D16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_I=
NIT -q32
> > > > -D_LARGE_FILES -qlonglong -O -DVERSION=3D\"1.51\" -DXS_VERSION=3D\"
> > > > 1.51\" "-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE" Perl.c
> > > >
> > > > /bin/sh: cc_r: not found.
> > > >
> > > > make: 1254-004 The error code from the last command is 127.
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Jonathan Leffler < jonathan.leffler@gmail.com> #include
> > > >
> > > Guardian of DBD::Informix - v2005.02 - http://dbi.perl.org
> > > "I don't suffer from insanity - I enjoy every minute of it."
> > >
> > >
> >
> >
> > --
> > Jonathan Leffler < jonathan.leffler@gmail.com> #include
> > Guardian of DBD::Informix - v2005.02 - http://dbi.perl.org
> > "I don't suffer from insanity - I enjoy every minute of it."
> >
> >
>
>
> --
> Jonathan Leffler
> Guardian of DBD::Informix - v2005.02 - http://dbi.perl.org
> "I don't suffer from insanity - I enjoy every minute of it."
>
>
>
>
--=20
Jonathan Leffler
Guardian of DBD::Informix - v2005.02 - http://dbi.perl.org
"I don't suffer from insanity - I enjoy every minute of it."
------=_Part_51204_14273332.1153595250791--