Solved

PEAR package install problem

Posted on 2006-07-08
3
1,541 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

680 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