Yes, and no.  If there is no C code involved in most cases, you can move the
..pm file around, be warned though, some modules are abstracted into a
variety of modules and might depend on other .pm files in the package.  So
if you move all of them to the place and non of them rely on XS, then you
should be ok 99% of the time.

Ilya 

-----Original Message-----
From: Chris Faust
To: Sterin, Ilya (I.); DBI
Sent: 11/22/02 8:46 PM
Subject: RE: Installing DBI

Thanks Ilya, not really the answer I was hoping for but exactly the
answer I
needed.

Off Topic but --
Is it safe to assume if the module has no need of a C compiler then it
would
be safe to simply pass around the "pm" file and count on it working? Or
is
there no promises there either?

Thanks Again
-Chris

>> -----Original Message-----
>> From: Sterin, Ilya (I.) [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, November 22, 2002 5:39 PM
>> To: 'Chris Faust'; DBI
>> Subject: RE: Installing DBI
>>
>>
>> Wow, a big no no.  You can't do that with a module that's has XS
>> (C) code.  The DBI.pm interfaces with the XS code, therefore,
>> just copying DBI.pm does nothing with the C object files, nor
>> the XS interface.  It might still work as it does in your case,
>> but you are not taking advantage of any changes, plus unexpected
>> stuff can happen later.
>>
>> You only choice is to get some sort of a shell access to the
>> machine and install it locally, using...
>>
>>
>> perl Makefile.PL PREFIX=/path/to/local
>>
>> Ilya
>>
>> -----Original Message-----
>> From: Chris Faust [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, November 22, 2002 5:22 PM
>> To: DBI
>> Subject: Installing DBI
>>
>>
>> Please forgive what I'm sure is a really stupid question - but
>> the fact is
>> I've never been in a situation where I didn't have root access
>> to install my
>> modules.
>>
>> I need to get DBI on a web server where I have no SSH/Telnet access,
if I
>> take DBI.pm off my local machine and put it on the web server
>> and then use
>> the old "use lib /path to DBI.pm/;" it seems to work.
>>
>> My question is, is there anything bad about doing this? Does it make
a
>> difference if the make process is done on the machine that is doing
the
>> hosting?
>>
>> Could I be looking at unforeseen problems down the line?
>>
>> P.S. In case it matters I'm using mySql
>>
>> Thanks
>> -Chris

Reply via email to