[英]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.