Git Product home page Git Product logo

Comments (5)

kjdev avatar kjdev commented on July 18, 2024

To use the system library

./configure --with-lz4-includedir=/usr

from php-ext-lz4.

alex9434 avatar alex9434 commented on July 18, 2024

Excellent, thank you. That solved my first issue. Maybe you can kindly help me with another issue. I now use the following lines:

	debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
	curl -L 'https://github.com/kjdev/php-ext-lz4/archive/refs/tags/0.4.3.tar.gz' | \
		tar xvz -C /tmp; \
	( \
		cd /tmp/php-ext-lz4-0.4.3; \
		phpize; \
		./configure --with-lz4-includedir=/usr --with-libdir="lib/$debMultiarch"; \
		make -j "$(nproc)"; \
		make install \
	); \

However, I get the message:

Libraries have been installed in:
   /tmp/php-ext-lz4-0.4.3/modules

How do I get them installed instead in the correct directory instead?

from php-ext-lz4.

kjdev avatar kjdev commented on July 18, 2024

What is the procedure?

% docker run -it --rm --entrypoint=bash php:8.1-fpm
$
$ apt update
$ apt-get install -y liblz4-dev
$
$ debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"
$ curl -L 'https://github.com/kjdev/php-ext-lz4/archive/refs/tags/0.4.3.tar.gz' | tar xvz -C /tmp
$ cd /tmp/php-ext-lz4-0.4.3
$ phpize
$ ./configure --with-lz4-includedir=/usr --with-libdir="lib/$debMultiarch"
$ make -j "$(nproc)"
$ make install
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20210902/
$
$ ls /usr/local/lib/php/extensions/no-debug-non-zts-20210902/
lz4.so  opcache.so  sodium.so
$ echo "extension=lz4" > /usr/local/etc/php/conf.d/php-ext-lz4.ini
$ php -m | grep lz4
lz4

from php-ext-lz4.

alex9434 avatar alex9434 commented on July 18, 2024

OK, thank you for your help. Will modify accordingly. BTW are you planning to set-up php-lz4 as a PECL? Would make installation easier. Will close this now.

from php-ext-lz4.

kjdev avatar kjdev commented on July 18, 2024

It was good.

I will try to apply for registration with PECL.

from php-ext-lz4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.