rstudio / r-builds

an opinionated environment for compiling R
GNU General Public License v3.0
100 stars 19 forks source link

unable to build for rhel-9. issues with Rprofile HTTPUserAgent string #231

Closed wccropper closed 4 months ago

wccropper commented 4 months ago

Fresh clone of the git repo

# export PLATFORM=rhel-9
# export R_VERSION=4.4.0
# export R_INSTALL_PATH=/data/apps/R/4.4.0
# make build-r-$PLATFORM
./build.sh: line 193: syntax error near unexpected token `%s'
make: *** [Makefile:58: build-r-rhel-9] Error 2
wccropper commented 4 months ago

Bump

glin commented 4 months ago

Hi, I can't reproduce this so this is strange... I'm not sure why that error would occur in the build script.

Could you try running a build manually like this, to see if it works or produces any more information? Instead of using Docker Compose, this will start a container session manually with Docker, then build R using the same options.

make docker-build-rhel-9
make bash-rhel-9

R_VERSION=4.4.0 R_INSTALL_PATH=/data/apps/R/4.4.0 ./build.sh
wccropper commented 4 months ago

This way worked for me. I built 4.4.0 and 4.4.1. So happy to close this. Not sure why the other way doesn;t work but as long as I have a path forward I am good!