Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

PEAR package install problem

Posted on 2006-07-08
3
Medium Priority
?
1,566 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

722 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