Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install a package via PEAR, PHPUnit to be precise. However, the server I'm using is not connected to the Internet.

I managed to find a .tgz of PHPUnit in its PEAR repository at : PEAR PHPunit-3.7
(although it's not the latest version, 3.8)

When I tried to put this on the server, I ran pear install PHPUnit-3.7.22.tgz but I got:

Unknown channel ""
Parsing of package.xml from file "/var/tmp/pearUdSQzm/package.xml" failed
install failed

So what do I need to do instead?

share|improve this question

migrated from Jul 19 '13 at 17:28

This question came from our site for professional and enthusiast programmers.

Apart from downloading the packages, you need to download all dependencies and install them first.

Before you can do that, you need to register the channels. For each channel you have packages from, download /channel.xml and use pear add channel.xml to register it.

Then you can install the package .tgz file without problems.

share|improve this answer

Use the full path of the file

For Example :

pear install /path/to/PHPUnit-3.7.22.tgz
share|improve this answer
Parsing of package.xml from file "/var/tmp/pearS8fPmM/package.xml" failed install failed. At least it didn't try to connect to the Internet this time. – CJxD Jul 19 '13 at 15:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .