"Selected location doesn't refer to a valid PHP executable", It does [message #549828] |
Wed, 28 July 2010 03:38  |
Eclipse User |
|
|
|
Hello,
First of all:
I'm using Ubuntu 10.04,
Java 1.6.0_20
and Eclipse (Helios i think) Build id: 20100218-1602
When i go into:
Window > Preferences > PHP > PHP Executables > Add... > Name: "local" > Executable path: "/usr/bin/php"
It shows me on the top the following: "Selected location doesn't refer to a valid PHP executable".
But when i open up a shell and executing the executable:
(The same user that starts eclipse, so its not a permission thing)
gerrit@azubi-desktop:~$ /usr/bin/php --version
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
gerrit@azubi-desktop:~$
So the path actually does refer to a valid executable, why isn't PDT recognising this?
I'm thankful for any help i could get.
|
|
|
|
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 08:07  |
Eclipse User |
|
|
|
>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.04216 seconds