- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: perl 5.8.7 with threading
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 02:55 AM
09-28-2005 02:55 AM
ext/threads/shared/t/0nothread............ok
ext/threads/shared/t/av_refs..............Can't call method "join" on an undefined
value at ../ext/threads/shared/t/av_refs.t line 50.
FAILED at test 4
ext/threads/shared/t/av_simple............Can't call method "join" on an undefined
value at ../ext/threads/shared/t/av_simple.t line 47.
FAILED at test 10
ext/threads/shared/t/cond.................Can't call method "join" on an undefined
value at ../ext/threads/shared/t/cond.t line 53.
FAILED at test 3
ext/threads/shared/t/disabled.............ok
ext/threads/shared/t/hv_refs..............Can't call method "join" on an undefined
value at ../ext/threads/shared/t/hv_refs.t line 45.
FAILED at test 4
ext/threads/shared/t/hv_simple............Can't call method "join" on an undefined
value at ../ext/threads/shared/t/hv_simple.t line 43.
FAILED at test 3
ext/threads/shared/t/no_share.............Can't call method "join" on an undefined
value at ../ext/threads/shared/t/no_share.t line 43.
FAILED at test 4
I need it with threading as when I try to include DBD-Oracle it complains thet Oracle is threaded and to recompile perl with threading..
Any ideas as to how to get perl with threading to compile properly ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 03:32 AM
09-28-2005 03:32 AM
Solution1. DBD-Oracle does *NOT* need a threaded perl, it needs a perl that has the threads library linked in. I admid this may sound confusing, but just believe me.
2. Any special reason to build it yourself? I have all versions of perl available in 32 and 64bit for HP-UX 11.11 (11i), 11.00 and 10.20 and they all include the most recent DBI at the time of build, and are prepared to be linked to Oracle. A good reason to build yourself might be that you do have HP's C-ANSI-C, which compiles better than gcc.
Point 1 is verbosely explained in both perl's README.hpux and in DBD-Oracle's README.hpux
My HP ITRC site pages can be found at (please use LA as primary choice):
USA Los Angeles http://mirrors.develooper.com/hpux/
SGP Singapore https://www.beepz.com/personal/merijn/
USA Chicago http://ww.hpux.ws/merijn/
NL Hoofddorp http://www.cmve.net/~merijn/
Enjoy, have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 04:48 AM
09-28-2005 04:48 AM
Re: perl 5.8.7 with threading
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 06:20 AM
09-28-2005 06:20 AM
Re: perl 5.8.7 with threading
perl32 -> /opt/perl
perl64 -> /opt/perl64
Just go to my site. URL's in previous posts.
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 06:27 AM
09-28-2005 06:27 AM
Re: perl 5.8.7 with threading
If I am correct swinstall will install this depot in /opt/perl <32bit> and /opt/perl64 <64bit>
Our current production perl is loaded in /opt/perl and we don't want to overwrite that directory, is there a way around that ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 06:49 AM
09-28-2005 06:49 AM
Re: perl 5.8.7 with threading
If you only want perl64, there is no problem. My site describes:
# bzip2 -d perl-5.8.7-dor-11.11.sd.bz
# swinstall -s `pwd`/perl-5.8.7-dor-11.11.sd perl64
Just make sure /opt/perl64/bin is in your $PATH before /opt/perl/bin
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 07:01 AM
09-28-2005 07:01 AM
Re: perl 5.8.7 with threading
Can I tar my current production perl version in /opt/perl
Load the new 32bit depot which will overwrite /opt/perl.
Then say move the /opt/perl to /opt/perl32 and then reload the production tar backup into /opt/perl ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 07:23 AM
09-28-2005 07:23 AM
Re: perl 5.8.7 with threading
# mv /opt/perl /opt/perl32
would suffice, but sorry, you cannot do that, because the default include tree (/opt/perl/lib) is compiled into the binary/ies
You *can* get it to work using PERL5LIB environment, but it's likely more trouble than it's worth
What is special about the current release that you want to keep it? Does it have modules installed that my build does not have?
Enjoy, Have FUN! H.Merijn [ who would not mind some points for my site support ]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 07:30 AM
09-28-2005 07:30 AM
Re: perl 5.8.7 with threading
I guess I have no other option but to recompile perl from scratch and then I'm back to my origional problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2005 07:41 AM
09-28-2005 07:41 AM
Re: perl 5.8.7 with threading
From README.hpux (I know, I wrote this myself):
--8<---
=head2 Oracle on HP-UX
Using perl to connect to Oracle databases through DBI and DBD::Oracle
has caused a lot of people many headaches. Read README.hpux in the
DBD::Oracle for much more information. The reason to mention it here
is that Oracle requires a perl built with libcl and libpthread, the
latter even when perl is build without threads. Building perl using
all defaults, but still enabling to build DBD::Oracle later on can be
achieved using
Configure -A prepend:libswanted='cl pthread ' ...
Do not forget the space before the trailing quote.
Also note that this does not (yet) work with all configurations,
it is known to fail with 64-bit versions of GCC.
-->8---
Ahh, and the last remark is not true anymore. I should remove it :)
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 12:56 AM
09-29-2005 12:56 AM
Re: perl 5.8.7 with threading
and all went good. Is there a way to verify that I have perl as needed for DBD-Oracle ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 01:40 AM
09-29-2005 01:40 AM
Re: perl 5.8.7 with threading
I scripted it's Makefile.PL and make and was hoping you or someone might tell me what's going wrong ...
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 01:52 AM
09-29-2005 01:52 AM
Re: perl 5.8.7 with threading
There is no better way to check than to build and install DBI and DBD::Oracle
I have full confidence in that the *perl* binary you just created is not causing that to fail
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 02:59 AM
09-29-2005 02:59 AM
Re: perl 5.8.7 with threading
# find /opt/oracle/product/9.2.0.6.0 -name oci.h
If you cannot find it, you have to install the part that contains it (C development or something)
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 05:06 AM
09-29-2005 05:06 AM
Re: perl 5.8.7 with threading
I ran through the entire setup on another server which had the files installed in the $ORACLE_HOME/rdbms/demo and everything installed without a problem, including the DBD-Oracle. So as soon as the DBA's give me a rdbms/demo directory with everything in it I install it on the problem server.
As a comment when you build new depots, the reason we couldn't over write our current production /opt/perl is that we are in the middle of an upgrade to a version 9 of Oracle. The production is running Version 8, so if I update /opt/perl with the ORACLE_HOME for Version 9 then the production application scripts will not work.
As a suggestion may I recommend that you build the depots to install in as an example: /opt/perl-5.8.7
Thanks Again..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2005 11:06 PM
10-05-2005 11:06 PM
Re: perl 5.8.7 with threading
The solution to that problem is to NOT install DBD::Oracle in the default perl tree
I face the same problem, and since you can only install one single DBD::Oracle in the default tree, and I want to support multiple versions of Oracle on the same perl, I have a directory called 'perl' on $ORACLE_HOME (on *each* $ORACLE_HOME) and install your DBD::Oracle in there
When you then switch to the product, you set $PERL5LIB to find that first:
bev r3:/pro/po/bev/4gl 101 > echo $PERL5LIB
/pro/asql/o82C/lib/perl:/pro/po/bev/4gl/c19f000/vog
bev r3:/pro/po/bev/4gl 102 > perl -MV=DBI
DBI
/pro/lib/perl5/site_perl/5.8.5/PA-RISC2.0-LP64/DBI.pm: 1.48
bev r3:/pro/po/bev/4gl 103 > perl -MV=DBD::Oracle
DBD::Oracle
/pro/asql/o82C/lib/perl/5.8.5/DBD/Oracle.pm: 1.16
bev r3:/pro/po/bev/4gl 104 >
Another nice thing is that this works also for multiple versions of perl :)
Enjoy, Have FUN! H.Merijn