mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-26 20:14:47 +01:00
14 lines
406 B
Bash
14 lines
406 B
Bash
#!/bin/bash
|
|
set -e
|
|
set -o pipefail
|
|
|
|
# install 'libuv'
|
|
git clone --recursive --branch v1.0.0-rc2 --depth 1 https://github.com/joyent/libuv.git
|
|
pushd libuv
|
|
./autogen.sh && ./configure && make && sudo make install
|
|
popd
|
|
|
|
#install 'php-uv'
|
|
phpize && ./configure --with-uv --enable-httpparser && make && sudo make install
|
|
echo "extension=uv.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
|