Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,21 @@ WORK=$(pwd)
if [[ $(uname) == 'Linux' ]]; then
sudo apt install -y libpcre3 libpcre3-dev autotools-dev byacc \
flex cmake build-essential autoconf
# Original Method for Installation
scripts/install_swig.sh
scripts/install_lpsolve.sh

mkdir -p .third_party

ln -sf $GUROBI_HOME $WORK/.third_party/gurobi

elif [[ $(uname) == 'Darwin' ]]; then
brew install pcre autoconf
fi
brew install swig
brew install lp_solve

mkdir -p .third_party
scripts/install_swig.sh
scripts/install_lpsolve.sh

# Install govendor
cd $WORK
go get -u github.com/kardianos/govendor
go run scripts/make_lib.go --go-fname solvers/lib.go --pkg solvers
fi

# Install Go packages
govendor sync

ln -sf $GUROBI_HOME $WORK/.third_party/gurobi
go mod init github.com/mit-drl/goop
Loading