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

INSTALL failed (1.3.0) #23

Open
proebuck opened this issue Jun 10, 2016 · 1 comment
Open

INSTALL failed (1.3.0) #23

proebuck opened this issue Jun 10, 2016 · 1 comment

Comments

@proebuck
Copy link

proebuck commented Jun 10, 2016

Problem installing local libjson using gcc-5.4.0.3 with Docker.
The library source file JSONWorker.cpp is using intptr_t without
#includeing its typedef first; I applied the patch below which allows
it to install (ignoring namespace std and patching global namespace).

ARG RJSONIO_TGZ=RJSONIO_1.3-0.tar.gz
ARG RJSONIO_TGZ_URL=https://cran.r-project.org/src/contrib/${RJSONIO_TGZ}
RUN (curl -sS --fail -L ${RJSONIO_TGZ_URL} | bsdtar xf - )
RUN (cd RJSONIO/src/libjson/Source; \
     sed -i'.orig' -e '1 i\#include <stdint.h>' JSONWorker.cpp)
RUN (R_VERSION_MAJMIN=$(echo $R_BASE_VERSION | cut -f2 -d':' | cut -f1,2 -d'.'); \
     RSITELIB=${PROJ_BUILD_DIR}/dvapp/R/site-library/${R_VERSION_MAJMIN}; \
     CONFIGUREARGS="--configure-args='--with-local-libjson'"; \
     R CMD INSTALL ${CONFIGUREARGS} -l ${RSITELIB} RJSONIO)
@proebuck
Copy link
Author

Just noticed this is partial repeat of #17 (@slackline), but with a patch...
Sorry...

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

1 participant