Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 "pear.phpunit.de"
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 stackoverflow.com Jul 19 '13 at 17:28

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

add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.