Author Topic: Need memcached module for php7!  (Read 1552 times)

Igor

  • Full Member
  • ***
  • Posts: 132
  • Karma: +16/-0
Need memcached module for php7!
« on: March 11, 2026, 09:11:30 pm »
Hi All!

First of all, I'd like to contact Paul Smedley.
I'd like to ask him to compile the memcached module for PHP7.
DLL required to operation:
git clone https://git.launchpad.net/~lwhay/libmemcached/+git/trunk
The module itself is in attache.
« Last Edit: March 13, 2026, 04:35:13 pm by Igor »

Pete

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +17/-0
Re: Need memcached module for php7!
« Reply #1 on: March 13, 2026, 08:09:27 pm »
Hi Igor

Based on Pauls recent post - see https://www.os2world.com/forum/index.php/topic,4057.0.html - I suspect you may have to hope that Paul reads your post and feels up to looking into your request.

Maybe 1 of the (few) other porters/coders could help...


Regards

Pete



Igor

  • Full Member
  • ***
  • Posts: 132
  • Karma: +16/-0
Re: Need memcached module for php7!
« Reply #2 on: March 13, 2026, 08:43:40 pm »
Hi Pete,

Too bad!
I could probably port it myself, but I ran into problems setting up environment.
I'm guessing Paul known how to make it compile.
It's a shame he declined.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5736
  • Karma: +150/-1
Re: Need memcached module for php7!
« Reply #3 on: March 13, 2026, 09:56:39 pm »
Does it depend on having PHP installed? I'd guess so

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2559
  • Karma: +207/-0
Re: Need memcached module for php7!
« Reply #4 on: March 13, 2026, 11:10:34 pm »
I'll try look at this, once Igor confirms he's looking for a module for PHP 7.4. Modules aren't generally compatible between PHP versions...

You'd also stand a higher chance of gaining my interest if you provided a pre-built library for libmemcache.
« Last Edit: March 13, 2026, 11:12:24 pm by Paul Smedley »

Igor

  • Full Member
  • ***
  • Posts: 132
  • Karma: +16/-0
Re: Need memcached module for php7!
« Reply #5 on: March 19, 2026, 07:28:15 pm »
Hi Paul!

I'll try look at this, once Igor confirms he's looking for a module for PHP 7.4. Modules aren't generally compatible between PHP versions...

You'd also stand a higher chance of gaining my interest if you provided a pre-built library for libmemcache.

I launched
Code: [Select]
git clone https://git.launchpad.net/~lwhay/libmemcached/+git/trunk
After I run
Code: [Select]
# ./bootstrap.sh autoreconf
I got the following response:

Code: [Select]
`C:\USR\BIN/libtoolize --copy --install --force'
./bootstrap.sh: строка 1125: C:USRBIN/libtoolize: No such file or directory
./bootstrap.sh:1106: Cannot execute C:\USR\BIN/libtoolize


I think there is a mistake in slashes, but I don't knownhow to fix it the script.
I use php 7.4.32
« Last Edit: March 19, 2026, 07:33:14 pm by Igor »

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5736
  • Karma: +150/-1
Re: Need memcached module for php7!
« Reply #6 on: March 19, 2026, 09:37:42 pm »
That error with the slashes is usually a shell problem. Is MAKESHELL set properly, set MAKESHELL=sh.exe.
I often just run autoreconf -sfi instead of bootstrap.sh, which here needed bash and couldn't find autoreconf.
Quickly trying to build it failed due to lack of spinx. I don't have php either

Igor

  • Full Member
  • ***
  • Posts: 132
  • Karma: +16/-0
Re: Need memcached module for php7!
« Reply #7 on: March 19, 2026, 10:54:58 pm »
Hi Dave!

In my config.sys:
Code: [Select]
SET MAKESHELL=sh.exe
SET SHELL=C:/usr/bin/sh.exe
SET EMXSHELL=C:/usr/bin/sh.exe
SET CONFIG_SHELL=C:/usr/bin/sh.exe
SET EXECSHELL=C:/usr/bin/sh.exe

Thank you
Code: [Select]
autoreconf -sfi
It worked!

Add:
I also failed. Payton3-sphinx is required, but that library is missing.
I also don't known if it can be ported to os/2.
« Last Edit: March 19, 2026, 11:30:45 pm by Igor »

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5736
  • Karma: +150/-1
Re: Need memcached module for php7!
« Reply #8 on: March 20, 2026, 02:12:37 am »
...
Add:
I also failed. Payton3-sphinx is required, but that library is missing.
I also don't known if it can be ported to os/2.

Tried installing it, get permission errors which I'm not sure how to fix.
Code: [Select]
H:\tmp\trunk>python  -m pip install  sphinx
ERROR: Could not install packages due to an OSError: ("Connection broken: PermissionError(13, 'Permission denied')", PermissionError(13, 'Permission denied'))

There are other ways to install such as wheel and best might be a virtenv (python jail) environment.
There looks like there might be other dependencies too. Run something like
Code: [Select]
sh configure --help > configure.hlp
and examine the configure.hlp file. Always a good idea when porting.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2559
  • Karma: +207/-0
Re: Need memcached module for php7!
« Reply #9 on: March 22, 2026, 12:31:54 am »
I've never had luck regenerating configure for PECL modules, I've been hand building them with a build.cmd script. Unfortunately, the examples I have are on a virtualbox drive, and virtualbox isn't running for me right now, as I'm running a beta Ubunut 26.04 with a lnux kernel 7, and seems virtualbox can't handle that yet.