Skip to content

Instantly share code, notes, and snippets.

@mikelove
Created December 29, 2017 00:44
Show Gist options
  • Save mikelove/67ea44d5be5a053e599257fe357483dc to your computer and use it in GitHub Desktop.
Save mikelove/67ea44d5be5a053e599257fe357483dc to your computer and use it in GitHub Desktop.
How to install Rmosek
1) Download mosek from here:
https://www.mosek.com/downloads/
(I downloaded this to my ~/bin)
cd ~/bin
tar -xvf mosektoolslinux64x86.tar.bz2
2) Add this to your ~/.bashrc
export PATH=$PATH:/home/username/bin/mosek/8/tools/platform/linux64x86/bin
3) Get academic license:
https://www.mosek.com/products/academic-licenses/
Check email, put licsense file in ~/mosek
4) Install:
export PKG_MOSEKHOME=/home/username/bin/mosek/8/tools/platform/linux64x86
export PKG_MOSEKLIB=mosek64
Then in R:
install.packages("Rmosek", type="source", INSTALL_opts="--no-multiarch", repos="http://download.mosek.com/R/8")
@mikelove
Copy link
Author

mikelove commented Jan 9, 2022

I don't really have much bandwidth to debug here (just posted the gist in case others found it useful), but I do notice you are using Mosek tool for Linux distribution on a Windows machine. I wouldn't expect that to work:

/bin/mosek/9.1/tools/platform/linux64x86/bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment