Operating System - HP-UX
1754270 Members
2819 Online
108813 Solutions
New Discussion юеВ

Perl Modules Compile problems

 
SOLVED
Go to solution
Youlette Etienne_2
Regular Advisor

Perl Modules Compile problems

miaux03: /opt/patch/DBD-Oracle-1.15 =>perl Makefile.PL
I am trying to compile the following perl module:
/opt/patch/DBD-Oracle-1.15 =>perl Makefile.PL

Can't locate DBI.pm in @INC (@INC contains: /opt/perl/lib/5.8.2/PA-RISC1.1-thread-multi /opt/perl/lib/5.8.2 /opt/perl/lib/site_perl/5.8.2/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.8.2 /opt/perl/lib/site_perl .) at Makefile.PL line 21.
BEGIN failed--compilation aborted at Makefile.PL line 21.

Need help! Thanks
If at first you don't succeed, change the rules!
8 REPLIES 8
H.Merijn Brand (procura
Honored Contributor
Solution

Re: Perl Modules Compile problems

# perl -MCPAN -e'install DBI'

DBD modules, and DBD-Oracle is one of them, do only work if the prerequisite module DBI is installed

DBD-Oracle is a good version, use DBI-1.42 to go with that. You can also get it here:
http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.42.tar.gz

Some perl distributions have precompiled DBI included (as do my distributions). Your's obviously is missing it.

I sincerely hope that your perl can cope with Oracle, since it needs a special tread at build time.

Emjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Youlette Etienne_2
Regular Advisor

Re: Perl Modules Compile problems

Thank you!!!

That worked!
If at first you don't succeed, change the rules!
Youlette Etienne_2
Regular Advisor

Re: Perl Modules Compile problems

Well, I atleast passed the first step. Now I am getting the following on the make command:

/usr/ccs/bin/ld: /app/oracle/product/9.2.0/lib32: Not a valid object file (invalid system id)
*** Error exit code 1

In other posted qustions relating to this, it mentions trying to compile a 64-bit program with 32-bit libraries. But I am not clear on the solution to this problem. The error occurs at the below point of using the steps in the README file:
If you have linking problems (errors related to libraries or functions)
then you could try forcing a 'static' build using:

make realclean
perl Makefile.PL LINKTYPE=static
make
make perl (error occurs here)

Thanks
If at first you don't succeed, change the rules!
H.Merijn Brand (procura
Honored Contributor

Re: Perl Modules Compile problems

Ahhhhrg.

Base operation for installing a new module with an existing perl, what I /think/ you are trying to do is

# cd /tmp
# gzip -d < DBD-Oracle-1.15.tar.gz | tar xf -
# cd DBD-Oracle-1.15
# perl Makefile.PL
# make
# make test
# make install

In your last post, I see "make perl". A make command not even known (implicitely) to Perl's core build process.

The error I see is that of passing a directory to the linker where it expects a library or object (maybe you used -l instead of -L)

enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Youlette Etienne_2
Regular Advisor

Re: Perl Modules Compile problems

okay, I am totally lost here. Where do I change the -l to -L?
If at first you don't succeed, change the rules!
H.Merijn Brand (procura
Honored Contributor

Re: Perl Modules Compile problems

That change is made in the Makefile. (note that that is a change from a lower case 'l' (ell) to an upper case 'L')

But, again, IMHO that should not be needed if you follow the few commands lined out in my previous post.

Personally, I'd like to see where that fails, if it fails at all. And IF it fails, I'd also like to see the output of

# perl -V

http://forums1.itrc.hp.com/service/forums/pageList.do?userId=CA294000&listType=unassigned&forumId=1

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Youlette Etienne_2
Regular Advisor

Re: Perl Modules Compile problems

Thanks again for your help with this problem.

I uninstalled HP's perl bundle, and downloaded and compiled perl 5.8.4, using the following configure options:

sh Configure -Duselargefiles -A prepend:libswanted='cl pthread ' -Accflags="+z" -Duse64bitall

Now, I am at the point where I need an oracle userid with sufficient privileges to complete the 'make test' command. I will post the final outcome.
If at first you don't succeed, change the rules!
Youlette Etienne_2
Regular Advisor

Re: Perl Modules Compile problems

Finally! The module is installed successfully!. Thanks so much for your help!
If at first you don't succeed, change the rules!