uncoast-unconf / uu-2019

Materials for the 2019 uncoast unconference
11 stars 4 forks source link

Install Rtools on computer FAIL #18

Closed DrFletch closed 5 years ago

DrFletch commented 5 years ago

@ijlyttle hope you can help.... got my devtools and git installed okay but when I ran "devtools::has_devel(debug = TRUE) command to install the additional Rtools on my computer I got the following error (see screenshot). Any ideas?

image

srvanderplas commented 5 years ago

Do you have admin access to your machine? If not, you may have to get someone to install it for you. If you do, see if it works once all R instances are closed. Failing that, try running the executable with admin permissions.

On Wed, Apr 3, 2019, 15:51 Dr. Jeff Fletcher notifications@github.com wrote:

@ijlyttle https://github.com/ijlyttle hope you can help.... got my devtools and git installed okay but when I ran "devtools::has_devel(debug = TRUE) command to install the additional Rtools on my computer I got the following error (see screenshot). Any ideas?

[image: image] https://user-images.githubusercontent.com/47152428/55512284-579b8000-5628-11e9-9205-b836f534d4e0.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/uncoast-unconf/uu-2019/issues/18, or mute the thread https://github.com/notifications/unsubscribe-auth/ACB1FULZ0K-ob52_8PC_bqIs0G-WPBQiks5vdRRlgaJpZM4cbaut .

ijlyttle commented 5 years ago

Building off of @srvanderplas' advice, if you do need to make an adminstrative installation, I might suggest the following:

All being well, you should be able to run devtools::has_devel(debug = TRUE), and have it return silently.

Hope this helps!

DrFletch commented 5 years ago

@ijlyttle @srvanderplas thank you for your help! There are varying IT security levels here at state government ;) However, I believe I was able to get this installed correctly? Here is a screenshot.

image

srvanderplas commented 5 years ago

It's probably better to check by running this in R: system('g++ -v') - that will display the compiler version, so if you get a bunch of gibberish back out that looks like what's below, you're probably good to go.

Using built-in specs.

COLLECT_GCC=C:\PROGRA~1\R\R-34~1.3\library\Rtools\mingw_32\bin\G__~1.EXE COLLECT_LTO_WRAPPER=C:/PROGRA~1/R/R-34~1.3/library/Rtools/mingw_32/bin/../libexec/gcc/i686-w64-mingw32/4.9.3/lto-wrapper.exe Target: i686-w64-mingw32 Configured with: ../../../src/gcc-4.9.3/configure --host=i686-w64-mingw32 --build=i686-w64-mingw32 --target=i686-w64-mingw32 --prefix=/mingw32 --with-sysroot=/home/Jeroen/mingw-gcc-4.9.3/i686-493-posix-dwarf-rt_v3-s/mingw32 --with-gxx-include-dir=/mingw32/i686-w64-mingw32/include/c++ --enable-static --disable-shared --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-sjlj-exceptions --with-dwarf2 --disable-isl-version-check --disable-cloog-version-check --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=i686 --with-tune=generic --with-libiconv --with-system-zlib --with-gmp=/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-w64-mingw32-static --with-mpfr=/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-w64-mingw32-static --with-mpc=/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-w64-mingw32-static --with-isl=/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-w64-mingw32-static --with-cloog=/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-w64-mingw32-static --enable-cloog-backend=isl --with-pkgversion='i686-posix-dwarf, Built by MinGW-W64 project' --with-bugurl=http://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -I/home/Jeroen/mingw-gcc-4.9.3/i686-493-posix-dwarf-rt_v3-s/mingw32/opt/include -I/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-zlib-static/include -I/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -I/home/Jeroen/mingw-gcc-4.9.3/i686-493-posix-dwarf-rt_v3-s/mingw32/opt/include -I/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-zlib-static/include -I/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-w64-mingw32-static/include' CPPFLAGS= LDFLAGS='-pipe -L/home/Jeroen/mingw-gcc-4.9.3/i686-493-posix-dwarf-rt_v3-s/mingw32/opt/lib -L/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-zlib-static/lib -L/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-w64-mingw32-static/lib -Wl,--large-address-aware' Thread model: posix gcc version 4.9.3 (i686-posix-dwarf, Built by MinGW-W64 project)

There are a few more system() commands to run in this stackoverflow post: https://stackoverflow.com/questions/48137891/install-rtools-and-check-if-i-can-use-it that will check other components if you're paranoid :).

On Thu, Apr 4, 2019 at 8:32 AM Dr. Jeff Fletcher notifications@github.com wrote:

@ijlyttle https://github.com/ijlyttle @srvanderplas https://github.com/srvanderplas thank you for your help! There are varying IT security levels here at state government ;) However, I believe I was able to get this installed correctly? Here is a screenshot.

[image: image] https://user-images.githubusercontent.com/47152428/55559209-5c594600-56b3-11e9-919a-5dd4e643b5ad.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/uncoast-unconf/uu-2019/issues/18#issuecomment-479898307, or mute the thread https://github.com/notifications/unsubscribe-auth/ACB1FcJYxAtIrBMTpHQsuyapjnd3wq9Vks5vdf7ugaJpZM4cbaut .

ijlyttle commented 5 years ago

Hi @DrFletch,

I yield to @srvanderplas' experience on Rtools and Windows, but I'm curious - does devtools::has_devel(debug = TRUE) return silently for you now?

DrFletch commented 5 years ago

@srvanderplas @ijlyttle Yes, devtools::has_devel(debug = TRUE) returns silently for me now and I also used the system command above to get a bunch of gibberish back. Thank you!

srvanderplas commented 5 years ago

Awesome! Rtools + windows is sometimes a real bear, so I'm glad it's working!

On Thu, Apr 4, 2019 at 1:19 PM Dr. Jeff Fletcher notifications@github.com wrote:

@srvanderplas https://github.com/srvanderplas @ijlyttle https://github.com/ijlyttle Yes, devtools::has_devel(debug = TRUE) returns silently for me now and I also used the system command above to get a bunch of gibberish back. Thank you!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/uncoast-unconf/uu-2019/issues/18#issuecomment-480008452, or mute the thread https://github.com/notifications/unsubscribe-auth/ACB1Fe4URfFN0u5ugVcC2U9XNi4t8Bdfks5vdkImgaJpZM4cbaut .

dshadravan commented 5 years ago

FYI - for Mac users, the recommendation (see link below) is to install Xcode. https://www.rstudio.com/products/rpackages/devtools/