| View previous topic :: View next topic |
| Author |
Message |
mmesarina
Joined: 10 Mar 2008 Posts: 1
|
Posted: Mon Mar 10, 2008 7:40 pm Post subject: Package installation failed |
|
|
Hi,
I looked in the packages available and one of them is HTTP_Request.
So I tried to dowload it with pear.bat on my windows machine and I get the following messages, one of them saying that :
NO releases available for package "pear.php.net/HTTP_Request'.
Yet the releases are available.
Has someone run into this problem?
Here is the entire error:
$ pear.bat install HTTP_Request
No releases available for package "pear.php.net/HTTP_Request"
Cannot initialize 'channel://pear.php.net/HTTP_Request', invalid or missing package file
Package "channel://pear.php.net/HTTP_Request" is not valid
install failed
-Malena |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1011
|
Posted: Mon Mar 10, 2008 7:57 pm Post subject: |
|
|
| You have an outdated version of the PEAR installer (most likely). Update instructions can be found on http://pear.php.net/. |
|
| Back to top |
|
 |
ayush_mathur
Joined: 12 Mar 2008 Posts: 2 Location: Bangalore, India
|
Posted: Wed Mar 12, 2008 4:19 pm Post subject: |
|
|
I'm Ayush Mathur. I'm also getting the same problem even after having the latest version of pear (1.5.4). I'm just getting because of this. |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1011
|
Posted: Wed Mar 12, 2008 9:39 pm Post subject: |
|
|
| ayush_mathur wrote: | I'm Ayush Mathur. I'm also getting the same problem even after having the latest version of pear (1.5.4). I'm just getting because of this. |
1.5.4 isn't the latest version, but it should work with this version. You might want to try to use the latest version, though, maybe it works then. |
|
| Back to top |
|
 |
OldManRiver
Joined: 26 Mar 2008 Posts: 2
|
Posted: Mon Mar 31, 2008 6:38 pm Post subject: Continuing Installer Problems |
|
|
All,
I using the go-pear.php installer for PEAR.
I have some major problems with the installer. I have been working with this program for two weeks now adding traps, code etc. patches and still can not effect an install of PEAR on my Windows Systems of:
W2K - Desktop (ECS 755A MB, 2GB RAM, 250GB HD)
W2K - Laptop (Compaq Armada M700)
I have two versions of go-pear.php which are:
1. V 0.5.0 - goes to 70% and blows on "PEAR-stable" with error message "Invalid block size 300"
2. V 1.1.1 - goes to 30% and blows on “Extracting installer.................. Downloading package: PEAR............. Invalid block size : 293”
Both blowup!
Version 0.5.0
Version 0.5.0 used to also stop at 30%, but I made corrections to the code, which now allow it to find the PEAR.php and TAR.php file locally and now have it running up to the 70% mark.
I have added "echo" statements throughout the code (both versions) in both the go-pear.php and the Tar.php files and find that the block size expected is "512". Unfortunately I can not find a place to trap where the source file is for this as it is using the following URL link:
Downloading package: PEAR-stable......
P=> PEAR T=> PEAR-stable H=> localhost:80 U=> http://pear.php.net/get/PEAR-stable
(trapped from one of my implanted echo statements)
Therefore I can not inspect the source file for the header that is expected. The file actually being copied to the temp directory is in fact only 300 Which is some sort of errormsg as you see from the following copy of it:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /get/PEAR-stable was not found on this server.</p>
<hr>
<address>Apache/2.0.59 (Win32) PHP/5.1.6 Server at pear.php.net Port 80</address>
</body></html>
I have tried these installs on both a desktop and a laptop computer and both have the same results.
The .tar file does infact exist on the but is in a different directory than the install directory. I've tried copying/moving the .tar file, but nothing changes.
Version 1.1.1
Version 1.1.1 used to also stop at 20%, but I made corrections to the code, now allowing it to find the local files locally getting it up to the 30% mark.
Analysis
I think some of the problems revolve around the lack of correct install information so providing the settings entered into the input screen for clarification:
1. Installation prefix D:\Program Files\Wamp\PEAR
2. Binaries directory $prefix
3. PHP code directory ($php_dir) $prefix
4. Documentation base directory $prefix\docs
5. Data base directory $prefix\data
6. Tests base directory $prefix\tests
7. PEAR Installer cache directory $prefix/cache
8. Cache TimeToLive 300
9. Filename of WebFrontend $prefix/index.php
10. php.exe path, optional (CLI command tools) D:\Program Files\Wamp\php
.tar was original in directory E:\Zips & Downloads\Dev Tools & Langs\LAMP_WAMP\PHP\PEAR
moved .tar file to directory D:\Program Files\Wamp\PEAR
Still have the errors after the moves and have both version tarballs of:
PEAR-1.6.1.tgz
PEAR-1.7.1.tgz
It also may involve the different directory tree structures used by the following WAMP installers of:
1. EasyPHPInstaller,
2. PhpTriad,
3. WAMP, (I use this one, as it works best/error free)
4. Win-amp,
5. X-amp.
All of these use different packaging and directory tree defaults. I use the WAMP installer as all the other installers errored and did not successfully complete the installs of the AMP triad on my Windows boxes.
The block size error causes an additional errror, on force clean-up, of:
Version 0.5.0
Warning: unlink(D:\Temp\gop51.tmp\PEAR-stable) [function.unlink]: Permission denied in D:\Program Files\Wamp\PEAR\go-pear.php on line 1107
Version 1.1.1
Warning: unlink(D:\Program Files\Wamp\PEAR/temp\PEAR) [function.unlink]: Permission denied in D:\Program Files\Wamp\PEAR\gopear.php on line 1282
Even though I added code to force a "chown 0755" to the file, it is somehow left in the "open" stage and therefore the clean-up trying to delete it and run the "rmdir" to delete the temp directory fails as the open file gen's the "Permission denied" error.
Anyway I worked through both of these version file to the same point and now need a better understanding of the processing and code before I can proceed to finish fixing these errors.
Hope one or more of you can help!
Thanks!
OMR |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1011
|
Posted: Mon Mar 31, 2008 7:17 pm Post subject: |
|
|
I haven't really read your description (not enough time today), but there is a new installation chapter in the PEAR manual available that might help you:
http://ucommbieber.unl.edu/peardoc/html/guide-users.html
(This is a test server for the documentation build. In the official manual on pear.php.net this chapter won't be available before Sunday evening.) |
|
| Back to top |
|
 |
OldManRiver
Joined: 26 Mar 2008 Posts: 2
|
Posted: Fri Apr 04, 2008 11:06 pm Post subject: Still Working |
|
|
All,
Added code to work with tar files, but still need code to extract from the tar file.
Anyone have that code that I can cut and paste?
OMR |
|
| Back to top |
|
 |
|