Last active
March 25, 2019 18:45
-
-
Save clemblanco/7ee742a3f196eba7e894ad5e67ea4a16 to your computer and use it in GitHub Desktop.
PDFNetPHP PHP extension compilation and installation for Codeship
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir PDFNetPHPSetup | |
cd PDFNetPHPSetup && wget https://github.com/PDFTron/PDFNetWrappers/archive/d5a24e199524b9c61b3d10ff880a76f816e3f480.tar.gz | |
tar xzvf d5a24e199524b9c61b3d10ff880a76f816e3f480.tar.gz | |
cd PDFNetWrappers-d5a24e199524b9c61b3d10ff880a76f816e3f480/PDFNetC | |
wget http://www.pdftron.com/downloads/PDFNetC64.tar.gz && tar xzvf PDFNetC64.tar.gz | |
mv PDFNetC64/Headers/ . && mv PDFNetC64/Lib/ . | |
cd .. && mkdir Build && cd Build | |
cmake -D BUILD_PDFNetPHP=ON .. && make && make install | |
echo "extension=PDFNetPHP.so" >> /home/rof/.phpenv/versions/$(phpenv version-name)/etc/php.ini | |
cd /home/rof/clone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
does not appear to contain CMakeLists.txt.