The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Installing Perl Module surjithss Shell Programming and Scripting 2 03-26-2008 01:51 PM
Installing Perl Modules ssmiths001 Shell Programming and Scripting 1 06-26-2006 09:20 PM
Perl Installing, Uninstalling kisoun UNIX for Advanced & Expert Users 8 08-30-2005 02:56 AM
Re-Installing Perl frustrated1 Shell Programming and Scripting 1 11-04-2003 06:36 AM
Installing GTK to develop Perl GUI's pmcg UNIX for Dummies Questions & Answers 1 10-31-2001 05:42 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-12-2008
new2ss new2ss is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 133
Installing Perl DBI and DBD

Hi, i have some queries on installing the Perl DBI and the DBD Oracle.

I know that i have to install the DBI first. I have the source files in a folder in my home directory.The commands to install are
Code:
cd /home/DBI
Perl Makefile.PL
make
make install
I would like to know, after executing these commands, where is it installed? And also, if i installed it using my login id, when another person logs in, would that id be able to use these DBI modules?
  #2 (permalink)  
Old 03-12-2008
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
in /usr/lib/perl5/5.8.8/ by default, at least on my Fedora 8. Another person will be able to use them, yes.
Two quick checks you can perform :
Code:
perl -e 'use DBI; print $DBI::VERSION,"\n";'
perl -e 'use DBD::Oracle; print $DBD::Oracle::VERSION,"\n";'
  #3 (permalink)  
Old 03-13-2008
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
If you are not root or the permission of the default installation directory (that is usually somewhere in /usr, but that location varies from installation to installation) does not allow writing by your user, installing will fail and you should see error message while "make install", so it is easy to spot.

You will need to pass additional parameter to "perl Makefile.PL" to override the default installation location such as when installing with user privilege. I think it is something like (I have not installed modules as a user for so long)

perl Makefile.PL PREFIX=/home/blablabla/libs

If you are just a normal user and do not have root, I guess you can only install it in your home directory and others will not be able to use it.

ExtUtils::MakeMaker - perldoc.perl.org
  #4 (permalink)  
Old 03-16-2008
new2ss new2ss is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 133
Hi all,

i managed to install it as root user, and any one can use the modules. Thanks.

Hi cbkihong,

you mentioned that installation location varies,how can i find out where did my installation went to ?
  #5 (permalink)  
Old 03-18-2008
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
I normally find it out with something like this:

Code:
cbkihong@cbkihong:~$ perl -MDBD::mysql -e 'print $INC{"DBD/mysql.pm"}, "\n"'
/usr/local/lib/perl/5.8.0/DBD/mysql.pm
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:31 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0