Skip to content

ArchLinux 上安装, libphpx.so 拷贝位置错误 #5

@ipengxh

Description

@ipengxh

在 ArchLinux 上执行:

bruce@Arch ~/s/PHP-X> sudo make install
[100%] Built target phpx
Install the project...
-- Install configuration: "Release"
Are you run command using root user?
-- Up-to-date: /usr/local/lib/libphpx.so
-- Up-to-date: /usr/local/include/phpx.h
-- Up-to-date: /usr/local/include/phpx_embed.h

拷贝的目标地址是 /usr/local/lib/libphpx.so
设置好 php.ini 后,执行 php -m,报警告信息:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/cpp_ext.so' - libphpx.so: cannot open shared object file: No such file or directory in Unknown on line 0

执行:

sudo cp /usr/local/lib/libphpx.so /usr/lib/

即可解决。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions