Comments (5)
To use the system library
./configure --with-lz4-includedir=/usr
from php-ext-lz4.
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.
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.
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.
It was good.
I will try to apply for registration with PECL.
from php-ext-lz4.
Related Issues (20)
- memcached and apc intergration HOT 3
- php 7.0 support? HOT 4
- /usr/local/src/php-ext-lz4/lz4.c:35:17: fatal error: lz4.h: No such file or directory HOT 1
- Test 10 fails on php version less than 5.4 HOT 2
- Relicensing HOT 3
- lz4.c:35:17
- Submit to PECL
- can't make ,when i use Centos7.3 HOT 1
- Is there a dll for this? HOT 1
- Support frame format
- v0.4.2 - unused variables treated like errors HOT 2
- Security fix for 32-bits systems HOT 2
- lz4 on windows HOT 3
- useless source files HOT 1
- I can not find phpize or configure HOT 2
- php unexpected exiting when uncompress the wrong format data HOT 3
- php 5.6 support ? HOT 1
- uncompressed data to lz uncompress fuunction
- uncompressing with prefix failed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-ext-lz4.