Re: Sybperl and Oracle
[email protected] Fri, 24 Aug 2007 16:13:02 +0200
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase |
|---|---|
| Message-ID | <OF2DFBCBCE.6372FBDB-ONC1257341.004DD206-C1257341.004E1924@bnpparibas.com> |
You should build the sybperl code with perl 5.8.x. It's pretty easy - you need to have the Sybase env. variables set, and then run perl Makefile.PL in the sybperl-2.xx directory and follow the prompts... Michael Internet [email protected] - 24.08.2007 15:46 To: Michael PEPPLER cc: sybperl-l Subject: Re: Sybperl and Oracle Actually, I am getting this here.... !/usr/local/bin/sybperl5_6 use lib '/usr/local/lib/perl_5_6_1/site_perl/sun4-solaris/auto/DBI'; require '/usr/local/lib/perl_5_6_1/site_perl/sun4-solaris/DBI.pm'; with results of: ld.so.1: sybperl5_6: fatal: relocation error: file /usr/local/lib/perl_5_6_1/site_perl/sun4-solaris/auto/DBI/DBI.so: symbol Perl_get_sv: referenced symbol not found Killed However the dates on the 5.6 and 5.8 libraries look very similar. I don't normally do the perl builds round here... Can you tell me how I build sybperl with perl 5.8 with dynamic linking. Sorry for the noobie question, but I have been out of the system configuation game for a while. Dave Van Emden Enterprise Applications and Database Services North Carolina State University [email protected] Yahoo IM: dvanemden 919-513-1692 >>> <[email protected]> 8/24/2007 9:32 AM >>> That simply means that your DBI binary is not compatible with your sybperl binary - it looks like your sybperl binary is a perl 5.6 binary with Sybase::DBlib and/or Sybase::CTlib linked in. You could rebuild sybperl for perl5.8 with dynamic linking and then use this and DBI together. Michael Internet [email protected] - 24.08.2007 15:28 To: Michael PEPPLER cc: sybperl-l Subject: Re: Sybperl and Oracle Michael, I guess this is a very simplistic approach...but... #!/usr/local/bin/sybperl5_6 use lib '/usr/local/lib/perl5.8.0/site_perl/sun4-solaris/auto/DBI'; require '/usr/local/lib/perl5.8.0/site_perl/sun4-solaris/DBI.pm'; # use DBI; and I am getting: ld.so.1: sybperl5_6: fatal: relocation error: file /usr/local/lib/perl5.8.0/site_perl/sun4-solaris/auto/DBI/DBI.so: symbol Perl_get_sv: referenced symbol not found Killed Dave Van Emden Enterprise Applications and Database Services North Carolina State University [email protected] Yahoo IM: dvanemden 919-513-1692 >>> <[email protected]> 8/24/2007 9:23 AM >>> What do you mean by "hook in DBI interface" ? What sort of problems did you get ? Michael Internet [email protected]@peppler.org - 24.08.2007 15:17 Sent by: [email protected] To: sybperl-l cc: Subject: Sybperl and Oracle I have an application currently written in sybperl. I need now use an Oracle database as well. I tried to just hook in DBI interface with no luck. Is there a way to do this, or am I going to convert my sybperl to DBI-DBD? Thanks, Dave Van Emden Enterprise Applications and Database Services North Carolina State University [email protected] Yahoo IM: dvanemden 919-513-1692 This message and any attachments (the "message") is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. Do not print this message unless it is necessary, consider the environment. --------------------------------------------- Ce message et toutes les pieces jointes (ci-apres le "message") sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'expediteur. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, BNP PARIBAS (et ses filiales) decline(nt) toute responsabilite au titre de ce message, dans l'hypothese ou il aurait ete modifie. N'imprimez ce message que si necessaire, pensez a l'environnement.