mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-26 20:14:47 +01:00
15 lines
542 B
Bash
15 lines
542 B
Bash
#!/bin/bash
|
|
set -e
|
|
set -o pipefail
|
|
|
|
# install 'libuv'
|
|
mkdir libuv
|
|
curl -L https://github.com/libuv/libuv/archive/v1.6.1.tar.gz | tar xzf -
|
|
cd libuv-1.6.1 && ./autogen.sh && ./configure --prefix=$(readlink -f `pwd`/../libuv) && make && make install
|
|
cd ..
|
|
|
|
#install 'php-uv'
|
|
#phpize && ./configure --with-uv=$(readlink -f `pwd`/libuv) --enable-httpparser && make && make install
|
|
phpize && ./configure --with-uv=$(readlink -f `pwd`/libuv) && make && make install
|
|
echo "extension = uv.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|