You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/02/19 01:14:41 UTC
[GitHub] jwmueller edited a comment on issue #13859: Newly updated Makefile
generate path errors
jwmueller edited a comment on issue #13859: Newly updated Makefile generate path errors
URL: https://github.com/apache/incubator-mxnet/issues/13859#issuecomment-464936555
I also have the same issue as @chris-english and @lichen11 (see detailed outputs below) and `echo "USE_MKLDNN = 0" >> ./config.mk` also does not help either.
The issue clearly seems to be the replicated "R-package/R-package/" in the path where **libmxnet.so** is supposed to be located, since this file is located at the right path if I could just remove one of these R-package statements.
Does anyone have a stable solution? I need to programmatically download and install R-MXNet on some remote servers. I'm not exactly sure, but it could be that one solution is:
`dyn.load("R-package/inst/libs/libmxnet.so", local = FALSE)`
should instead be replaced by:
`dyn.load("inst/libs/libmxnet.so", local = FALSE)`
Detailed Commands & Output:
> sudo make rpkg
Makefile:313: WARNING: Significant performance increases can be achieved by installing and enabling gperftools or jemalloc development packages
mkdir -p R-package/inst/libs
cp src/io/image_recordio.h R-package/src
cp -rf lib/libmxnet.so R-package/inst/libs
if [ -e "lib/libmkldnn.so.0" ]; then \
cp -rf lib/libmkldnn.so.0 R-package/inst/libs; \
cp -rf lib/libiomp5.so R-package/inst/libs; \
cp -rf lib/libmklml_intel.so R-package/inst/libs; \
fi
mkdir -p R-package/inst/include
cp -rl 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 "if(!require(roxygen2)||packageVersion('roxygen2') < '6.1.1'){install.packages('roxygen2', repo = 'https://cloud.r-project.org/')}"
Loading required package: roxygen2
Rscript -e "library(devtools); library(methods); options(repos=c(CRAN='https://cloud.r-project.org/')); install_deps(pkg='R-package', dependencies = TRUE)"
cp R-package/dummy.NAMESPACE R-package/NAMESPACE
echo "import(Rcpp)" >> R-package/NAMESPACE
R CMD INSTALL R-package
* installing to library ‘/usr/local/lib/R/site-library’
* installing *source* package ‘mxnet’ ...
** libs
make[1]: Entering directory '/home/ubuntu/mxnet/R-package/src'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/ubuntu/mxnet/R-package/src'
installing to /usr/local/lib/R/site-library/mxnet/libs
** R
** demo
** inst
** preparing package for lazy loading
** help
No man pages found in package ‘mxnet’
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
[1] "Loading local: inst/libs/libmxnet.so"
Error: package or namespace load failed for ‘mxnet’:
.onLoad failed in loadNamespace() for 'mxnet', details:
call: dyn.load("R-package/inst/libs/libmxnet.so", local = FALSE)
error: unable to load shared object '/home/ubuntu/mxnet/R-package/R-package/inst/libs/libmxnet.so':
/home/ubuntu/mxnet/R-package/R-package/inst/libs/libmxnet.so: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/usr/local/lib/R/site-library/mxnet’
Makefile:599: recipe for target 'rpkg' failed
make: *** [rpkg] Error 1
> sessionInfo()
R version 3.4.4 (2018-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.5 LTS
Matrix products: default
BLAS: /usr/lib/openblas-base/libblas.so.3
LAPACK: /usr/lib/libopenblasp-r0.2.18.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services