简体   繁体   English

错误:php.h没有这样的文件或目录

[英]error: php.h no such file or directory

I am working with the following tutorial: http://abhinavsingh.com/blog/2008/12/php-extensions-how-and-why/ 我正在使用以下教程: http//abhinavsingh.com/blog/2008/12/php-extensions-how-and-why/

I did create in a folder the php_sample.h file. 我确实在一个文件夹中创建了php_sample.h文件。 I have an error: php.h no such file or directory. 我有一个错误: php.h no such file or directory. I've installed php and apache using apt-get install. 我已经php and apache using apt-get install.安装了php and apache using apt-get install. SHould i import in my file php.h ? 我应该在我的文件php.h导入? I also don't know where to look for config.m4. 我也不知道在哪里寻找config.m4。 I've searched in usr/lib/php5 but i didn't find it. 我在usr / lib / php5中搜索过但我没找到它。 In usr/local there is no appache folder. usr/local中没有appache文件夹。 Need some tips. 需要一些提示。 Thx! 谢谢! Appreciate 欣赏

I would like to mention that i am working in ubuntu 10.10. 我想提一下,我在ubuntu 10.10工作。 I've tested a simple .php code after adding it in /var/www and it works. 我在/var/www添加它后测试了一个简单的.php code

you need php-dev package. 你需要php-dev包。 php is just binary package while php-dev contains source files. php只是二进制包,而php-dev包含源文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到安装Blitz php.h的错误 - Error installing Blitz php.h not found MongoDB 安装:找不到“php.h”文件#include<php.h></php.h> - MongoDB Install: 'php.h' file not found #include <php.h> 致命错误:在 MacOS 中的 xdebug 上运行 make 时未找到“php.h”文件 - fatal error: 'php.h' file not found when running make on xdebug in MacOS 在 Mac OS Catalina 中安装 imagick 扩展:php_imagick.h:42:10:致命错误:找不到“php.h”文件 - Install imagick extension in Mac OS Catalina : php_imagick.h:42:10: fatal error: 'php.h' file not found 在 MacOs Mojave 上安装 xdebug - 找不到“php.h”文件 - Installing xdebug on MacOs Mojave - 'php.h' file not found 找不到 php-cpp zend/php.h - php-cpp zend/php.h not found 错误:oci.h:没有那个文件或目录 - error: oci.h: No such file or directory 致命错误:ext/standard/php_smart_str.h:安装 yaml 1.3.2 时没有这样的文件或目录 - fatal error: ext/standard/php_smart_str.h: No such file or directory when install yaml 1.3.2 错误:没有这样的文件或目录-PHP - Error: No such file or directory - php 在ubuntu 12.04上安装MongoDB php扩展名:致命错误:Zend / zend_string.h:没有此类文件或目录 - MongoDB php extension install on ubuntu 12.04: fatal error: Zend/zend_string.h: No such file or directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM