Last active
December 13, 2017 15:07
-
-
Save EricCousineau-TRI/67b7ac0135223691eb3f21dee8328da1 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
| #!/bin/bash | |
| # PLEASE NOTE: This is a prototype script that may change in the future; please only use this | |
| # if it is suggested to you by a Drake developer for debugging. | |
| # You will need to ensure that the `export ...` statement is run in your current terminal. | |
| # Consider just `source`ing this file. | |
| mosek_dir=~/.local/opt/mosek; | |
| mosek_lib=${mosek_dir}/7/tools/platform/linux64x86/bin; | |
| # Execute these steps if you need mosek | |
| if [[ ! -d ${mosek_dir} ]]; then | |
| download_dir=/tmp | |
| extract_dir=$(dirname ${mosek_dir}) | |
| mosek_major=7 | |
| mosek_platform=linux64x86 | |
| mosek_url="http://download.mosek.com/stable/${mosek_major}/mosektools${mosek_platform}.tar.bz2" | |
| mosek_file=$(basename ${mosek_url}) | |
| mkdir -p ${download_dir} ${extract_dir} | |
| wget -P ${download_dir} ${mosek_url} | |
| tar jxf ${download_dir}/${mosek_file} -C ${extract_dir} | |
| fi | |
| # Export libraries | |
| export LD_LIBRARY_PATH=${GUROBI_PATH}/lib:${mosek_lib}:${LD_LIBRARY_PATH} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment