Tidyverse install

I am trying to get RStudio setup on my Linux box (Mint 18). Things appeared to be working fine and then I started to install packages, tidyverse being the first. I was getting a lot of "fatal error: stdint.h: No such file or directory" for each individual package within tidyverse. Tried the same thing from the command line with no luck. Below is the error message.

I'm running Mint 18, RStudio 1.1.455, R v3.2.3
Computer is AMD, 64GB memory, 1TB HD. Clean install as of this evening.

Did I miss the installation of something?

  • installing source package ‘fansi’ ...
    ** package ‘fansi’ successfully unpacked and MD5 sums checked
    ** libs
    gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c assumptions.c -o assumptions.o
    In file included from assumptions.c:20:0:
    /usr/lib/gcc/x86_64-linux-gnu/5/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory
    compilation terminated.
    /usr/lib/R/etc/Makeconf:134: recipe for target 'assumptions.o' failed
    make: *** [assumptions.o] Error 1
    ERROR: compilation failed for package ‘fansi’
  • removing ‘/home/david/R/x86_64-pc-linux-gnu-library/3.2/fansi’
    Warning in install.packages :
    installation of package ‘fansi’ had non-zero exit status

I figured out my issue. I had to install r-base-dev.

1 Like