douxian5076 2015-12-20 04:36
浏览 249

编译php7.0.1时找不到zipconf.h

I installed libzip-1.0.1, and when I am on make phase for installing php, it shows an error said zip.h can not find zipconf.h. Actually, libzip-1.0.1 has zipconf.h, but is not in the same directory with zip.h. It is under /libzip-1.0.1/lib/ziplib/include.

So i try to copy zipconf.h to libzip-1.0.1/include where zip.h is, or alter the zip.h file. In the zip.h, i change #include < zipconf.h > to #include < DIR/zipconf.h >, DIR is the path of zipconf.h.

But either of them help, and after i copy zipconf.h or alter zip.h file, the other error "can not find zip.h" comes up during the make phase.

How can i fix this, and compile php with libzip. I use the flag --with-libzip=DIR when confgure

  • 写回答

1条回答 默认 最新

  • dongtao9158 2015-12-20 09:06
    关注

    When running the configure you should use the flag "--with-libzip=" Then during compilation it should know where all your libzip files are.

    评论

报告相同问题?

悬赏问题

  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 个人网站被恶意大量访问,怎么办
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制