Skip to content

Latest commit

 

History

History
67 lines (63 loc) · 1.98 KB

Installation_linux.md

File metadata and controls

67 lines (63 loc) · 1.98 KB

Installing SQUID on linux machine

Obtaining Boost Library

  1. Download boost library from http://www.boost.org/ by running
wget https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.gz
  1. Decompress the library into your favorite folder.
tar -xzvf boost_1_64_0.tar.gz -C your_favorite_folder
  1. Open the Makefile under squid in any text editor, modify the path for boost (the first line) to where you decompress boost library:
BOOST = <path to your_favorite_folder>/boost_1_64_0

Obtaining BamTools Library

  1. Download bamTools library into your favorite folder by running
git clone git://github.com/pezmaster31/bamtools.git
  1. Make sure CMake version on your system is >=2.64 by running
cmake --version
  1. Install BamTools
cd bamtools
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=<bamtools_installation_folder> ..
make
make install
  1. Open the Makefile under squid again, to change the path for BamTools (the second line). After changing the path for BamTools, the second line in Makefile should look like this
BAMTOOLS = <path to bamtools_installation_folder>

Obtaining GLPK Library

  1. Downloading GLPK library from ftp://ftp.gnu.org/gnu/glpk/ by running
wget ftp://ftp.gnu.org/gnu/glpk/glpk-4.62.tar.gz
  1. Decompress GLPK into your favorite folder by running
tar -xzvf glpk-4.62.tar.gz -C your_favorite_folder
  1. Build GLPK library by running
cd your_favorate_folder/glpk-4.62
mkdir bin
./configure --prefix=$(pwd)/bin
make
make install 
  1. Open the Makefile under squid the 3rd time, modify the path for GLPK library on the third line. After modification, the third line should look like
GLPK = <path to your_favorite_folder>/glpk-4.62/bin

Building SQUID

With the above libraries, you can go into squid folder and build squid simply by running

make

Then you can find the executable in ./bin under squid folder.