我正在尝试在共享的Web主机上安装cmark PECL module。 我没有sudo特权。
我能够将cmark编译并安装到我的主目录中。 libcmark.so文件位于/ home / XXX / progs / lib中。 cmark.h文件(和其他头文件)在/ home / XXX / progs / include中。
我能够运行phpize。我现在正尝试使用以下命令运行./configure
:
./configure --prefix="/home/XXX/progs" --with-php-config=/usr/local/php73/bin/php-config LDFLAGS="-L/home/XXX/progs/lib/" CPPFLAGS="-I/home/XXX/progs/include/"
这样做时,我会收到一条错误消息。
checking for libcmark... checking for cmark_markdown_to_html in -lcmark... yes
checking for libcmark headers... checking for cmark files in default path... not found
configure: error: Please reinstall the cmark distribution
cmark编译正确,我能够获得配置脚本来找到lib目录,但是我无法获得配置脚本来找到标题。
我需要做什么?
答案 0 :(得分:0)
我似乎已经找到了解决方案。我编辑了配置脚本。有一行显示SEARCH_PATH="/usr/local /usr"
。我将行更改为读取SEARCH_PATH="/usr/local /usr /home/XXX/progs"
。更改使它能够满足要求。