473,700 Members | 2,741 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Installing DBD::Oracle locally

82 New Member
Hi,

I am working on a system that I do not have root access on.. Therefore I am installing some modules that I need to my home directory.

So far when I installed the DBI class it worked fine. But when I go to install the DBD::Oracle module I get the error that

Expand|Select|Wrap|Line Numbers
  1.  perl Makefile.PL PREFIX=/homedirectory/PerlModules
  2. Can't locate DBI.pm in @INC (@INC contains: ../../perl5/5.8.8/aix-thread-multi /usr/opt/perl5/lib/5.8.8 ../../perl5/lib/site_perl/5.8.8/aix-thread-multi ../../perl5/lib/site_perl/5.8.8 p../../perl5/lib/site_perl .) at Makefile.PL line 21.
  3. BEGIN failed--compilation aborted at Makefile.PL line 21.
  4.  
Since the Oracle DBD module is dependant on the DBI class I assume I will someone need to add my home directory to the @INC list. Is this even possible?

Can someone give me a heads up on how to go about this if it is?

Thanks
Jul 27 '12 #1
12 3600
RonB
589 Recognized Expert Moderator Contributor
Try adding this:
INSTALLPRIVLIB=/homedirectory/PerlModules
Jul 27 '12 #2
RonB
589 Recognized Expert Moderator Contributor
Here's a link to more detailed info.
Installing Perl5 Modules Locally
Jul 27 '12 #3
starlight849
82 New Member
Thanks for the link.
I tried following the suggestions in the Link you sent for the setenv PERL5LIB but that is for tch or csh and I'm using ksh. Would you happen to know the proper command?
Jul 29 '12 #4
RonB
589 Recognized Expert Moderator Contributor
Setting the environment variable in the shell is not required, but you can do it if you want.

export PERL5LIB=/homedirectory/PerlModules
You'll need to specify all lib paths in the export statement separated by a colon.

Or, instead of setting the environment var, use the INSTALLPRIVLIB option/arg in the call to Makefile.PL as is also shown in that link that I posted.
Jul 29 '12 #5
starlight849
82 New Member
So when I installed DBI I created the settings file such as what is provided in the link. perl Makefile.PL `cat LibPaths`
This is an AIX box. In case that helps.


In the file I followed the example's format
PREFIX=/usr/home/USERNAME/usr/local \
INSTALLPRIVLIB=/usr/home/USERNAME/usr/local/lib/perl5 \
INSTALLSCRIPT=/usr/home/USERNAME/usr/local/bin \
INSTALLSITELIB=/usr/home/USERNAME/usr/local/lib/perl5/site_perl \
INSTALLBIN=/usr/home/USERNAME/usr/local/bin \
INSTALLMAN1DIR=/usr/home/USERNAME/usr/local/lib/perl5/man \
INSTALLMAN3DIR=/usr/home/USERNAME/usr/local/lib/perl5/man/man3

Should I be replacing the \ between each path with a ; ?
I'm still having trouble seeing the DBD.pm file. And even when I export the Class path to the @inc statements the DBD.pm file still won't see the trigger.pm dependency that is located in the same Class folder.

Any suggestions?
Jul 30 '12 #6
starlight849
82 New Member
I think I was creating my installation directories incorrectly... I am resinstalling all my local modules using perl Makefile.PL PREFIX=~/lib LIB=~/lib during setup. I will let you know how this works out when I go to install DBD::Oracle.
Jul 30 '12 #7
starlight849
82 New Member
I'm still having the same issues. I have reinstalled everything in the local/lib directory yet when I go to install DBD::Oracle and point to the local/lib directory it is unable to find the DBI.pm dependency. :( Not sure what to do at this point.
Jul 30 '12 #8
numberwhun
3,509 Recognized Expert Moderator Specialist
Just out of curiosity, have you tried doing a "make clean" and then rebuilding from there. That way it starts the build fresh instead of reusing its settings. I say this in case it already tried to read from the variable PERL5LIB the first time through, it won't try again unless you clean up the first attempt.

Its always a good idea to 'make clean' between build attempts.

Regards,

Jeff
Jul 30 '12 #9
starlight849
82 New Member
I'll try to do a make clean and reinstall DBD::Oracle
Jul 31 '12 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
8463
by: rawii | last post by:
I am running on a Sun box and am trying to install the perl tools to connect to Oracle. When I try to install the DBD::Oracle module, I get the following. Please help.. What does is mean and how can I fix it? 33% make Skip blib/lib/DBD/Oracle.pm (unchanged) Skip blib/arch/auto/DBD/Oracle/Oracle.h (unchanged) Skip blib/arch/auto/DBD/Oracle/dbdimp.h (unchanged)
0
3258
by: Axel Dachtler | last post by:
Hi, I have downloaded both CPAN-moduls DBD-Oracle-1.14.tar and DBI-1.39.tar. But I fail in installing these moduls! The Perl Package Manager (PPM) returns this error message: no valid repositories ... when I execute install DBI-1.39.tar !!!
0
2389
by: Envex Developments | last post by:
Hey guys, I have a need to install the DBD::Pg Perl module on many shared web servers, which do not have PostgreSQL installed. Then the DBD::Pg module will just connect to a remote PostgreSQL database, hosted elsewhere. I'm having some problems doing this. First off, I modified the Makefile.PL, and added the three following links just above the check for environment variables:
0
2306
by: Envex Developments | last post by:
Hey guys, I have a need to install the DBD::Pg Perl module on many shared web servers, which do not have PostgreSQL installed. Then the DBD::Pg module will just connect to a remote PostgreSQL database, hosted elsewhere. I'm having some problems doing this. First off, I modified the Makefile.PL, and added the three following links just above the check for environment variables:
1
2068
by: jrefran | last post by:
Hi everyone! I have problem on my DBD:Oracle installation from source code. Does anyone familiar with this kind of error. Please help! I'm completely new with this kind of work item. This is the error during execution of "make". This error was in the last part. ---------------------------------- /usr/local/lib/perl5/5.8.8/sun4-solaris/CORE/proto.h:2089: warning: `__malloc__' attribute dir ective ignored...
1
1493
by: kulkanuja | last post by:
I M installing oracle 9i on windows 2003 server and i am intalling on new Hp Proliant ML350 server(new Machine). its gives me an error message that. oracle/setup.exe is valid, but for the machine and is not for the current machine
9
4299
by: mdshafi01 | last post by:
Hello All, I have problem in installing DBD::ORACLE package. Please can any one have experience in installing DBD::ORACLE package. please give me some hints to install this DBD::ORACLE packages. shafi
1
5535
by: srikantvm | last post by:
Hi All, I am using perl, v5.8.8 built for MSWin32-x86-multi-thread and i tried installing the DBD-Oracle module but unable to install. Please find below the steps followed by me: 1) I first tried installing Oracle.pm using the Activestate PPM but, i got an connection error to the activestate perl module repository. 2) Then i tried changing the http_proxy, it seemed to work fine. I was able to connect to the activestate perl module...
3
2807
by: OracletoPerl | last post by:
hi to all can anyone help me out in getting DBD::Oracle for windows.. i am currently using oracle 9i and active perl state 5.8.8..
1
4669
dlite922
by: dlite922 | last post by:
Hey guys. I don't think i've been into this forum for a while. I'm trying to install the oracle (ori8 ?) extension on php on a suse linux (v11?). Most of the (google results) articles just say uncomment but the PHP version they have installed does not have the .so file. What I could find that described the extension was for windows .dll files. Where can I get that .so file to connect to oracle 10g? so i can get the PHP oracle db...
0
9204
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9060
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8914
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7799
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6557
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4650
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2380
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2021
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.