Airtime 1.7.0 install issue: phing-2.4.2
  • Hi all,

    I've done an uninstall of 1.6.1 to do 1.7.0 from scratch. I'm running into a problem when installing phing:

    Quote:
    ep@tower2:~$ sudo pear channel-discover pear.phing.info
    Channel "pear.phing.info" is already initialized
    ep@tower2:~$ sudo pear install phing/phing-2.4.2
    No releases available for package "pear.phing.info/phing"
    install failed


    Looks like I have pear 5.3.2-1ubuntu4.7 installed:

    Quote:
    ep@tower2:~$ dpkg -s php-pear | grep -i version
    Version: 5.3.2-1ubuntu4.7


    The install process barfs when trying to run airtime-update-db-settings after making changes to the files in /etc/airtime.

    Any ideas?
  • 4 Comments sorted by
  • Ed,

    This is the first time I've heard about this problem. What happens if you do

    sudo apt-get purge php-pear
    sudo apt-get install php-pear


    and then try those two pear commands again?
    Airtime Pro Hosting: http://airtime.pro
  • Hi Martin,

    Indeed an odd error. I searched and couldn't find much except with people running a windows-based PEAR install. That pointed to something off with PEAR so I tried a remove (didn't know about purge) but that didn't help.

    I just tried what you said and it reported if couldn't delete /usr/share/php as it wasn't empty so I manually moved the folder, reinstalled php-pear and it seemed to work (although, there are some warnings). Here's the output:

    Quote:
    ep@tower2:/usr/share$ sudo mv php php.fuct

    ep@tower2:/usr/share$ sudo apt-get install php-pear
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Suggested packages:
    php5-dev
    The following NEW packages will be installed:
    php-pear
    0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
    Need to get 0B/354kB of archives.
    After this operation, 2,658kB of additional disk space will be used.
    Selecting previously deselected package php-pear.
    (Reading database ... 187781 files and directories currently installed.)
    Unpacking php-pear (from .../php-pear_5.3.2-1ubuntu4.7_all.deb) ...
    Setting up php-pear (5.3.2-1ubuntu4.7) ...

    ep@tower2:/usr/share$ sudo pear channel-discover pear.phing.info
    Adding Channel "pear.phing.info" succeeded
    Discovery of channel "pear.phing.info" succeeded

    ep@tower2:/usr/share$ sudo pear install phing/phing-2.4.2
    Unknown remote channel: pear.phpunit.de
    WARNING: "pear/PEAR_PackageFileManager" is deprecated in favor of "pear/PEAR_PackageFileManager2"
    Did not download optional dependencies: phing/phingdocs, pear/VersionControl_SVN, channel://pear.phpunit.de/PHPUnit, pear/PhpDocumentor, pecl/Xdebug, pear/PEAR_PackageFileManager, use --alldeps to download automatically
    phing/phing can optionally use package "phing/phingdocs" (version >= 2.4.2)
    phing/phing can optionally use package "pear/VersionControl_SVN" (version >= 0.3.2)
    phing/phing can optionally use package "channel://pear.phpunit.de/PHPUnit" (version >= 3.4.0)
    phing/phing can optionally use package "pear/PhpDocumentor" (version >= 1.4.0)
    phing/phing can optionally use package "pecl/Xdebug" (version >= 2.0.5)
    phing/phing can optionally use package "pear/PEAR_PackageFileManager" (version >= 1.5.2)
    downloading phing-2.4.2.tgz ...
    Starting to download phing-2.4.2.tgz (369,282 bytes)
    ............................................................ ................done: 369,282 bytes
    install ok: channel://pear.phing.info/phing-2.4.2


    Thank you for the help. I hope to get things up and running so my schedulers can start testing ASAP.
  • Vote Up0Vote Down VerheekVerheek
    Posts: 158Member
    I also had this problem

    Quote:
    $sudo pear install phing/phing-2.4.2
    No releases available for package "pear.phing.info/phing"
    install failed


    and did the following:

    sudo pear uninstall phing/phing-2.4.2
    sudo pear channel-discover pear.phing.info
    sudo pear install phing/phing-2.4.2

    The first line may not be needed.

    Quote:
    Unknown remote channel: pear.phpunit.de
    WARNING: "pear/PEAR_PackageFileManager" is deprecated in favor of "pear/PEAR_PackageFileManager2"
    Did not download optional dependencies: phing/phingdocs, pear/VersionControl_SVN, channel://pear.phpunit.de/PHPUnit, pear/PhpDocumentor, pecl/Xdebug, pear/PEAR_PackageFileManager, use --alldeps to download automatically
    phing/phing can optionally use package "phing/phingdocs" (version >= 2.4.2)
    phing/phing can optionally use package "pear/VersionControl_SVN" (version >= 0.3.2)
    phing/phing can optionally use package "channel://pear.phpunit.de/PHPUnit" (version >= 3.4.0)
    phing/phing can optionally use package "pear/PhpDocumentor" (version >= 1.4.0)
    phing/phing can optionally use package "pecl/Xdebug" (version >= 2.0.5)
    phing/phing can optionally use package "pear/PEAR_PackageFileManager" (version >= 1.5.2)
    downloading phing-2.4.2.tgz ...
    Starting to download phing-2.4.2.tgz (369,282 bytes)
    .................done: 369,282 bytes
    install ok: channel://pear.phing.info/phing-2.4.2


    Jeremy
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    This seems to happen when phing is already installed. After doing the purge step mentioned above:

    $ sudo apt-get purge php-pear

    try this:

    $ sudo rm -r /usr/share/php/.channels
    $ sudo rm -r /usr/share/php/.registry

    $ sudo apt-get install php-pear
    $ sudo pear channel-discover pear.phing.info
    $ sudo pear install phing/phing-2.4.2

    This fixed it for me on Ubuntu Lucid.