简体   繁体   中英

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/

I did create in a folder the php_sample.h file. I have an error: php.h no such file or directory. I've installed php and apache using apt-get install. SHould i import in my file php.h ? I also don't know where to look for config.m4. I've searched in usr/lib/php5 but i didn't find it. In usr/local there is no appache folder. Need some tips. Thx! Appreciate

I would like to mention that i am working in ubuntu 10.10. I've tested a simple .php code after adding it in /var/www and it works.

you need php-dev package. php is just binary package while php-dev contains source files.

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