Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build R package from source error: no packages specified #5565

Closed
JiaRu2016 opened this issue Apr 20, 2020 · 7 comments
Closed

Build R package from source error: no packages specified #5565

JiaRu2016 opened this issue Apr 20, 2020 · 7 comments

Comments

@JiaRu2016
Copy link

JiaRu2016 commented Apr 20, 2020

I want to build and install xgboost R package from source, following steps
in https://github.com/dmlc/xgboost/blob/master/doc/build.rst#r-package-installation

git clone --recursive https://github.com/dmlc/xgboost
cd xgboost
git submodule init
git submodule update
mkdir build
cd build
cmake .. -DR_LIB=ON
make -j$(nproc)
make install

the last step make install throws Error:

Screen Shot 2020-04-20 at 10 00 35

I'v tried to build shared library seperately and it works well, so it looks like the problem it specific to R package.

Environment Info:
System: Ubuntu 18.04
R version: 3.6.2
xgboost branch: release_1.0.0

@trivialfis
Copy link
Member

I can't reproduce ..

@JiaRu2016
Copy link
Author

JiaRu2016 commented Apr 20, 2020

I'v tried:

cd path/to/xgboost/R-package
R CMD INSTALL .

it seems installed succesfully. but I wonder Is it "correct" way to install R package?

@trivialfis
Copy link
Member

This is the CRAN way of installing R package, which means you will get a strictly built R package with minimal functionality.

@hcho3
Copy link
Collaborator

hcho3 commented Apr 20, 2020

More on "minimal functionality" comment: It means that you won't have access to gpu_hist and other features that involves the use of NVIDIA GPUs. You'll want to use the method in https://github.com/dmlc/xgboost/blob/master/doc/build.rst#r-package-installation if you want to use GPU algorithms.

@trivialfis
Copy link
Member

@hcho3 Nor cpu prefetching I assume?

@hcho3
Copy link
Collaborator

hcho3 commented Apr 20, 2020

@trivialfis Yes.

@hcho3
Copy link
Collaborator

hcho3 commented Jun 17, 2020

@hcho3 hcho3 closed this as completed Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants