Solved

PEAR package install problem

Posted on 2006-07-08
3
1,537 Views
Last Modified: 2008-01-09
I have pear installed apparently ok, and I have been trying to install the php package. But system.php is putting out errors: I put in an echo to see whats happening and it returns: C:\Documents and Settings\loxtond\Local Settings\Temp;c:

C:\php5>pear install channel://pear.php.net/file_pdf-0.0.2 --alldeps
C:\Documents and Settings\loxtond\Local Settings\Temp;c:
Warning: mkdir(): Invalid argument in System.php on line 261
C:\Documents and Settings\loxtond\Local Settings\Temp;c:
Warning: mkdir(): Invalid argument in System.php on line 261
C:\Documents and Settings\loxtond\Local Settings\Temp;c:
Warning: mkdir(): Invalid argument in System.php on line 261
C:\Documents and Settings\loxtond\Local Settings\Temp;c:
Warning: mkdir(): Invalid argument in System.php on line 261
C:\Documents and Settings\loxtond\Local Settings\Temp;c:
Warning: mkdir(): Invalid argument in System.php on line 261
parsePackageName(): invalid package name "--alldeps" in "--alldeps"
invalid package name/package file "--alldeps"
Cannot initialize '--alldeps', invalid or missing package file
C:\Documents and Settings\loxtond\Local Settings\Temp;c:
Warning: mkdir(): Invalid argument in System.php on line 261
C:\Documents and Settings\loxtond\Local Settings\Temp;c:
Warning: mkdir(): Invalid argument in System.php on line 261
C:\Documents and Settings\loxtond\Local Settings\Temp;c:
Warning: mkdir(): Invalid argument in System.php on line 261
C:\Documents and Settings\loxtond\Local Settings\Temp;c:
Warning: mkdir(): Invalid argument in System.php on line 261
Did not download dependencies: pear/HTTP_Download, use --alldeps or --onlyreqdeps to download automa
tically
pear/File_PDF can optionally use package "pear/HTTP_Download"
C:\Documents and Settings\loxtond\Local Settings\Temp;c:
Warning: mkdir(): Invalid argument in System.php on line 261
downloading File_PDF-0.0.2.tgz ...
Starting to download File_PDF-0.0.2.tgz (26,390 bytes)
.........done: 26,390 bytes
C:\Documents and Settings\loxtond\Local Settings\Temp;c:
Warning: mkdir(): Invalid argument in System.php on line 261
Unable to open /package.xml
Download of "pear/file_pdf" succeeded, but it is not a valid package archive
Error: cannot download "pear/File_PDF"
Package "--alldeps" is not valid
install failed


What can I do to fix this - why is it happening? Can I uninstall PEAR and start again? PEAR uninstall only removes the package not the PEAR program.
0
Comment
Question by:mmc98dl1
  • 2
3 Comments
 
LVL 29

Accepted Solution

by:
TeRReF earned 500 total points
ID: 17067217
It seems like you've tried to install it the *NIX way. mkdir is a *NIX command and will not work in Windows.
Here you can find a detailed explanation of how to install it:
http://www.sitepoint.com/article/getting-started-with-pear/2
0
 
LVL 12

Author Comment

by:mmc98dl1
ID: 17067361
Thanks - this pointed me to the fact that the user TEMP path in env variables had been set to C:\Documents and Settings\loxtond\Local Settings\Temp;c:\php

I removed this whole line and replaced it with

c:\temp

now it works fine. I think it just needed somewhere to download to.
0
 
LVL 29

Expert Comment

by:TeRReF
ID: 17067378
I'm glad it works.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question