-
Notifications
You must be signed in to change notification settings - Fork 6.8k
ubuntu 18.04 R-package #13586
Comments
Are you using R version >= 3.4.4? You can look at https://mxnet.apache.org/install/index.html?platform=Linux&language=R&processor=CPU for further details. Please note that there seems that have a recent bug that should be fixed by #13590. But if you build from version 1.3.0, you should be fine. |
Hi , |
I was wondering about your R version (rather than MXNet version), could you print what is returned by: R.version() in a R session? The root error message seems to point to the R-package directory not containing the appropriate files for building the package. Can you check that R-package directory contains both a DESCRIPTION and NAMESPACE file? If there's no NAMESPACE, modify the Makefile (located in root directory: src/apache-mxnet-src-1.3.0-incubating) to add the following:
Just before the line that caused the error ( |
Hi ,
$arch $os $system $status $major $minor $year $month $day $ $language $version.string $nickname I copied the lines as you advised, please see the results below: |
There has been some changes in the makefile since mxnet 1.3.0, maybe that's the root cause. |
Phew! Finally I manage to get the package built on my virtualbox, still need to get this to my laptop( build crashes on the laptop or probably memory is not enough). I did it from the current master cant find tag 1.5.0 , dont know if its internal for you. Anyway here are the steps I took to get this working. ** cp: cannot overwrite non-directory 'R-package/inst/include/dmlc' with directory '3rdparty/dmlc-core/include/dmlc' DONE (mxnet) |
Note: Providing complete information in the most concise form is the best way to get help. This issue template serves as the checklist for essential information to most of the technical issues and bug reports. For non-technical issues and feature requests, feel free to present the information in what you believe is the best form.
For Q & A and discussion, please start a discussion thread at https://discuss.mxnet.io
Description
I manage to build mxnet on ubuntu but I cant install Rpackage. Here is my build command.
Folder where i call the command : apache-mxnet-src-1.3.0-incubating/build/Release$
cmake -j -DUSE_CUDA=0 -DUSE_MKLDNN=1 ../../
Subsequently I tried following command
src/apache-mxnet-src-1.3.0-incubating$
sudo make rpkg
Error message below.
**
Makefile:176: "USE_LAPACK disabled because libraries were not found"
mkdir -p R-package/inst
mkdir -p R-package/inst/libs
cp src/io/image_recordio.h R-package/src
cp -rf lib/libmxnet.so R-package/inst/libs
mkdir -p R-package/inst/include
cp -rf include/* R-package/inst/include
cp -rf 3rdparty/dmlc-core/include/* R-package/inst/include/
cp -rf 3rdparty/tvm/nnvm/include/* R-package/inst/include
Rscript -e "if(!require(devtools)){install.packages('devtools', repo = 'https://cloud.r-project.org/')}"
Loading required package: devtools
Rscript -e "library(devtools); library(methods); options(repos=c(CRAN='https://cloud.r-project.org/')); install_deps(pkg='R-package', dependencies = TRUE)"
Error: Could not find package root.
Execution halted
Makefile:568: recipe for target 'rpkg' failed
make: *** [rpkg] Error 1
**
Environment info (Required)
Ubuntu 18.04
The text was updated successfully, but these errors were encountered: