Skip to content

Installing Texada on Mac OS X

Ivan Beschastnikh edited this page May 26, 2020 · 2 revisions

Installing Texada Binary

  1. Terminal: (installing dependencies using Homebrew)

brew install boost mercurial python cmake go

  1. Download SPOT from http://spot.lip6.fr/wiki/GetSpot (extract and move to @{$SPOT_DIR}@)

  2. Terminal: (installing SPOT library)

./configure
make
make install
  1. Download GTest from website - https://code.google.com/p/googletest/downloads/list (extract and move to @{$GTEST_DIR}@)

  2. Terminal: (installing Google Test libraries)

mkdir build
cd build
cmake ..
make
sudo cp -r ../include/gtest /usr/local/include/
sudo cp lib*.a /usr/local/lib
  1. Clone Texada in local machine (such that Texada source is located in @{$TEXADA_HOME}@)

hg clone https://{$YOUR_BITBUCKET_USERNAME}@bitbucket.org/bestchai/texada

  1. Edit {$TEXADA_HOME}/uservars.mk.example to include:
GTEST_LIB:={$GTEST_DIR}/build/libgtest.a
SPOT_INCL:=/usr/local/include/spot
GTEST_INCL:=/{$GTEST_DIR}/include
BOOST_INCL:=/usr/local/Cellar/boost/1.57.0/include
TEXADA_HOME:={$TEXADA_HOME}
  1. Rename @uservars.mk.example@ to @uservars.mk@ (in @{$TEXADA_HOME}@)

  2. Terminal: (installing Texada binary)

make

Running the server

  1. Terminal:
go run server.go {$TEXADA_HOME}/texada {$PORT}
  1. Access texada from browser at http://localhost:{$PORT}/texada

Please substitute the real directory names/paths and other variables instead of the {$...} variables before running a command on the Terminal.

Please see the main README for a more general installation guide.