Opened 8 years ago

Closed 8 years ago

#36859 closed defect (invalid)

can't install php54-memcached; it uses libmemcached 0.34

Reported by: asuth@… Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: libmemcached

Description (last modified by ryandesign (Ryan Schmidt))

I can't install php54-memcached.

$ sudo port install php54-memcached
--->  Computing dependencies for php54-memcached
--->  Dependencies to be installed: libmemcached
--->  Fetching archive for libmemcached
--->  Attempting to fetch libmemcached-0.34_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/libmemcached
--->  Attempting to fetch libmemcached-0.34_0.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/libmemcached
--->  Attempting to fetch libmemcached-0.34_0.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/libmemcached
--->  Fetching distfiles for libmemcached
--->  Verifying checksum(s) for libmemcached
--->  Extracting libmemcached
--->  Configuring libmemcached
--->  Building libmemcached
...

And it fails with:

:info:configure checking for libmemcached location... configure: error: Can't find libmemcached 1.0.x headers under "/opt/local"
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php-memcached/php54-memcached/work/memcached-2.1.0" && ./configure --prefix=/opt/local --with-php-config=/opt/local/bin/php-config54 --with-libmemcached-dir=/opt/local --with-zlib-dir=/opt/local 
:info:configure Exit code: 1
:error:configure org.macports.configure for port php54-memcached returned: configure failure: command execution failed

There appear to be two versions of libmemcached:

$ port search libmemcached
libmemcached @0.34 (devel)
    libmemcached is a C and C++ client library to the memcached server

libmemcached @1.0.10 (devel)
    libmemcached is a C and C++ client library to the memcached server

And it's using the wrong one?

Change History (3)

comment:1 Changed 8 years ago by ryandesign (Ryan Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to ryandesign@…

We only have libmemcached 1.0.10 in MacPorts. Do you perhaps have a local portfile of libmemcached 0.34?

comment:2 Changed 8 years ago by asuth@…

ackkk; you're right, you're awesome. I discovered a memcached thing from 2 years ago i had. oh well, thanks a lot.

comment:3 Changed 8 years ago by ryandesign (Ryan Schmidt)

Resolution: invalid
Status: newclosed

Great! Glad we figured that out. :)

Note: See TracTickets for help on using tickets.