Solved

PEAR package install problem

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
spacing 5 31
Multilanguage Database Design in MySQL 5 39
php connect() failed error 25 17
two tables one button 11 20
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses four methods for overlaying images in a container on a web page
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…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now