Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PEAR package install problem

Posted on 2006-07-08
3
Medium Priority
?
1,575 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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
This article discusses how to implement server side field validation and display customized error messages to the client.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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.
Suggested Courses

963 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