Menu

Admin/Components Compression Library

Help
Nap
2020-07-15
2020-07-15
  • Nap

    Nap - 2020-07-15

    [MacOS Catalina 10.15.3]

    When I enter Admin -> Components, I get a warning message: Admin action failed: without a PHP compression library extension it is impossible to retrieve a package from the update server. Please enable before downloading zip (.zip file) extension.

    Since I'm not sure exactly what's missing, I installed brew install zlib and then built the wrapper from the php-7.3.11 source using:

        cd ./ext/zip
        /usr/local/bin/phpize
        export CC=/usr/local/bin/gcc-10
        export CXX=/usr/local/bin/g++-10
        ./configure --with-php-config=/usr/local/bin/php-config --with-zlib-dir=/usr/local/Cellar/zlib/1.2.11/
        make
        cd modules
        sudo cp zip.so /usr/local/php/
    

    I then added extension=/usr/local/php/zip.so, the ZLIB extension, to the php.ini and restarted the Apache server.

    However, the warning/error didn't go away when I returned to the page. Did I install the correct library (homebrew zlib 1.2.11)? Or what else is missing?

    (Sorry for the barrage of questions today.)

     
  • Nap

    Nap - 2020-07-15

    Thanks Stephane!

     
  • Nap

    Nap - 2020-07-15

    Ok, so what I needed to do was to build the zlib php extension for this, not zip.

    cd ./ext/zlib
    /usr/local/bin/phpize
    export CC=/usr/local/bin/gcc-10
    export CXX=/usr/local/bin/g++-10
    ./configure --with-php-config=/usr/local/bin/php-config --with-zlib-dir=/usr/local/Cellar/zlib/1.2.11/
    make
    cd modules
    sudo cp zlib.so /usr/local/php/
    

    In order to build this, brew isntall zlib is still required (not libzip).

     
    • Stéphane Aulery

      No, you need zip extension, not zlib extension.

       

Log in to post a comment.