Koozali.org: home of the SME Server

PEAR upgrade/update

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
PEAR upgrade/update
« on: July 04, 2008, 12:07:13 PM »
I´m trying to install Movifax... and some of their requisites are pear modules.
Pear module Auth refuses to install because PEAR installed is too old (1.3.2 - minimum = 1.3.6)

I could try to find updated pear modules... but not sure what could be affected or if it´s a good/smart move.

Any thoughts ?

Jáder
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: PEAR upgrade/update
« Reply #1 on: July 04, 2008, 12:34:42 PM »
I´m trying to install Movifax... and some of their requisites are pear modules.
Pear module Auth refuses to install because PEAR installed is too old (1.3.2 - minimum = 1.3.6)

I could try to find updated pear modules... but not sure what could be affected or if it´s a good/smart move.

Any thoughts ?

Jáder
Updating PEAR is a hard bargain. Your best bet is to download all required (dependencies as well) items as tar.tz and install them in the appropriate directory. Be aware that some packages require PHP5, where PHP4 is installed and available on SME Server by default. There is a howto to configure PHP5 available but I have never used taht.

Default PEAR upgrade instructions do not work on SME Server, even the ones at the PEAR site to force update.

Since SME Server is based on CentOS we have to wait until CentOS takes action. The issue is listed in their bugtracker for a long time, however they seem in no hurry to fix the issue (I am sorry I do not have a reference handy, but I seem to remember a reference is in the contribs.org bugtracker somewhere as well).
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: PEAR upgrade/update
« Reply #2 on: July 05, 2008, 03:43:25 AM »
Updating PEAR is a hard bargain. Your best bet is to download all required (dependencies as well) items as tar.tz and install them in the appropriate directory. Be aware that some packages require PHP5, where PHP4 is installed and available on SME Server by default. There is a howto to configure PHP5 available but I have never used taht.

Default PEAR upgrade instructions do not work on SME Server, even the ones at the PEAR site to force update.

Actually, I don't this is true.  You can upgrade pear via the force method as I have on my test servers while trying to get trean to work with horde 3.2.  What errors do you see when you try to use the force method.  The negative of this is that SME won't know that you have updated PEAR so if a new PEAR rpm gets installed, it could overwrite what you have done since sme by default looks in /usr/share/pear-addons: first.  If an updated PEAR is what you need, log a bug and see if it can be built for SME.  A lot of the pear RPM's have been built for CentOS4 via this link - http://isoredirect.centos.org/centos/4/centosplus/i386/RPMS/

John
......

Offline teranic

  • **
  • 21
  • +0/-0
Re: PEAR upgrade/update
« Reply #3 on: July 05, 2008, 09:29:19 AM »
Use at your own risk!:

[root@smerepo pear]# pear list
Installed packages:
===================
Package        Version State
Archive_Tar    1.1     stable
Console_Getopt 1.2     stable
DB             1.6.2   stable
HTTP           1.2.2   stable
Mail           1.1.3   stable
Net_SMTP       1.2.3   stable
Net_Socket     1.0.1   stable
PEAR           1.3.2   stable
XML_Parser     1.0.1   stable
XML_RPC        1.1.0   stable

[root@smerepo pear]# pear download pear
File PEAR-1.7.2.tgz downloaded (302744 bytes)

[root@smerepo pear]# pear upgrade PEAR-1.7.2.tgz
requires package `PEAR' >= 1.3.3
requires package `Archive_Tar' >= 1.3.1
requires package `Structures_Graph' >= 1.0.2
PEAR: Dependencies failed

[root@smerepo pear]# pear download PEAR-1.3.3
File PEAR-1.3.3.tgz downloaded (103320 bytes)

[root@smerepo pear]# pear upgrade PEAR-1.3.3.tgz
sh: /usr/bin/cpp: No such file or directory
upgrade ok: PEAR 1.3.3

[root@smerepo pear]# pear download Archive_Tar
File Archive_Tar-1.3.2.tgz downloaded (17150 bytes)

[root@smerepo pear]# pear download Structures_Graph
File Structures_Graph-1.0.2.tgz downloaded (30947 bytes)

[root@smerepo pear]# pear upgrade PEAR-1.7.2.tgz Archive_Tar-1.3.2.tgz Structures_Graph-1.0.2.tgz
upgrade ok: Structures_Graph 1.0.2
upgrade ok: Archive_Tar 1.3.2
Optional dependencies:
package `XML_RPC' version >= 1.4.0 is recommended to utilize some features.  Installed version is 1.1.0
package `PEAR_Frontend_Web' version >= 0.5.0 is recommended to utilize some features.
package `PEAR_Frontend_Gtk' version >= 0.4.0 is recommended to utilize some features.
sh: /usr/bin/cpp: No such file or directory
upgrade ok: PEAR 1.7.2

[root@smerepo pear]# pear channel-update pear.php.net
Updating channel "pear.php.net"
Update of Channel "pear.php.net" succeeded

[root@smerepo pear]# pear upgrade-all
Will upgrade channel://pear.php.net/xml_parser
Will upgrade channel://pear.php.net/console_getopt
Will upgrade channel://pear.php.net/net_smtp
Will upgrade channel://pear.php.net/net_socket
Will upgrade channel://pear.php.net/db
Will upgrade channel://pear.php.net/mail
Will upgrade channel://pear.php.net/xml_rpc
Will upgrade channel://pear.php.net/http
WARNING: "pear/DB" is deprecated in favor of "pear/MDB2"
Did not download optional dependencies: pear/Auth_SASL, use --alldeps to download automatically
pear/Net_SMTP can optionally use package "pear/Auth_SASL"
downloading XML_Parser-1.2.8.tgz ...
Starting to download XML_Parser-1.2.8.tgz (13,476 bytes)
.....done: 13,476 bytes
downloading Console_Getopt-1.2.3.tgz ...
Starting to download Console_Getopt-1.2.3.tgz (4,011 bytes)
...done: 4,011 bytes
downloading Net_SMTP-1.3.1.tgz ...
Starting to download Net_SMTP-1.3.1.tgz (10,274 bytes)
...done: 10,274 bytes
downloading Net_Socket-1.0.8.tgz ...
Starting to download Net_Socket-1.0.8.tgz (5,441 bytes)
...done: 5,441 bytes
downloading DB-1.7.13.tgz ...
Starting to download DB-1.7.13.tgz (132,246 bytes)
...done: 132,246 bytes
downloading Mail-1.1.14.tgz ...
Starting to download Mail-1.1.14.tgz (17,537 bytes)
...done: 17,537 bytes
downloading XML_RPC-1.5.1.tgz ...
Starting to download XML_RPC-1.5.1.tgz (32,215 bytes)
...done: 32,215 bytes
downloading HTTP-1.4.0.tgz ...
Starting to download HTTP-1.4.0.tgz (4,593 bytes)
...done: 4,593 bytes
upgrade-all ok: channel://pear.php.net/XML_Parser-1.2.8
upgrade-all ok: channel://pear.php.net/Console_Getopt-1.2.3
upgrade-all ok: channel://pear.php.net/Net_Socket-1.0.8
upgrade-all ok: channel://pear.php.net/DB-1.7.13
upgrade-all ok: channel://pear.php.net/Mail-1.1.14
upgrade-all ok: channel://pear.php.net/XML_RPC-1.5.1
upgrade-all ok: channel://pear.php.net/HTTP-1.4.0
upgrade-all ok: channel://pear.php.net/Net_SMTP-1.3.1
[root@smerepo pear]#
.........

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: PEAR upgrade/update
« Reply #4 on: July 08, 2008, 05:38:38 PM »
Using tera9c info I was able to update my pear modules... have seen no collateral effects so far... but I´m warned they can return to a previous version when server is updated. Maybe later will follow cactus tip to install rpms.

For now I´ll move forward to try install Movifax to Hylafax (the reason I need those pear modules): http://forums.contribs.org/index.php?topic=41474.0

Thanks

Jáder
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: PEAR upgrade/update
« Reply #5 on: July 16, 2008, 12:06:41 PM »
Concerning upgrading PEAR a security advisory of RHEL is just released, if CentOS incorporates this in their current 4.x tree, it should also be available to SME Server.

http://rhn.redhat.com/errata/RHSA-2008-0545.html
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline byte

  • *
  • 2,183
  • +2/-0
Re: PEAR upgrade/update
« Reply #6 on: July 16, 2008, 09:47:35 PM »
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: PEAR upgrade/update
« Reply #7 on: July 17, 2008, 04:54:04 AM »
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!

IMO this should not be in contribs.  Pear is part of the core install.  If your app needs an updated version of pear, you should open a bug and see if it could be included as an update.  Per to link to redhat's bug tracker, if/when they release an update and if/when CentOS picks it up, then the base version of SME Server will be updated as well, then your app may install without any issues.  Of, if there are, then you may then need to install additional pear modules which would then be a contribs.

Just my opinion,

John
......

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: PEAR upgrade/update
« Reply #8 on: July 20, 2008, 06:24:14 AM »
If anyone installed the latest php updates, you will notice that pear and other pear modules were updated.

JB
......