Skip to content

Instantly share code, notes, and snippets.

@asenchi
Created April 3, 2015 18:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asenchi/283b86656c916082fa97 to your computer and use it in GitHub Desktop.
Save asenchi/283b86656c916082fa97 to your computer and use it in GitHub Desktop.
# 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