Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » "Selected location doesn't refer to a valid PHP executable", It does(PDT does not accept a local PHP executable although the same user can execute it.)
"Selected location doesn't refer to a valid PHP executable", It does [message #549828] Wed, 28 July 2010 07:38 Go to next message
Gerrit A. is currently offline Gerrit A.
Messages: 2
Registered: February 2010
Junior Member
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 #551677 is a reply to message #549828] Mon, 09 August 2010 07:01 Go to previous messageGo to next message
Gerrit A. is currently offline Gerrit A.
Messages: 2
Registered: February 2010
Junior Member
I think i have found the issue:

Quote:

...
!ENTRY org.eclipse.php.debug.core 4 10001 2010-08-09 08:45:31.522
!MESSAGE Can't determine version of the PHP executable



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).

Does anybody know when PDT starts supporting 5.3 ?

On google i found out that PDT-2.1 should suppoprt PHP-5.3,
but i got an helios installation with PDT-2.1.1, so i should have PHP-5.3 support.
Whats wrong here?


(btw: Is it me or why is there no edit-button for posts?)
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 Go to previous message
Toshihiro Izumi is currently offline Toshihiro Izumi
Messages: 353
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
Previous Topic:The icon that signs a syntax error is not showed
Next Topic:Code Formatting Problem with Control Statements.
Goto Forum:
  


Current Time: Fri Oct 31 04:12:28 GMT 2014

Powered by FUDForum. Page generated in 0.02843 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software