LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-17-2013, 03:55 AM   #1
alex170872
LQ Newbie
 
Registered: Oct 2008
Posts: 18

Rep: Reputation: 0
Question Problems installing pear/phpunit on Ubuntu 12.04


I need to install `phpunit` on Ubuntu 12.04. By doing so with the packet manager I get an error when running phpunit

PHP Fatal error: require_once(): Failed opening required 'PHP/CodeCoverage/Filter.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/bin/phpunit on line 38


for which there are solutions, i.e. to install `phpunit` with `pear`.

Following the pear install instructions I download and run `go-pear.phar`, which itself produces an error

PHP Notice: Uninitialized string offset: 0 in phar:///home/alexander/opt/src/go-pear.phar/Console/Getopt.php on line 145

Any suggestions how to proceed from here?
 
Old 04-17-2013, 06:21 PM   #2
warez74
LQ Newbie
 
Registered: Apr 2013
Posts: 27

Rep: Reputation: 0
Hi,

check out this page:

http://support.godaddy.com/help/arti...ux-web-hosting

Then, use the phpinfo() to see which php .ini file has been used.

Then open php.ini or php5.in and check the include paths. Add the PEAR to the php include path.

Hope this helps.

Regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install PHPUnit in Fedora Core 12 admod Programming 4 12-22-2010 02:57 AM
Installing PEAR DB on Ubuntu Boffy Linux - Server 1 08-24-2008 04:31 AM
Installing PEAR on a system which is configured '--without pear' swiftguy121 Linux - Software 1 07-10-2007 07:45 PM
install Pear Net/SMTP, Pear Log and Pear DB modules cccc Debian 0 02-26-2007 08:33 AM
Installing PEAR on Mandrake 9.2 Moebius01 Linux - Newbie 0 11-24-2003 08:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration