Created
April 3, 2015 18:11
-
-
Save asenchi/283b86656c916082fa97 to your computer and use it in GitHub Desktop.
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
# Installing lpeg_tester | |
### installing boost | |
brew install boost | |
### installing webtookkit (wt) | |
brew install fcgi | |
brew install libpng | |
brew install libtiff | |
brew install libharu | |
brew install pango | |
brew install GraphicsMagick | |
git clone git://github.com/kdeforche/wt.git | |
cd wt | |
mkdir build | |
cd build | |
cmake \ | |
-DCMAKE_CXX_FLAGS='-stdlib=libc++' -DCMAKE_EXE_LINKER_FLAGS='-stdlib=libc++' \ | |
-DCMAKE_MODULE_LINKER_FLAGS='-stdlib=libc++' -DWT_CPP_11_MODE='-std=c++11' \ | |
-DMYSQL_LIBRARY=mysqlclient -DMYSQL_PREFIX=/usr/local/Cellar/mysql-connector-c/6.1.3 \ | |
-DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick -DGM_PREFIX=/usr/local \ | |
-DSSL_PREFIX=/usr/local/Cellar/openssl/1.0.2 \ | |
../ | |
make | |
sudo make install | |
### lpeg_tester | |
git clone https://github.com/trink/lpeg_tester | |
cd lpeg_tester | |
mkdir release | |
cd release | |
vim ../CMakeLists.txt | |
# Comment out the following of the lines: | |
# find_library(NSL_LIBRARY nsl) | |
# find_library(RT_LIBRARY rt) | |
# ${NSL_LIBRARY} | |
# ${RT_LIBRARY} | |
cmake -DCMAKE_BUILD_TYPE=release .. | |
make | |
# to run the web server locally | |
make install DESTDIR=install | |
cd install/usr/local/lpeg_tester | |
sudo ./run.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment