It’s really such a headache when we migrated to Ubuntu 14.04 and installed phing. Lots of headaches! But anyway, here we go:
First you need to install pear first by doing the following command on Terminal:
sudo apt-get install php-pear
Then add the pear channel:
sudo pear channel-discover pear.phing.info
To install Phing:
sudo pear install -Z phing/phing
The -Z option will download .tar file instead of the damn .tgz (which always throws this error):
could not extract the package.xml file from
Download of "phing/phing" succeeded, but it is not a valid package archive
Error: cannot download "phing/phing"
Hopefully it works on your end. Please comment below if it worked.