1
0
mirror of https://github.com/danog/PrimeModule.git synced 2024-11-30 04:39:09 +01:00
PrimeModule/tests/install_deps.sh

18 lines
384 B
Bash
Executable File

#!/bin/bash
export PATH=$PATH:~/.phpenv/versions/$(phpenv version-name)/bin
cd /tmp
git clone https://github.com/CopernicaMarketingSoftware/PHP-CPP
cd PHP-CPP
make -j16
sudo make install
cd ../
git clone https://github.com/danog/PrimeModule-ext
cd PrimeModule-ext
make -j16
echo "extension=$PWD/primemodule.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
cd ..
exit 0