Ubuntu phpstorm:未指定解释器或有效 [英] Ubuntu phpstorm : Interpreter is not specified or valid

查看:276
本文介绍了Ubuntu phpstorm:未指定解释器或有效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Ubuntu上的phpstorm上配置调试器.我可以轻松地在Windows上正确设置解释器的路径,例如C:xampp/php.但是linux对于解释器应该有不同的路径.

I am configuring debugger on phpstorm on Ubuntu. I easily could set interpreter's path like C:xampp/php properly on Windows. But linux should have different path for interpreter.

我在这个网站上和Google上都进行了很多搜索,但没有得到答案.什么是php的解释器路径,以便phpstorm能够识别它,因此我可以进行调试?缺少任何东西吗?

I searched on this site a lot and on google too but could not get the answer. What should be php's interpreter path so that phpstorm recognizes it and thus i can do debugging? Anything missing??

谢谢.

推荐答案

我认为存在误解. include path应该指向包含PHP文件而不是PHP解释器的文件夹!

I think there's been a misunderstanding. include path should point to a folder containing PHP files, not PHP interpreter!

您需要在此处设置地址:

Here's where you need to set the address:

正如另一个答案指出的那样,您可以使用which phpwhich php5找到PHP解释器的路径.然后,您需要在编号为2的红色框中输入路径.

As the other answer pointed out, you can find the path to your PHP interpreter using which php or which php5. Then you need to enter the path in the red box numbered 2.

这篇关于Ubuntu phpstorm:未指定解释器或有效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆