Announcement

Collapse
No announcement yet.

PHP selector and libgmp.so

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP selector and libgmp.so

    Not found

  • #2
    Hi,

    I just install php-selector and install completed without any error. But it seem php binary give error:

    /usr/bin/php: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory

    this happen with all php version. Binary itself is not seem that need libgmp.so.3:

    ldd /usr/bin/php
    linux-vdso.so.1 => (0x00007fff2a7fe000)
    libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000003330c00000)
    libexslt.so.0 => /opt/xslt/lib/libexslt.so.0 (0x00007fdcdfc9a000)
    libdl.so.2 => /lib64/libdl.so.2 (0x000000332e800000)
    libm.so.6 => /lib64/libm.so.6 (0x000000332f000000)
    libexpat.so.0 => /lib64/libexpat.so.0 (0x0000003331400000)
    libtidy-0.99.so.0 => /opt/tidy/lib/libtidy-0.99.so.0 (0x00007fdcdfa3d000)
    libaspell.so.15 => /usr/lib64/libaspell.so.15 (0x0000003336800000)
    libpspell.so.15 => /usr/lib64/libpspell.so.15 (0x0000003336c00000)
    libmcrypt.so.4 => /opt/libmcrypt/lib/libmcrypt.so.4 (0x00007fdcdf80b000)
    libltdl.so.3 => /usr/lib64/libltdl.so.3 (0x0000003337400000)
    libcrypto.so.6 => /lib64/libcrypto.so.6 (0x0000003334c00000)
    libssl.so.6 => /lib64/libssl.so.6 (0x0000003337000000)
    libpam.so.0 => /lib64/libpam.so.0 (0x0000003334800000)
    libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x0000003331800000)
    libX11.so.6 => /usr/lib64/libX11.so.6 (0x0000003334400000)
    libXpm.so.4 => /usr/lib64/libXpm.so.4 (0x0000003333400000)
    libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x0000003336000000)
    libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x0000003332000000)
    libbz2.so.1 => /usr/lib64/libbz2.so.1 (0x0000003335000000)
    libpcre.so.0 => /opt/pcre/lib/libpcre.so.0 (0x00007fdcdf5cb000)
    librt.so.1 => /lib64/librt.so.1 (0x000000332f800000)
    libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003330400000)
    libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2 (0x0000003336400000)
    libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x0000003335800000)
    libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x0000003335c00000)
    libcom_err.so.2 => /lib64/libcom_err.so.2 (0x0000003333800000)
    libcurl.so.4 => /opt/curlssl/lib/libcurl.so.4 (0x00007fdcdf371000)
    libidn.so.11 => /usr/lib64/libidn.so.11 (0x0000003333c00000)
    libmysqlclient.so.15 => /usr/lib64/mysql/libmysqlclient.so.15 (0x0000003757800000)
    libxslt.so.1 => /opt/xslt/lib/libxslt.so.1 (0x00007fdcdf137000)
    libxml2.so.2 => /opt/xml2/lib/libxml2.so.2 (0x00007fdcdedf4000)
    libc.so.6 => /lib64/libc.so.6 (0x000000332e400000)
    libresolv.so.2 => /lib64/libresolv.so.2 (0x0000003332800000)
    libz.so.1 => /usr/lib64/libz.so.1 (0x000000332f400000)
    /lib64/ld-linux-x86-64.so.2 (0x000000332e000000)
    libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003331000000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003330800000)
    libaudit.so.0 => /lib64/libaudit.so.0 (0x0000003332400000)
    libXau.so.6 => /usr/lib64/libXau.so.6 (0x0000003331c00000)
    libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x0000003334000000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x000000332ec00000)
    libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 (0x0000003335400000)
    libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x0000003333000000)
    libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003330000000)
    libsepol.so.1 => /lib64/libsepol.so.1 (0x000000332fc00000)

    and libgmp installed in system:

    /usr/lib/libgmp.so.3
    /usr/lib/libgmp.so.3.3.3
    /usr/lib/sse2/libgmp.so.3
    /usr/lib/sse2/libgmp.so.3.3.3
    /usr/lib64/libgmp.so.3
    /usr/lib64/libgmp.so.3.3.3

    System is: 2.6.32-379.5.1.lve1.1.9.6.3.el5h.x86_64

    BTW. I just check php selector binaries:

    ldd /opt/alt/php54/usr/bin/php
    linux-vdso.so.1 => (0x00007fff4ca6b000)
    libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000003330c00000)
    libexpat.so.0 => /lib64/libexpat.so.0 (0x0000003331400000)
    libmm.so.14 => /usr/lib64/libmm.so.14 (0x00007fae433bc000)
    libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003331000000)
    libgmp.so.3 => /usr/lib64/libgmp.so.3 (0x00007fae43183000)
    libbz2.so.1 => /usr/lib64/libbz2.so.1 (0x0000003335000000)
    libz.so.1 => /lib64/libz.so.1 (0x000000332f400000)
    libpcre.so.0 => /lib64/libpcre.so.0 (0x000000332e800000)
    librt.so.1 => /lib64/librt.so.1 (0x000000332f800000)
    libm.so.6 => /lib64/libm.so.6 (0x000000332f000000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007fae42f7d000)
    libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003330400000)
    libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x0000003b5fa00000)
    libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2 (0x0000003336400000)
    libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x0000003335800000)
    libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x0000003335c00000)
    libcom_err.so.2 => /lib64/libcom_err.so.2 (0x0000003333800000)
    libssl.so.6 => /lib64/libssl.so.6 (0x0000003337000000)
    libcrypto.so.6 => /lib64/libcrypto.so.6 (0x0000003334c00000)
    libc.so.6 => /lib64/libc.so.6 (0x000000332e400000)
    libresolv.so.2 => /lib64/libresolv.so.2 (0x0000003332800000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003330800000)
    /lib64/ld-linux-x86-64.so.2 (0x000000332e000000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x000000332ec00000)
    libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 (0x0000003335400000)
    libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x0000003333000000)
    libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003330000000)
    libsepol.so.1 => /lib64/libsepol.so.1 (0x000000332fc00000)

    Thanks
    Dima

    Comment


    • #3
      Hello Dima!

      Could you please execute the following commands:
      cagefsctl --addrpm libc-client-2007e.x86_64 unixODBC-libs.x86_64 mhash.x86_64
      cagefsctl --addrpm libxml2.x86_64 tcp_wrappers.x86_64 compat-libstdc++.x86_64
      cagefsctl --addrpm libmcrypt.x86_64 recode.x86_64 libxslt.x86_64
      cagefsctl --addrpm libtidy.x86_64 libicu.x86_64 tmpwatch.x86_64 net-snmp.x86_64
      cagefsctl --addrpm libgpg-error.x86_64 postgresql-libs.x86_64 libpng.x86_64
      cagefsctl --addrpm gmp.x86_64 pam.x86_64 bzip2-libs.x86_64 cracklib.x86_64 ncurses.x86_64
      cagefsctl --addrpm libidn.x86_64 libc-client-2004g.x86_64 db4.x86_64
      cagefsctl --addrpm ncurses-libs.x86_64 openldap.x86_64 libXpm.x86_64 libgcrypt.x86_64
      cagefsctl --addrpm cyrus-sasl-lib.x86_64 unixODBC.x86_64 zlib.x86_64
      cagefsctl --addrpm openssl.x86_64 net-snmp-libs.x86_64 alt-libicu.x86_64 enchant.x86_64
      cagefsctl --update

      These commands will add all needed libraries to CageFS.

      Comment


      • #4
        For whatever reason, I had to use this specific method as well to get selector to work, as llibpcre was throwing a fit.
        Please do add this to the instructions for installing selector, as it appears this is still necessary to do.

        Comment


        • #5
          Hi Tom!

          "cagefsctl --addrpm" commands above have nothing to do with libpcre.
          The only command that can affect in your case is "cagefsctl --update".
          Remember: you should update cagefs-skeleton after update of system packages or upon each change of system configuration.

          And I guess that you use outdated version of CageFS.
          /lib, lib64, /usr/lib, /usr/lib64 directories are mounted (not copied) to cagefs-skeleton in latest releases of CageFS, so libraries in real system and in CageFS are the same.
          Lates CageFS version is 5.0-5.

          Comment


          • #6
            > "cagefsctl --addrpm" commands above have nothing to do with libpcre.

            Then exactly why did it solve the problem? Hmm?

            > And I guess that you use outdated version of CageFS.

            Nope, was as updated as can be, which is what

            > $ yum update cagefs lvemanager

            does... Updates cagefs

            The problem in this case was exactly the same problem as the person starting the topic mentioned. Just with a different library. For whatever reason, cagefs refused to acknowledge the existence of libpcre when any but the default (system) php was used:

            > error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory

            I had updated the CageFS skeleton, I had repeatedly rebuilt the apache / php system, the only thing that worked was the se t of commands listed by you. Something in those was missing from CageFS

            Comment


            • #7
              Did you try
              cagefsctl --force-update
              ?

              cagefsctl --update
              does not perform update when 24 hours have not been expired since last update.

              Comment


              • #8
                I am well aware of how to read error messages, thanks

                Comment


                • #9
                  Tom,
                  are you able to reproduce the issue?

                  Could you please submit a ticket at helpdesk.cloudlinux.com ?

                  Thank you.

                  Comment

                  Working...
                  X