无法在R中安装base64enc软件包

时间:2015-08-01 17:41:47

标签: r

这是我尝试将base64enc作为FastRweb的依赖项安装时收到的错误消息:

> install.packages('base64enc',,'http://www.rforge.net/')
Aviso en install.packages("base64enc", , "http://www.rforge.net/") :
 argument 'lib' is missing: using '/usr/local/lib/R/site-library'
probando la URL 'http://www.rforge.net/src/contrib/base64enc_0.1-3.tar.gz'
Content type 'application/x-gzip' length 7186 bytes
URL abierta
==================================================
downloaded 7186 bytes

* installing *source* package ‘base64enc’ ...
** libs
gcc -I/usr/share/R/include      -fpic  -std=gnu99 -O3 -pipe  -g -c base64.c -o base64.o
gcc -I/usr/share/R/include      -fpic  -std=gnu99 -O3 -pipe  -g -c uriencode.c -o uriencode.o
gcc -I/usr/share/R/include      -fpic  -std=gnu99 -O3 -pipe  -g -c utf8.c -o utf8.o
utf8.c: In function ‘utf8_check’:
utf8.c:75: warning: implicit declaration of function ‘XLENGTH’
gcc -shared -o base64enc.so base64.o uriencode.o utf8.o -L/usr/lib64/R/lib -lR
installing to /usr/local/lib/R/site-library/base64enc/libs
** R
** preparing package for lazy loading
** help
Aviso: ./man/dataURI.Rd:30: unknown macro '\href'
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  imposible cargar la biblioteca compartida '/usr/local/lib/R/site-library/base64enc/libs/base64enc.so':
  /usr/local/lib/R/site-library/base64enc/libs/base64enc.so: undefined symbol: XLENGTH
ERROR: loading failed
* removing ‘/usr/local/lib/R/site-library/base64enc’

The downloaded packages are in
        ‘/tmp/RtmpBfdYFV/downloaded_packages’
Mensajes de aviso perdidos
In install.packages("base64enc", , "http://www.rforge.net/") :
  installation of package 'base64enc' had non-zero exit status
> 

看起来包已下载,但在我的配置或安装脚本中出现了问题。 感谢

1 个答案:

答案 0 :(得分:1)

如果您使用的是Linux,最简单的方法是尝试直接从存储库安装它,例如

sudo apt-get install r-cran-base64enc

通过这种方式,它将安装所需的任何其他包。 R-CRAN包也可以这种方式使用,至少在Debian和相关发行版中是这样的(Ubuntu,Mint)。