Pear versions

Print Friendly, PDF & Email

I needed to install a PEAR package.  (PEAR is an internet-based repository of PHP packages.)  The installation command failed:

# pear install Mail_Mime
pear/Mail_Mime requires PEAR Installer (version >= 1.6.0), installed version is 1.4.9

I tried several ways of upgrading pear using yum, all of which failed:

# yum update php-pear
# yum --enablerepo="epel" update php-pear
# yum --enablerepo="rpmforge" update php-pear

Eventually, I typed the error message above into Google and found a post on StackOverflow.com that suggested:

# pear upgrade pear

That produced some complaints, many of which were the same sort as above.  I repeated the command, but no luck.  I then tried

# pear help

and noticed the following, which I tried:

# pear upgrade-all

That yielded some complaints, but mostly looked good.  No, it didn’t work.  The pear version is still 1.4.9.  According to other info on the StackOverflow page, 1.4.9 is hopelessly out of date, and I should probably uninstall it and re-install using directions like: http://pear.php.net/manual/en/installation.getting.php

I tried Tempest and it didn’t have either PHP or PEAR, so I installed them:

tempest# yum install php php-pear

Then, I did

tempest# pear version
PEAR Version: 1.9.4
PHP Version: 5.3.3
Zend Engine Version: 2.3.0

Then, I tried

tempest# pear install Mail_Mime

and that worked nicely, though it also told me to update the channel (a particular repository, I think):

tempest# pear channel-update pear.php.net

which succeeded with no complaint.

So, I think we need to (1) use Tempest as our main web server, once it’s able to do everything that Puma can now do, and (2) replace the PEAR on Puma, by hand, bypassing yum, and (3) eventually, install CentOS 6.3 on Puma, to match Tempest.

Short term, I’m going to try replacing PEAR.  First step, is to ensure that I don’t inadvertently lose some of the installed packages.  So I do:

[root@puma ~] pear list
 Installed packages, channel pear.php.net:
 =========================================
 Package           Version State
 Archive_Tar       1.3.1   stable
 Console_Getopt    1.2     stable
 HTML_Template_IT  1.3.0   stable
 MDB2              2.4.1   stable
 MDB2_Driver_mysql 1.4.1   stable
 PEAR              1.4.9   stable
 PHPUnit           1.3.2   stable
 Structures_Graph  1.0.4   stable
 XML_Parser        1.3.4   stable
 XML_RPC           1.5.5   stable
 XML_RSS           1.0.2   stable
 XML_Util          1.2.1   stable
 [root@puma ~]

This info will also let us replicate the packages on Tempest.
Here’s a nice bit of magic:

root@puma ~] pear list | tail -n +4 | awk '{ print $1; }'
 Archive_Tar
 Console_Getopt
 HTML_Template_IT
 MDB2
 MDB2_Driver_mysql
 PEAR
 PHPUnit
 Structures_Graph
 XML_Parser
 XML_RPC
 XML_RSS
 XML_Util
 [root@puma ~]

Now, if I can iterate over those, or use xargs, I can install all of them on Tempest, since Tempest isn’t quite there:

[root@puma ~] pear list | tail -n +4 | awk '{ print $1; }' > /usr/network/tmp/pear-packages
[root@puma ~] ssh tempest
Last login: Fri Aug 10 12:13:31 2012 from puma.wellesley.edu
[root@tempest ~]# logout
Connection to tempest closed.
[root@puma ~] ls -lt /usr/network/tmp/pear-packages 
-rw-rw---- 1 root root 133 Aug 10 12:14 /usr/network/tmp/pear-packages
[root@puma ~] chmod a+r !$
chmod a+r /usr/network/tmp/pear-packages
[root@puma ~] ssh tempest
Last login: Fri Aug 10 12:14:50 2012 from puma.wellesley.edu
[root@tempest ~]# for p in `cat /usr/network/tmp/pear-packages `; do echo $p; done
Archive_Tar
Console_Getopt
HTML_Template_IT
MDB2
MDB2_Driver_mysql
PEAR
PHPUnit
Structures_Graph
XML_Parser
XML_RPC
XML_RSS
XML_Util
[root@tempest ~]# for p in `cat /usr/network/tmp/pear-packages `; do pear install $p; done
downloading Archive_Tar-1.3.10.tgz ...
Starting to download Archive_Tar-1.3.10.tgz (18,294 bytes)
......done: 18,294 bytes
install ok: channel://pear.php.net/Archive_Tar-1.3.10
downloading Console_Getopt-1.3.1.tgz ...
Starting to download Console_Getopt-1.3.1.tgz (4,471 bytes)
.....done: 4,471 bytes
install ok: channel://pear.php.net/Console_Getopt-1.3.1
downloading HTML_Template_IT-1.3.0.tgz ...
Starting to download HTML_Template_IT-1.3.0.tgz (23,309 bytes)
........done: 23,309 bytes
install ok: channel://pear.php.net/HTML_Template_IT-1.3.0
downloading MDB2-2.4.1.tgz ...
Starting to download MDB2-2.4.1.tgz (119,790 bytes)
..........................done: 119,790 bytes
install ok: channel://pear.php.net/MDB2-2.4.1
MDB2: Optional feature fbsql available (Frontbase SQL driver for MDB2)
MDB2: Optional feature ibase available (Interbase/Firebird driver for MDB2)
MDB2: Optional feature mysql available (MySQL driver for MDB2)
MDB2: Optional feature mysqli available (MySQLi driver for MDB2)
MDB2: Optional feature mssql available (MS SQL Server driver for MDB2)
MDB2: Optional feature oci8 available (Oracle driver for MDB2)
MDB2: Optional feature pgsql available (PostgreSQL driver for MDB2)
MDB2: Optional feature querysim available (Querysim driver for MDB2)
MDB2: Optional feature sqlite available (SQLite2 driver for MDB2)
MDB2: To install optional features use "pear install pear/MDB2#featurename"
pear/MDB2_Driver_mysql requires PHP extension "mysql"
No valid packages found
install failed
pear/PEAR is already installed and is the same as the released version 1.9.4
install failed
WARNING: "pear/PHPUnit" is deprecated in favor of "channel://pear.phpunit.de/PHPUnit"
Did not download dependencies: pear/PHP_Compat, use --alldeps or --onlyreqdeps to download automatically
pear/PHPUnit can optionally use package "pear/PHP_Compat"
downloading PHPUnit-1.3.2.tgz ...
Starting to download PHPUnit-1.3.2.tgz (20,913 bytes)
........done: 20,913 bytes
install ok: channel://pear.php.net/PHPUnit-1.3.2
pear/Structures_Graph is already installed and is the same as the released version 1.0.4
install failed
WARNING: "pear/XML_Parser" is deprecated in favor of "pear/XML_Parser2"
downloading XML_Parser-1.3.4.tgz ...
Starting to download XML_Parser-1.3.4.tgz (16,040 bytes)
......done: 16,040 bytes
install ok: channel://pear.php.net/XML_Parser-1.3.4
WARNING: "pear/XML_RPC" is deprecated in favor of "pear/XML_RPC2"
downloading XML_RPC-1.5.5.tgz ...
Starting to download XML_RPC-1.5.5.tgz (31,862 bytes)
.........done: 31,862 bytes
install ok: channel://pear.php.net/XML_RPC-1.5.5
WARNING: "pear/XML_Parser" is deprecated in favor of "pear/XML_Parser2"
downloading XML_RSS-1.0.2.tgz ...
Starting to download XML_RSS-1.0.2.tgz (6,483 bytes)
.....done: 6,483 bytes
install ok: channel://pear.php.net/XML_RSS-1.0.2
pear/XML_Util is already installed and is the same as the released version 1.2.1
install failed
[root@tempest ~]#

This looks really good!  Let’s check:

[root@tempest ~]# pear list
 Installed packages, channel pear.php.net:
 =========================================
 Package          Version State
 Archive_Tar      1.3.10  stable
 Console_Getopt   1.3.1   stable
 HTML_Template_IT 1.3.0   stable
 MDB2             2.4.1   stable
 Mail_Mime        1.8.5   stable
 PEAR             1.9.4   stable
 PHPUnit          1.3.2   stable
 Structures_Graph 1.0.4   stable
 XML_Parser       1.3.4   stable
 XML_RPC          1.5.5   stable
 XML_RSS          1.0.2   stable
 XML_Util         1.2.1   stable
 [root@tempest ~]#

Wonderful!  Well, there are some complaints we need to deal with, and we should upgrade those deprecated packages, and install some of the optional MDB2 stuff.  Let’s do that now:

[root@tempest ~]# yum -y install php-mysql
Loaded plugins: downloadonly, product-id, refresh-packagekit, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mysql.x86_64 0:5.3.3-14.el6_3 will be installed
--> Processing Dependency: php-pdo for package: php-mysql-5.3.3-14.el6_3.x86_64
--> Running transaction check
---> Package php-pdo.x86_64 0:5.3.3-14.el6_3 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================
 Package                     Arch                     Version                           Repository                              Size
=====================================================================================================================================
Installing:
 php-mysql                   x86_64                   5.3.3-14.el6_3                    rhel-x86_64-server-6                    79 k
Installing for dependencies:
 php-pdo                     x86_64                   5.3.3-14.el6_3                    rhel-x86_64-server-6                    73 k

Transaction Summary
=====================================================================================================================================
Install       2 Package(s)

Total download size: 153 k
Installed size: 0  
Downloading Packages:
(1/2): php-mysql-5.3.3-14.el6_3.x86_64.rpm                                                                    |  79 kB     00:00     
(2/2): php-pdo-5.3.3-14.el6_3.x86_64.rpm                                                                      |  73 kB     00:00     
-------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                160 kB/s | 153 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : php-pdo-5.3.3-14.el6_3.x86_64                                                                                     1/2 
  Installing : php-mysql-5.3.3-14.el6_3.x86_64                                                                                   2/2 
Installed products updated.
  Verifying  : php-mysql-5.3.3-14.el6_3.x86_64                                                                                   1/2 
  Verifying  : php-pdo-5.3.3-14.el6_3.x86_64                                                                                     2/2 

Installed:
  php-mysql.x86_64 0:5.3.3-14.el6_3                                                                                                  

Dependency Installed:
  php-pdo.x86_64 0:5.3.3-14.el6_3                                                                                                    

Complete!
[root@tempest ~]#

Good.  Now for some of the MDB2 features:

[root@tempest ~]# pear install pear/MDB2#mysql
Skipping package "pear/MDB2", already installed as version 2.4.1
downloading MDB2_Driver_mysql-1.4.1.tgz ...
Starting to download MDB2_Driver_mysql-1.4.1.tgz (36,481 bytes)
..........done: 36,481 bytes
install ok: channel://pear.php.net/MDB2_Driver_mysql-1.4.1

Might as well install the sqlite backend as well:

[root@tempest ~]# pear install pear/MDB2#sqlite
Skipping package "pear/MDB2", already installed as version 2.4.1
pear/MDB2_Driver_sqlite requires PHP extension "sqlite"
No valid packages found
install failed

Hmm. That’s disappointing.  We’ll have to figure out how to do this.

Next, let’s upgrade those deprecated packages:

[root@tempest ~]# pear channel-discover pear.phpunit.de
Adding Channel "pear.phpunit.de" succeeded
Discovery of channel "pear.phpunit.de" succeeded
[root@tempest ~]# pear install phpunit/PHPUnit
Unknown remote channel: pear.symfony-project.com
Did not download optional dependencies: phpunit/PHP_Invoker, use --alldeps to download automatically
phpunit/PHPUnit requires package "channel://pear.symfony-project.com/YAML" (version >= 1.0.2)
phpunit/PHPUnit requires PHP extension "dom"
phpunit/PHPUnit can optionally use package "phpunit/PHP_Invoker" (version >= 1.1.0)
phpunit/PHP_CodeCoverage can optionally use PHP extension "dom"
phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2.0.5)
phpunit/PHPUnit_MockObject can optionally use PHP extension "soap"
downloading File_Iterator-1.3.1.tgz ...
Starting to download File_Iterator-1.3.1.tgz (5,157 bytes)
.....done: 5,157 bytes
downloading Text_Template-1.1.1.tgz ...
Starting to download Text_Template-1.1.1.tgz (3,622 bytes)
...done: 3,622 bytes
downloading PHP_CodeCoverage-1.1.3.tgz ...
Starting to download PHP_CodeCoverage-1.1.3.tgz (132,726 bytes)
...done: 132,726 bytes
downloading PHP_Timer-1.0.2.tgz ...
Starting to download PHP_Timer-1.0.2.tgz (3,686 bytes)
...done: 3,686 bytes
downloading PHPUnit_MockObject-1.1.1.tgz ...
Starting to download PHPUnit_MockObject-1.1.1.tgz (19,897 bytes)
...done: 19,897 bytes
downloading PHP_TokenStream-1.1.3.tgz ...
Starting to download PHP_TokenStream-1.1.3.tgz (9,860 bytes)
...done: 9,860 bytes
install ok: channel://pear.phpunit.de/File_Iterator-1.3.1
install ok: channel://pear.phpunit.de/Text_Template-1.1.1
install ok: channel://pear.phpunit.de/PHP_Timer-1.0.2
install ok: channel://pear.phpunit.de/PHP_TokenStream-1.1.3
install ok: channel://pear.phpunit.de/PHP_CodeCoverage-1.1.3
install ok: channel://pear.phpunit.de/PHPUnit_MockObject-1.1.1
[root@tempest ~]#

Okay, that works.  (Installation instructions for PHPUnit were found at http://www.phpunit.de/manual/3.0/en/installation.html

Now, more deprecated packages:

[root@tempest ~]# pear install XML_Parser2
Failed to download pear/XML_Parser2 within preferred state "stable", latest release is version 0.1.0, stability "beta", use "channel://pear.php.net/XML_Parser2-0.1.0" to install
install failed

Hmm.  That’s also disappointing.  Let’s hope sticking with the deprecated modules isn’t too bad.  One last cleanup on Tempest before turning to Puma:

[root@tempest ~]# pear upgrade
 Nothing to upgrade
 [root@tempest ~]# pear list
 Installed packages, channel pear.php.net:
 =========================================
 Package           Version State
 Archive_Tar       1.3.10  stable
 Console_Getopt    1.3.1   stable
 HTML_Template_IT  1.3.0   stable
 MDB2              2.4.1   stable
 MDB2_Driver_mysql 1.4.1   stable
 Mail_Mime         1.8.5   stable
 PEAR              1.9.4   stable
 PHPUnit           1.3.2   stable
 Structures_Graph  1.0.4   stable
 XML_Parser        1.3.4   stable
 XML_RPC           1.5.5   stable
 XML_RSS           1.0.2   stable
 XML_Util          1.2.1   stable
 [root@tempest ~]# pear list | tail -n +4 | awk '{ print $1; }' > /usr/network/tmp/tempest-pear-list
 [root@tempest ~]# more !$
 more /usr/network/tmp/tempest-pear-list
 Archive_Tar
 Console_Getopt
 HTML_Template_IT
 MDB2
 MDB2_Driver_mysql
 Mail_Mime
 PEAR
 PHPUnit
 Structures_Graph
 XML_Parser
 XML_RPC
 XML_RSS
 XML_Util
 [root@tempest ~]# chmod a+r !$
 chmod a+r /usr/network/tmp/tempest-pear-list
 [root@tempest ~]#

I’m going to count that as a victory.  Let’s turn to Puma.  I’m not sure how dangerous erase the php-pear RPM will be, but I think it makes sense to do that, rather than to have two incompatible versions installed.  So, here goes:

[root@puma ~] rpm -e php-pear
[root@puma ~] cd /root/tmp/
[root@puma tmp] wget http://pear.php.net/go-pear.phar
--2012-08-10 12:58:38--  http://pear.php.net/go-pear.phar
Resolving pear.php.net... 5.77.39.20
Connecting to pear.php.net|5.77.39.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3681106 (3.5M) [application/octet-stream]
Saving to: `go-pear.phar'

100%[===========================================================================================>] 3,681,106   2.94M/s   in 1.2s    

2012-08-10 12:58:40 (2.94 MB/s) - `go-pear.phar' saved [3681106/3681106]

[root@puma tmp] php go-pear.phar 

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

 1. Installation base ($prefix)                   : /usr
 2. Temporary directory for processing            : /tmp/pear/install
 3. Temporary directory for downloads             : /tmp/pear/install
 4. Binaries directory                            : /usr/bin
 5. PHP code directory ($php_dir)                 : /usr/share/pear
 6. Documentation directory                       : /usr/docs
 7. Data directory                                : /usr/data
 8. User-modifiable configuration files directory : /usr/cfg
 9. Public Web Files directory                    : /usr/www
10. Tests directory                               : /usr/tests
11. Name of configuration file                    : /etc/pear.conf

1-11, 'all' or Enter to continue: 7
(Use $prefix as a shortcut for '/usr', etc.)
Data directory [$prefix/data] : /usr/share/pear/data

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

 1. Installation base ($prefix)                   : /usr
 2. Temporary directory for processing            : /tmp/pear/install
 3. Temporary directory for downloads             : /tmp/pear/install
 4. Binaries directory                            : /usr/bin
 5. PHP code directory ($php_dir)                 : /usr/share/pear
 6. Documentation directory                       : /usr/docs
 7. Data directory                                : /usr/share/pear/data
 8. User-modifiable configuration files directory : /usr/cfg
 9. Public Web Files directory                    : /usr/www
10. Tests directory                               : /usr/tests
11. Name of configuration file                    : /etc/pear.conf

1-11, 'all' or Enter to continue: 6
(Use $prefix as a shortcut for '/usr', etc.)
Documentation directory [$prefix/docs] : /usr/share/pear/doc

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

 1. Installation base ($prefix)                   : /usr
 2. Temporary directory for processing            : /tmp/pear/install
 3. Temporary directory for downloads             : /tmp/pear/install
 4. Binaries directory                            : /usr/bin
 5. PHP code directory ($php_dir)                 : /usr/share/pear
 6. Documentation directory                       : /usr/share/pear/doc
 7. Data directory                                : /usr/share/pear/data
 8. User-modifiable configuration files directory : /usr/cfg
 9. Public Web Files directory                    : /usr/www
10. Tests directory                               : /usr/tests
11. Name of configuration file                    : /etc/pear.conf

1-11, 'all' or Enter to continue: 9
(Use $prefix as a shortcut for '/usr', etc.)
Public Web Files directory [$prefix/www] : /var/www 

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

 1. Installation base ($prefix)                   : /usr
 2. Temporary directory for processing            : /tmp/pear/install
 3. Temporary directory for downloads             : /tmp/pear/install
 4. Binaries directory                            : /usr/bin
 5. PHP code directory ($php_dir)                 : /usr/share/pear
 6. Documentation directory                       : /usr/share/pear/doc
 7. Data directory                                : /usr/share/pear/data
 8. User-modifiable configuration files directory : /usr/cfg
 9. Public Web Files directory                    : /var/www
10. Tests directory                               : /usr/tests
11. Name of configuration file                    : /etc/pear.conf

1-11, 'all' or Enter to continue: 10
(Use $prefix as a shortcut for '/usr', etc.)
Tests directory [$prefix/tests] : /usr/share/pear/test

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

 1. Installation base ($prefix)                   : /usr
 2. Temporary directory for processing            : /tmp/pear/install
 3. Temporary directory for downloads             : /tmp/pear/install
 4. Binaries directory                            : /usr/bin
 5. PHP code directory ($php_dir)                 : /usr/share/pear
 6. Documentation directory                       : /usr/share/pear/doc
 7. Data directory                                : /usr/share/pear/data
 8. User-modifiable configuration files directory : /usr/cfg
 9. Public Web Files directory                    : /var/www
10. Tests directory                               : /usr/share/pear/test
11. Name of configuration file                    : /etc/pear.conf

1-11, 'all' or Enter to continue: 
Beginning install...
PHP Warning:  Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/PackageFile/Generator/v1.php on line 733

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/PackageFile/Generator/v1.php on line 733
PHP Warning:  Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/PackageFile/Generator/v1.php on line 753

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/PackageFile/Generator/v1.php on line 753
PHP Warning:  Invalid argument supplied for foreach() in phar://go-pear.phar/PEAR/PackageFile/Generator/v1.php on line 1220

Warning: Invalid argument supplied for foreach() in phar://go-pear.phar/PEAR/PackageFile/Generator/v1.php on line 1220
Configuration written to /etc/pear.conf...
Initialized registry...
Preparing to install...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.7.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.3.0.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.9.4.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0.4.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.2.1.tar...
install ok: channel://pear.php.net/Archive_Tar-1.3.7
install ok: channel://pear.php.net/Console_Getopt-1.3.0
install ok: channel://pear.php.net/Structures_Graph-1.0.4
install ok: channel://pear.php.net/XML_Util-1.2.1
install ok: channel://pear.php.net/PEAR-1.9.4
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
PEAR: To install optional features use "pear install pear/PEAR#featurename"

The 'pear' command is now at your service at /usr/bin/pear

** The 'pear' command is not currently in your PATH, so you need to
** use '/usr/bin/pear' until you have added
** '/usr/bin' to your PATH environment variable.

Run it without parameters to see the available actions, try 'pear list'
to see what packages are installed, or 'pear help' for help.

For more information about PEAR, see:

  http://pear.php.net/faq.php
  http://pear.php.net/manual/

Thanks for using go-pear!

[root@puma tmp]

Resetting the directories makes me nervous, but I tried to compare with Tempest and, in particular, I looked at the output of this:

[root@tempest ~]# pear config-show
Configuration (channel pear.php.net):
=====================================
Auto-discover new Channels     auto_discover    <not set>
Default Channel                default_channel  pear.php.net
HTTP Proxy Server Address      http_proxy       <not set>
PEAR server [DEPRECATED]       master_server    pear.php.net
Default Channel Mirror         preferred_mirror pear.php.net
Remote Configuration File      remote_config    <not set>
PEAR executables directory     bin_dir          /usr/bin
PEAR documentation directory   doc_dir          /usr/share/pear/doc
PHP extension directory        ext_dir          /usr/lib64/php/modules
PEAR directory                 php_dir          /usr/share/pear
PEAR Installer cache directory cache_dir        /var/cache/php-pear
PEAR configuration file        cfg_dir          /etc/pear
directory
PEAR data directory            data_dir         /usr/share/pear/data
PEAR Installer download        download_dir     /tmp/pear/download
directory
PHP CLI/CGI binary             php_bin          /usr/bin/php
php.ini location               php_ini          <not set>
--program-prefix passed to     php_prefix       <not set>
PHP's ./configure
--program-suffix passed to     php_suffix       <not set>
PHP's ./configure
PEAR Installer temp directory  temp_dir         /var/tmp
PEAR test directory            test_dir         /usr/share/pear/test
PEAR www files directory       www_dir          /var/www/html
Cache TimeToLive               cache_ttl        3600
Preferred Package State        preferred_state  stable
Unix file mask                 umask            22
Debug Log Level                verbose          1
PEAR password (for             password         <not set>
maintainers)
Signature Handling Program     sig_bin          /usr/bin/gpg
Signature Key Directory        sig_keydir       /etc/pearkeys
Signature Key Id               sig_keyid        <not set>
Package Signature Type         sig_type         gpg
PEAR username (for             username         <not set>
maintainers)
User Configuration File        Filename         /root/.pearrc
System Configuration File      Filename         /etc/pear.conf
[root@tempest ~]#

What do you mean that it’s not on my path? I’m sure it is.

[root@puma tmp] echo $PATH
/usr/java/jdk1.6.0/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/network/bin:/root/bin:/root/bin:/root/ldapscripts:/usr/network/sbin:/usr/network/bin
[root@puma tmp] which pear
/usr/bin/pear

Okay, that’s fine.  What packages do we have?

[root@puma tmp] pear list
Installed packages, channel pear.php.net:
=========================================
Package           Version State
Archive_Tar       1.3.7   stable
Console_Getopt    1.3.0   stable
HTML_Template_IT  1.3.0   stable
MDB2              2.4.1   stable
MDB2_Driver_mysql 1.4.1   stable
PEAR              1.9.4   stable
PHPUnit           1.3.2   stable
Structures_Graph  1.0.4   stable
XML_Parser        1.3.4   stable
XML_RSS           1.0.2   stable
XML_Util          1.2.1   stable
[root@puma tmp]

It’s nice that the packages remained.  Let’s see what version I have:

[root@puma tmp] pear version
PEAR Version: 1.9.4
PHP Version: 5.2.13
Zend Engine Version: 2.2.0
Running on: Linux puma.wellesley.edu 2.6.18-308.11.1.el5 #1 SMP Tue Jul 10 08:48:43 EDT 2012 x86_64

Good. So, can I now install the Mail_Mime package?

[root@puma tmp] pear install Mail_Mime
downloading Mail_Mime-1.8.5.tgz ...
Starting to download Mail_Mime-1.8.5.tgz (31,437 bytes)
.........done: 31,437 bytes
install ok: channel://pear.php.net/Mail_Mime-1.8.5
[root@puma tmp]

Yes!  Okay, time to take a break.

 

About CS SysAdmins

The CS Department System Administrators
This entry was posted in Uncategorized. Bookmark the permalink.

2 Responses to Pear versions

Leave a Reply

Your email address will not be published. Required fields are marked *