无法在R 3.3.0上安装data.table软件包

时间:2019-01-29 02:40:06

标签: r installation data.table

我尝试使用R 3.3.0安装'data.table'软件包,但它返回给定的错误,如下所示。我安装了所有必需的软件包,但对我没有任何帮助。

我用谷歌搜索了同样的问题,但是没有。

如果您遇到相同的问题,请分享您的经验以进行修复。现在对我来说很奇怪。

非常感谢, 肖恩

> install.packages('data.table')
Installing package into ‘/usr/lib64/R/library’
(as ‘lib’ is unspecified)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 3233k  100 3233k    0     0  2098k      0  0:00:01  0:00:01 --:--:-- 2205k
* installing *source* package ‘data.table’ ...
** package ‘data.table’ successfully unpacked and MD5 sums checked
** libs
gcc -m64 -std=gnu99 -I/usr/lib64/R/../../include/R -DNDEBUG  -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/zlib -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/xz -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/bzip2 -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include    -fopenmp -fpic  -g -O2  -c assign.c -o assign.o
gcc -m64 -std=gnu99 -I/usr/lib64/R/../../include/R -DNDEBUG  -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/zlib -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/xz -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/bzip2 -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include    -fopenmp -fpic  -g -O2  -c between.c -o between.o
gcc -m64 -std=gnu99 -I/usr/lib64/R/../../include/R -DNDEBUG  -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/zlib -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/xz -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/bzip2 -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include    -fopenmp -fpic  -g -O2  -c bmerge.c -o bmerge.o
gcc -m64 -std=gnu99 -I/usr/lib64/R/../../include/R -DNDEBUG  -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/zlib -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/xz -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/bzip2 -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include    -fopenmp -fpic  -g -O2  -c chmatch.c -o chmatch.o
gcc -m64 -std=gnu99 -I/usr/lib64/R/../../include/R -DNDEBUG  -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/zlib -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/xz -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/bzip2 -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include    -fopenmp -fpic  -g -O2  -c dogroups.c -o dogroups.o
gcc -m64 -std=gnu99 -I/usr/lib64/R/../../include/R -DNDEBUG  -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/zlib -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/xz -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/bzip2 -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include    -fopenmp -fpic  -g -O2  -c fastmean.c -o fastmean.o
gcc -m64 -std=gnu99 -I/usr/lib64/R/../../include/R -DNDEBUG  -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/zlib -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/xz -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/bzip2 -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include    -fopenmp -fpic  -g -O2  -c fcast.c -o fcast.o
gcc -m64 -std=gnu99 -I/usr/lib64/R/../../include/R -DNDEBUG  -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/zlib -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/xz -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/bzip2 -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include    -fopenmp -fpic  -g -O2  -c fmelt.c -o fmelt.o
gcc -m64 -std=gnu99 -I/usr/lib64/R/../../include/R -DNDEBUG  -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/zlib -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/xz -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include/bzip2 -I/builddir/build/BUILD/R-3.3.0/port/Linux-X64/include    -fopenmp -fpic  -g -O2  -c forder.c -o forder.o
forder.c: In function ‘range_str’:
forder.c:296: error: expected end of line before ‘update’
make: *** [forder.o] Error 1
ERROR: compilation failed for package ‘data.table’
* removing ‘/usr/lib64/R/library/data.table’

The downloaded source packages are in
        ‘/tmp/RtmpCfSYUU/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages("data.table") :
  installation of package ‘data.table’ had non-zero exit status

0 个答案:

没有答案