LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-02-2014, 11:50 PM   #1
jojanmpaul
Member
 
Registered: Sep 2012
Location: Bangalore
Posts: 80

Rep: Reputation: Disabled
which PHPUnit /usr/bin/which: no PHPUnit in


Hello,

which PHPUnit command not showing the path of PHPUnit,

which php
/usr/bin/php

which pear
/usr/bin/pear

which PHPUnit
/usr/bin/which: no PHPUnit in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

ls /usr/share/pear/PHPUnit
Assert.php RepeatedTest.php TestCase.php TestFailure.php TestResult.php
GUI Skeleton.php TestDecorator.php TestListener.php TestSuite.php

pear list
PHPUnit 1.3.2 stable

php -v
PHP 5.2.10 (cli) (built: Nov 13 2009 11:44:05)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

/etc/php.ini
include_path = "./usr/share/pear"

Please help me to get rid of this.

Kind regards,
Jojan Paul
 
Old 04-04-2014, 01:38 AM   #2
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 509

Rep: Reputation: 203Reputation: 203Reputation: 203
Hi,

It's not quite clear what you are trying to do. The "which" command shows the location of commands, not directories.

Based on your inclusion of the php.ini include_path, I'm guessing the real problem might be that you can't load PHPUnit from one of your PHP scripts? If so, it looks like the include_path might be wrong. The value shown ("./usr/share/pear") is a relative path, which will only work if the PHP executable is running from the root directory. The default path should include "." and the path to PEAR, so just commenting out this stanza should solve the problem. If not, try setting it to ".:/usr/share/pear" (note the colon). See http://php.net/include-path for more details.

Regards,

Clifford
 
  


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
Problems installing pear/phpunit on Ubuntu 12.04 alex170872 Linux - Software 1 04-17-2013 06:21 PM
LXer: PHPUnit 3.7 and related tools arrive LXer Syndicated Linux News 0 09-20-2012 02:20 AM
Error: Cannot find 'ssh-keygen' in '/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin' venu.navat Linux - Software 3 03-08-2012 04:00 AM
How to install PHPUnit in Fedora Core 12 admod Programming 4 12-22-2010 02:57 AM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM

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

All times are GMT -5. The time now is 10:52 PM.

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