【问题标题】:Installing cmark PECL module without root在没有root的情况下安装cmark PECL模块
【发布时间】:2019-10-16 08:02:50
【问题描述】:

我正在尝试在共享网络主机上安装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目录就好了,但是我无法获取配置脚本找到头文件。

我需要做什么?

【问题讨论】:

    标签: php linux configure pecl php-7.3


    【解决方案1】:

    我似乎找到了解决办法。我编辑了配置脚本。有一行写着SEARCH_PATH="/usr/local /usr"。我将行改为SEARCH_PATH="/usr/local /usr /home/XXX/progs"。这种变化使它能够遵守。

    【讨论】:

      猜你喜欢
      • 2011-12-29
      • 1970-01-01
      • 2011-04-13
      • 2011-08-15
      • 2011-11-19
      • 2016-02-01
      • 2011-12-26
      • 2018-05-30
      • 1970-01-01
      相关资源
      最近更新 更多