|
|
Re: "Selected location doesn't refer to a valid PHP executable", It does [message #552242 is a reply to message #551677] |
Wed, 11 August 2010 12:07 |
Toshihiro Izumi Messages: 360 Registered: July 2009 Location: Japan |
Senior Member |
|
|
>and Eclipse (Helios i think) Build id: 20100218-1602
'Build id: 20100218-1602' indicates eclipse-php-galileo-SR2.
>It is an PHP-5.3 executable, and it seems PDT lacks support for 5.3 (e.g.: i get syntax-errors when using namespaces).
Preferences > PHP > PHP Interpreter
or
Project Properties > PHP Interpreter
?
>!MESSAGE Can't determine version of the PHP executable
This means that pdt could not get output of 'php -v' command.
When you typed '/usr/bin/php' in 'Executable path' textbox, pdt executes '/usr/bin/php -v' command internally, and gets output of it, such as
>PHP 5.3.2-1ubuntu4.2 with Suhosin-Patch (cli) (built: May 13 2010 20:01:00)
However, on your machine, pdt could not get it. I don't know why...
I don't have such problem on Ubuntu 10.04 + php5-cli + php5-xdebug + sun-java6-jre + eclipse-php-galileo-SR2 package downloaded from eclipse.org.
I can get the output on the command line as you described.
>PHP 5.3.2-1ubuntu4.2 with Suhosin-Patch (cli) (built: May 13 2010 20:01:00)
>Copyright (c) 1997-2009 The PHP Group
>Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
> with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans
And I can set '/usr/bin/php' to Executable path with no problem.
(I don't mean above packages are recommended.)
Refer to this, it may be not your case though.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=281578#c6
|
|
|
Powered by
FUDForum. Page generated in 0.01772 seconds