473,750 Members | 2,447 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 3604
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
8465
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
3264
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
2393
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
2314
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
2072
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
1496
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
4305
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
5543
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
2808
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
4671
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
9584
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...
1
9344
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9257
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
6081
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
4716
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4893
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2226
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.