我正在尝试将
PHP 5的副本安装到学校计算机上的主目录中.问题是每当我尝试时,它都会抱怨我的libxml2副本太过时了.
有没有办法在没有升级libxml2的情况下安装它,因为我没有升级权限.
有什么建议?
或者,您可以在主目录中安装libxml并传递configure您安装它的位置,即
原文链接:https://www.f2er.com/php/135705.html--with-libxml-dir=<your local install>
安装libxml时,只需使用configure的–prefix =选项即表示您不想进行系统安装.
假设你编译了cli客户端(并且当前用户和apache用户的lib搜索路径是相同的),你检查是否链接了正确的lib:
# ldd /usr/bin/PHP linux-vdso.so.1 => (0x00007ffff71ff000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00000030f3c00000) libedit.so.0 => /usr/lib64/libedit.so.0 (0x00000030e8000000) libncurses.so.5 => /lib64/libncurses.so.5 (0x00000030f7400000) libgmp.so.3 => /usr/lib64/libgmp.so.3 (0x00000030e7800000) libbz2.so.1 => /lib64/libbz2.so.1 (0x00000030f7800000) libz.so.1 => /lib64/libz.so.1 (0x00000030e6c00000) libpcre.so.0 => /lib64/libpcre.so.0 (0x00000030f9400000) librt.so.1 => /lib64/librt.so.1 (0x00000030e7000000) libm.so.6 => /lib64/libm.so.6 (0x00000030e5c00000) libdl.so.2 => /lib64/libdl.so.2 (0x00000030e6400000) libnsl.so.1 => /lib64/libnsl.so.1 (0x00000030f6800000) libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00000030f2400000)) libssl.so.10 => /usr/lib64/libssl.so.10 (0x00000030f3000000) libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x00000030eb400000) libc.so.6 => /lib64/libc.so.6 (0x00000030e6000000) libresolv.so.2 => /lib64/libresolv.so.2 (0x00000030e7c00000) libfreebl3.so => /lib64/libfreebl3.so (0x00000030f3800000) libtinfo.so.5 => /lib64/libtinfo.so.5 (0x00000030f7c00000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00000030e6800000) /lib64/ld-linux-x86-64.so.2 (0x00000030e5800000)
libxml列在库列表的中间.