简体   繁体   中英

Enable PHP support in PHPStorm Mavericks

To begin, I am not using MAMP or any LAMP.

I have PHPStorm and I want to add my php installation as an interpreter. When I choose the correct folder: "/usr/local/php5" or "/usr/local/php5/bin" , PHPStorm gives me an error: PHP version: not installed.

However, both via the browser or the command line ( php -i ), both of my php installations are the same and the php.ini location for both is located at:

/usr/local/php5/lib

Why is PHPStorm not recognizing my PHP installation ? What am I missing ?

Edit1:

在此输入图像描述

在终端中运行以下命令,并使用输出路径作为解释器的路径。

which php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM