Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Add binaries and a symlink to fix errors running R.
Browse files Browse the repository at this point in the history
- need symlink directing to /bin/which
- added libR.so and libblas.so.3

Rscript is not supported since it will be generated with hard coded paths to where you built R!
Use 'R --slave --no-restore --file=script.r' instead.
  • Loading branch information
Jakob Hohlfeld committed Mar 12, 2016
1 parent d479284 commit 5be9bf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ADD ./r-install/lib /lib/

RUN mkdir -p /usr/bin \
&& ln -s $R_HOME"bin/exec/R" /usr/bin/R \
&& ln -s $R_HOME"bin/Rscript" /usr/bin/Rscript
&& ln -s $R_HOME"bin/Rscript" /usr/bin/Rscript \
&& ln -s /bin/which /usr/bin/which

CMD R
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ echo "looking for binaries built in $R_BUILD_DIR"

rm -r $SHARED_LIBS_DEST_DIR 2> /dev/null

for x in /lib/x86_64-linux-gnu/libm.so.6 /lib/x86_64-linux-gnu/libreadline.so.6 /lib/x86_64-linux-gnu/libpcre.so.3 /lib/x86_64-linux-gnu/liblzma.so.5 /lib/x86_64-linux-gnu/libbz2.so.1.0 /lib/x86_64-linux-gnu/libz.so.1 /lib/x86_64-linux-gnu/librt.so.1 /lib/x86_64-linux-gnu/libdl.so.2 /usr/lib/x86_64-linux-gnu/libgomp.so.1 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libc.so.6 /lib64/ld-linux-x86-64.so.2 /lib/x86_64-linux-gnu/libtinfo.so.5 /usr/lib/x86_64-linux-gnu/libgfortran.so.3 /usr/lib/x86_64-linux-gnu/libquadmath.so.0 /lib/x86_64-linux-gnu/libgcc_s.so.1;
for x in /lib/x86_64-linux-gnu/libm.so.6 /lib/x86_64-linux-gnu/libreadline.so.6 /lib/x86_64-linux-gnu/libpcre.so.3 /lib/x86_64-linux-gnu/liblzma.so.5 /lib/x86_64-linux-gnu/libbz2.so.1.0 /lib/x86_64-linux-gnu/libz.so.1 /lib/x86_64-linux-gnu/librt.so.1 /lib/x86_64-linux-gnu/libdl.so.2 /usr/lib/x86_64-linux-gnu/libgomp.so.1 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libc.so.6 /lib64/ld-linux-x86-64.so.2 /lib/x86_64-linux-gnu/libtinfo.so.5 /usr/lib/x86_64-linux-gnu/libgfortran.so.3 /usr/lib/x86_64-linux-gnu/libquadmath.so.0 /lib/x86_64-linux-gnu/libgcc_s.so.1 /usr/lib/libR.so /usr/lib/libblas.so.3;
do

destdir="$SHARED_LIBS_DEST_DIR$(dirname $x)/"
Expand Down Expand Up @@ -40,4 +40,4 @@ done

echo "copied "$(find $R_DEST_DIR -type f|wc -l)" files."

docker build -t "pipmyday/busybox-r:latest" ./
docker build -t "pipmyday/busybox-r:$R_VERSION" ./

0 comments on commit 5be9bf0

Please sign in to comment.