Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't unlink file error when using PPM

Status
Not open for further replies.

dhawal

Programmer
Oct 31, 2002
7
FR
Can someone please help with error when Installing DBI package on Win32. Details (steps and complete error message) are as follows:

1. Downloaded DBI-1.35.zip from
2. Extracted the files.

3. Edited DBI.PPD file to put in local path name.

FROM
----

<IMPLEMENTATION>
<CODEBASE HREF=&quot;MSWin32-x86-multi-thread/DBI-1.35.tar.gz&quot; />
<ARCHITECTURE NAME=&quot;MSWin32-x86-multi-thread&quot; />
<OS NAME=&quot;MSWin32&quot; />
</IMPLEMENTATION>

TO
--

<IMPLEMENTATION>
<CODEBASE HREF=&quot;C:/DK/downloads/perl/DBI/DBI-1.35/MSWin32-x86-multi-thread/DBI-1.35.tar.gz&quot; />
<ARCHITECTURE NAME=&quot;MSWin32-x86-multi-thread&quot; />
<OS NAME=&quot;MSWin32&quot; />
</IMPLEMENTATION>

3. Ran PPM and added local dir as a repository.

4. Ran install DBI

At this point I get the following error:
====================
Install 'DBI.ppd' version 1.35 in ActivePerl 5.6.1.635.
====================
Can't unlink file C:\TEMP/DBI-1-3936/DBI-1.35.tar.gz: Permission denied at C:/Pe
rl/site/lib/PPM/Repository.pm line 239
Can't remove directory C:\TEMP/DBI-1-3936: Permission denied at C:/Perl/site/lib
/PPM/Repository.pm line 239
Error: error downloading 'C:/DK/downloads/perl/DBI/DBI-1.35/MSWin32-x86-
-multi-thread/DBI-1.35.tar.gz': 501 Protocol scheme 'c' is not supported
ppm>
 
The clue to the last error is this bit:

Protocol scheme 'c' is not supported

It thinks, as its in a HREF attribute, that the data transport mechanism is something called c:, when in actual fact it's file:

Try this

<CODEBASE HREF=&quot;file://C:/DK/downloads/perl/DBI/DBI-1.35/MSWin32-x86-multi-thread/DBI-1.35.tar.gz&quot; />

or

<CODEBASE HREF=&quot;file:///DK/downloads/perl/DBI/DBI-1.35/MSWin32-x86-multi-thread/DBI-1.35.tar.gz&quot; />

I haven't tried this myself, but thats why you get the last error. If you are trying to install DBI from local because you had a failed install previously, it'll be safer to try and clean up after the failure and reinstall from either PPM or the CPAN.pm module (see faq219-1687 for this installation method).

Sorry I can't be much more help :(

Barbie
Leader of Birmingham Perl Mongers
 
Thank you so much missbarbell!

You are great. I tried your first suggestion of putting &quot;file://&quot; in front of the file name and the install worked.

I actually installed ActiveState perl after download from the site. I have tried to use PPM to work without manual downloads but I think office proxy server problems prevent it from working as is. I will take a look at FAQ219-1687 as you suggested.

Thanks once again.

Dhawal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top