Skip to content

pickle.phar installation of memcached doesn't work anymore as of PHP 8.1.20 and PHP 8.2.7 #541

@proligde

Description

@proligde

How to reproduce

  • Build your own docker, based on the official php-fpm container image
  • add prerequisite packages like apt-get install libmemcached-dev
  • install phar
  • install memcached like so: pickle.phar install memcached (which currently is memcached-3.2.0)

Expected result (works perfectly fine with PHP 8.1.19 and PHP 8.2.6)
The package gets installed successfully

Actual result
I get the error: #13 2.516 2: checking for libmemcached location... configure: error: memcached support requires libmemcached. Use --with-libmemcached-dir=<DIR> to specify the prefix where libmemcached headers and library are located

I assume this message points into a wrong direction, though. Even if I specify the location (which has never been necessary), using an options-file, the installation process fails, stating there's no libmemcached.h headerfile in the defined directory, but it actually is.

I checked the changelog of PHP 8.1.20 and found an info "Phar: Fixed bug GH-11099 (Generating phar.php during cross-compile can't be done)." that looked like it might be related, but that's where my knowledge ends :-).

Any help or workaround suggestion is greatly appreciated – Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions