Last active
December 27, 2015 13:29
-
-
Save krlmlr/7333242 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
processing 'Z:\home\muelleki\Downloads\kimisc-master' | |
a directory | |
* installing to library 'C:/Program Files/R/R-3.0.2/library' | |
* build_help_types= | |
* DBG: 'R CMD INSTALL' now doing do_install() | |
* created lock directory 'C:/Program Files/R/R-3.0.2/library/00LOCK-kimisc-master' | |
* installing *source* package 'kimisc' ... | |
** libs | |
about to run R CMD SHLIB -o kimisc.dll rcpp_hello_world.cpp RcppExports.cpp --debug | |
fixme:ntdll:NtSetInformationToken unimplemented class 4 | |
fixme:ntdll:NtQueryInformationProcess (process=0xffffffff) Unimplemented information class: ProcessSessionInformation | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: volume info not supported | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xc4: faking attribute info | |
fixme:ntdll:NtQueryVolumeInformationFile 0xc4: faking attribute info | |
fixme:ntdll:NtQueryVolumeInformationFile 0xc4: faking attribute info | |
fixme:ntdll:NtQueryVolumeInformationFile 0xc4: faking attribute info | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xcc: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xd8: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xd8: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
fixme:ntdll:NtQueryVolumeInformationFile 0xd8: faking attribute info | |
fixme:ntdll:NtQueryInformationFile Unsupported class (34) | |
ERROR: compilation failed for package 'kimisc' | |
* removing 'C:/Program Files/R/R-3.0.2/library/kimisc' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* installing to library ‘/home/muelleki/R/x86_64-pc-linux-gnu-library/3.0’ | |
* installing *source* package ‘kimisc’ ... | |
** libs | |
g++ -I/usr/share/R/include -DNDEBUG -I"/home/muelleki/R/x86_64-pc-linux-gnu-library/3.0/Rcpp/include" -fpic -O2 -pipe -g -c RcppExports.cpp -o RcppExports.o | |
g++ -I/usr/share/R/include -DNDEBUG -I"/home/muelleki/R/x86_64-pc-linux-gnu-library/3.0/Rcpp/include" -fpic -O2 -pipe -g -c rcpp_hello_world.cpp -o rcpp_hello_world.o | |
g++ -shared -o kimisc.so RcppExports.o rcpp_hello_world.o -L/home/muelleki/R/x86_64-pc-linux-gnu-library/3.0/Rcpp/lib -lRcpp -Wl,-rpath,/home/muelleki/R/x86_64-pc-linux-gnu-library/3.0/Rcpp/lib -L/usr/lib/R/lib -lR | |
installing to /home/muelleki/R/x86_64-pc-linux-gnu-library/3.0/kimisc/libs | |
** R | |
** data | |
** preparing package for lazy loading | |
** help | |
*** installing help indices | |
** building package indices | |
** testing if installed package can be loaded | |
* DONE (kimisc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# Windows tools break TTY settings | |
STTY_ORIG=$(stty -g) | |
trap "stty $STTY_ORIG" EXIT | |
DOWNLOAD_DIR=~/Downloads | |
CRAN="http://cran.rstudio.com" | |
export WINEPREFIX=$HOME/.wine-rtools | |
# Download bits | |
R_FILENAME=R-3.0.2-win.exe | |
wget ${CRAN}/bin/windows/base/${R_FILENAME} -O ${DOWNLOAD_DIR}/${R_FILENAME} | |
RTOOLS_FILENAME=Rtools31.exe | |
wget ${CRAN}/bin/windows/Rtools/${RTOOLS_FILENAME} -O ${DOWNLOAD_DIR}/${RTOOLS_FILENAME} | |
wget https://github.com/krlmlr/kimisc/archive/master.zip -O ${DOWNLOAD_DIR}/kimisc-master.zip | |
# Bootstrap | |
rm -rf $WINEPREFIX | |
wineboot | |
# Install | |
wine ${DOWNLOAD_DIR}/${R_FILENAME} /silent | |
unix2dos > $WINEPREFIX/drive_c/rtools.inf << "END_CAT" | |
[Setup] | |
Tasks=setpath,recordversion | |
END_CAT | |
wine ${DOWNLOAD_DIR}/${RTOOLS_FILENAME} /loadinf=c:\rtools.inf /silent | |
# Bootstrap test | |
wine "$WINEPREFIX/drive_c/Program Files/R/R-3.0.2/bin/x64/Rscript.exe" -e "install.packages(c('devtools', 'Rcpp', 'logging', 'plyr'), repos='${CRAN}/')" | |
# Perform test, currently failing | |
# Waiting for one minute before exiting with error | |
rm -rf ${DOWNLOAD_DIR}/kimisc-master/ | |
unzip ${DOWNLOAD_DIR}/kimisc-master.zip -d ${DOWNLOAD_DIR} | |
# This is called under the hood: | |
#cd $DOWNLOAD_DIR/kimisc-master/src | |
#wine "$WINEPREFIX/drive_c/Program Files/R/R-3.0.2/bin/x64/R" --verbose --vanilla CMD SHLIB -o kimisc.dll RcppExports.cpp rcpp_hello_world.cpp | |
#false | |
# This is the command I want to execute: | |
wine "$WINEPREFIX/drive_c/Program Files/R/R-3.0.2/bin/x64/R" --verbose --vanilla CMD INSTALL "Z:$(sed -r 's-/-\\-g' <<< ${DOWNLOAD_DIR})\kimisc-master" --no-multiarch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment