Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
MXNet installation error on mac's R 3.4.0 #6936
I am trying to install the recently released MXNet 0.10.0 on my mac's R from source using the tar.gz file uploaded here. However, I am getting the following error:
Warning in untar2(tarfile, files, list, exdir, restore_times) :
My R's sessionInfo() is the following:
R version 3.4.0 (2017-04-21)
attached base packages:
loaded via a namespace (and not attached):
I built R with openMP support so that shouldn't be a problem.
Minimum reproducible example
install.packages("~/Downloads/mxnet-0.10.0.tar.gz", repos = NULL, type = "source")
What have you tried to solve it?
I had also tried to install it following this link's suggestion. It resulted in the following error:
Could you please look into the error.
I guess you installed R using brew. There is one key difference between brew and official R.
The R installed from brew will try to install the package from source by default. The R from R project website will try the pre-built pkg first.
install.packages("mxnet", type = "mac.binary")
I tried to build it from binary but here is the error I get:
Regardless of what mirror I choose, I get the same following problem:
package ‘mxnet’ is available as a source package but not as a binary
Warning in install.packages :
Thank you for the support.
It didn't work either. I could install it following one of your other comments using
However when I load, it gives me the following error:
Yes, I tried again and it throws same error. However, I don't find problem installing any other package. How can I fix this?
I see that my directory
Actually, I did try to build it from source following this link's suggestion. I cloned the latest version but whenever I try to build it using
make -j USE_BLAS=openblas USE_OPENCV=0 USE_OPENMP=0 USE_CPP_PACKAGE=1
I get the following error:
Makefile:3: *** missing separator. Stop.
I also tried to build it with apple's blas as suggested but I keep getting the same error.
Thanks for the lead!
I don't why I had some issues with the git repo clone last time. Finally, I fixed these. I had to edit osx.mk to get to work:
export CC = clang-omp
the additional link flags you want to add
the additional compile flags you want to add
with OPENMP, OPENCV and openblas (OPENMP=1, OPENCV=1, USE_BLAS=openblas). After adding those paths and correctly specifying compilers, it built mxnet. Rest was the same. I just had to reinstall dplyr after this. The issue is solved.