PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sun Jul 22, 2018 11:27 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Upgrade of PEAR/Package
PostPosted: Thu Mar 04, 2010 5:12 pm 
Offline
Forum Commoner
User avatar

Joined: Mon Sep 18, 2006 3:49 pm
Posts: 96
I would like to install the Pear_Mail which has some functionality that is desired moreso then the mail() option.

I'm almost stuck in a catch 22 here though.

The following are installed:
Syntax: [ Download ] [ Hide ]
Installed packages, channel pear.php.net:
=========================================
Package                  Version State
Archive_Tar              1.3.2   stable
Console_Getopt           1.2.3   stable
File_PDF                 0.2.0   beta
HTML_Template_IT         1.1     stable
HTTP                     1.4.0   stable
HTTP_Download            1.1.3   stable
HTTP_Header              1.2.0   stable
Net_UserAgent_Detect     2.0.1   stable
OLE                      0.5     beta
PEAR                     1.5.1   stable
Spreadsheet_Excel_Writer 0.9.1   beta
Structures_Graph         1.0.3   stable
XML_RPC                  1.5.3   stable
XML_Util                 1.2.1   stable
pecl_http                1.3.2   stable


So I figured it was easy enough to install Mail
Syntax: [ Download ] [ Hide ]
[root@www docs]# pear install Mail
Did not download optional dependencies: pear/Net_SMTP, use --alldeps to download automatically
pear/Mail requires PEAR Installer (version >= 1.5.6), installed version is 1.5.1
pear/Mail can optionally use package "pear/Net_SMTP" (version >= 1.4.1)
No valid packages found
install failed
 


I figured, not a problem, upgrade the pear installer
Syntax: [ Download ] [ Hide ]
[root@www docs]# pear upgrade pear
pear/Archive_Tar requires PEAR Installer (version >= 1.5.4), installed version is 1.5.1
pear/PEAR dependency package "pear/Archive_Tar" installed version 1.3.2 is not the recommended version 1.3.3, but may be compatible, use --force to install
No valid packages found
upgrade failed
 


Okay, another dependency, annoying but easy enough to get around
Syntax: [ Download ] [ Hide ]
[root@www docs]# pear upgrade Archive_Tar
pear/Archive_Tar requires PEAR Installer (version >= 1.5.4), installed version is 1.5.1
No valid packages found
upgrade failed
 


Oh crap! Can't upgrade the installer due to Archive_Tar, can't upgrade Archive_Tar due to the installer.

I did try to use the force option as http://forums.devnetwork.net/viewtopic.php?f=30&t=101328&p=596544&hilit=pear+install+pear+pear+upgrade#p596544 showed helped, but it seems to be too far of a gap to bridge
Syntax: [ Download ] [ Hide ]
[root@www docs]# pear upgrade --force Archive_Tar
warning: pear/Archive_Tar requires PEAR Installer (version >= 1.5.4), installed version is 1.5.1
downloading Archive_Tar-1.3.5.tar ...
Starting to download Archive_Tar-1.3.5.tar (Unknown size)
.....................done: 92,160 bytes
Validation Error: This package.xml requires PEAR version 1.5.4 to parse properly, we are version 1.5.1
Parsing of package.xml from file "/tmp/pear/cache/package.xml" failed
Download of "pear/Archive_Tar" succeeded, but it is not a valid package archive
Error: cannot download "pear/Archive_Tar"
 

Even trying to use 1.3.3 or 1.3.4 didn't help

I can easily get the Archive_Tar tgz file for manual installation, of course Pear removed this information and I can't seem to find it anywhere. Just copying the files over the 1.3.2 version doesn't seem to make any difference. I was going to try the go-pear.php steps, but as it doesn't read any conf files and I never installed pear before (it was already present when I took over this server). I don't want to be breaking anything as this is a live server and critical to keep the PDF and XLS abilities by those two pear packages.


Any ideas?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group