Error while installing fs package

I tried to install tidyverse on a shared computing cluster but it gives me an error when installing the fs package. So I directly install the fs package, but it gives me the same error, as shown below. Can anyone help?

> install.packages('fs')
Installing package into ‘/home/awjhong/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/fs_1.5.0.tar.gz'
Content type 'application/x-gzip' length 796244 bytes (777 KB)
==================================================
downloaded 777 KB

* installing *source* package ‘fs’ ...
** package ‘fs’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
g++ -std=gnu++11 -I"/scg/apps/software/r/4.0.3/lib64/R/include" -DNDEBUG -I./libuv-1.38.1/include -I. -pthread  -I/usr/local/include   -fpic  -mtune=generic -march=x86-64  -c id.cc -o id.o
g++ -std=gnu++11 -I"/scg/apps/software/r/4.0.3/lib64/R/include" -DNDEBUG -I./libuv-1.38.1/include -I. -pthread  -I/usr/local/include   -fpic  -mtune=generic -march=x86-64  -c file.cc -o file.o
g++ -std=gnu++11 -I"/scg/apps/software/r/4.0.3/lib64/R/include" -DNDEBUG -I./libuv-1.38.1/include -I. -pthread  -I/usr/local/include   -fpic  -mtune=generic -march=x86-64  -c utils.cc -o utils.o
g++ -std=gnu++11 -I"/scg/apps/software/r/4.0.3/lib64/R/include" -DNDEBUG -I./libuv-1.38.1/include -I. -pthread  -I/usr/local/include   -fpic  -mtune=generic -march=x86-64  -c link.cc -o link.o
g++ -std=gnu++11 -I"/scg/apps/software/r/4.0.3/lib64/R/include" -DNDEBUG -I./libuv-1.38.1/include -I. -pthread  -I/usr/local/include   -fpic  -mtune=generic -march=x86-64  -c path.cc -o path.o
g++ -std=gnu++11 -I"/scg/apps/software/r/4.0.3/lib64/R/include" -DNDEBUG -I./libuv-1.38.1/include -I. -pthread  -I/usr/local/include   -fpic  -mtune=generic -march=x86-64  -c getmode.cc -o getmode.o
g++ -std=gnu++11 -I"/scg/apps/software/r/4.0.3/lib64/R/include" -DNDEBUG -I./libuv-1.38.1/include -I. -pthread  -I/usr/local/include   -fpic  -mtune=generic -march=x86-64  -c fs.cc -o fs.o
g++ -std=gnu++11 -I"/scg/apps/software/r/4.0.3/lib64/R/include" -DNDEBUG -I./libuv-1.38.1/include -I. -pthread  -I/usr/local/include   -fpic  -mtune=generic -march=x86-64  -c init.cc -o init.o
g++ -std=gnu++11 -I"/scg/apps/software/r/4.0.3/lib64/R/include" -DNDEBUG -I./libuv-1.38.1/include -I. -pthread  -I/usr/local/include   -fpic  -mtune=generic -march=x86-64  -c dir.cc -o dir.o
g++ -std=gnu++11 -I"/scg/apps/software/r/4.0.3/lib64/R/include" -DNDEBUG -I./libuv-1.38.1/include -I. -pthread  -I/usr/local/include   -fpic  -mtune=generic -march=x86-64  -c error.cc -o error.o
g++ -std=gnu++11 -I"/scg/apps/software/r/4.0.3/lib64/R/include" -DNDEBUG -I./libuv-1.38.1/include -I. -pthread  -I/usr/local/include   -fpic  -mtune=generic -march=x86-64  -c unix/getmode.cc -o unix/getmode.o
gcc -I"/scg/apps/software/r/4.0.3/lib64/R/include" -DNDEBUG -I./libuv-1.38.1/include -I. -pthread  -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic  -c bsd/setmode.c -o bsd/setmode.o
gcc -I"/scg/apps/software/r/4.0.3/lib64/R/include" -DNDEBUG -I./libuv-1.38.1/include -I. -pthread  -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic  -c bsd/strmode.c -o bsd/strmode.o
gcc -I"/scg/apps/software/r/4.0.3/lib64/R/include" -DNDEBUG -I./libuv-1.38.1/include -I. -pthread  -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic  -c bsd/reallocarray.c -o bsd/reallocarray.o
(cd libuv-1.38.1 \
&& CC="gcc" CFLAGS="-march=x86-64 -mtune=generic  -I/usr/local/include -fpic -fvisibility=hidden" AR="ar" RANLIB="ranlib" LDFLAGS="-L/usr/local/lib64" ./configure --quiet)
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move 'conftest.nmT' to 'conftest.nm': No such file or directory
mv: cannot move 'conftest.o' to 'conftstm.o': No such file or directory
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move 'conftest.er1' to 'conftest.err': No such file or directory
mv: cannot move './confbruET2/out' to 'Makefile': No such file or directory
config.status: error: could not create Makefile
make: *** [libuv-1.38.1/Makefile] Error 1
ERROR: compilation failed for package ‘fs’
* removing ‘/home/awjhong/R/x86_64-pc-linux-gnu-library/4.0/fs’
* restoring previous ‘/home/awjhong/R/x86_64-pc-linux-gnu-library/4.0/fs’
Warning in install.packages :
  installation of package ‘fs’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/Rtmp5FNdJk/downloaded_packages’

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.