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

installation of github version fails #59

Closed
hewag1975 opened this issue Apr 6, 2022 · 5 comments
Closed

installation of github version fails #59

hewag1975 opened this issue Apr 6, 2022 · 5 comments

Comments

@hewag1975
Copy link

Hi Marius,
installing the github version with remotes::install_git("https://github.com/appelmar/gdalcubes_R") fails for me throwing:

make: *** No rule to make target 'gdalcubes/src/aggregate_time.o', needed by 'gdalcubes.so'.  Stop.
ERROR: compilation failed for package ‘gdalcubes’

I checked the system libraries, but they seem to be all up-to-date:

~$ sudo apt-get install libgdal-dev libnetcdf-dev libcurl4-openssl-dev libsqlite3-dev libudunits2-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libnetcdf-dev is already the newest version (1:4.7.3-1).
libudunits2-dev is already the newest version (2.2.26-5).
libcurl4-openssl-dev is already the newest version (7.68.0-1ubuntu2.7).
libsqlite3-dev is already the newest version (3.31.1-4ubuntu0.2).
libgdal-dev is already the newest version (3.4.0+dfsg-1~focal0).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Any idea what's going wrong here?
Best, Hendrik

@appelmar
Copy link
Owner

appelmar commented Apr 6, 2022

Hi, pretty sure it is not cloning the git submodule and the src/gdalcubes directory is empty. Can you try the following in the command line?

git clone --recursive https://github.com/appelmar/gdalcubes_R
cd gdalcubes_R
R CMD INSTALL .

The "--recursive" option is important here. Some time ago, remotes::install_git() had an args argument to add git options but that seems to be not available anymore.

@hewag1975
Copy link
Author

Yes, can confirm that this works. Not sure if there is a better option?

@appelmar
Copy link
Owner

appelmar commented Apr 6, 2022

Thanks! For sure, as far as I understand, remotes::install_git() should automatically clone the submodule, too, but I need some more time to find out what is going wrong.

@appelmar
Copy link
Owner

appelmar commented Apr 6, 2022

Turned out that remotes ignored the submodule due to two empty lines at the end of .Rbuildignore, so it should work now with remotes::install_git("https://github.com/appelmar/gdalcubes_R"), too. Thanks again for raising this issue.

@hewag1975
Copy link
Author

Yes, can confirm that this works. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants