mirror of
https://github.com/danog/PrimeModule.git
synced 2024-11-26 20:34:37 +01:00
18 lines
414 B
Bash
Executable File
18 lines
414 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
|