fedora安装R包devtools

*** installing help indices
Warning in file.copy(file.path(R.home("doc"), "html", "R.css"), outman) :
  problem copying /usr/share/doc/R/html/R.css to /usr/lib64/R/library/00LOCK-textshaping/00new/textshaping/html/R.css: No such file or directory
  converting help for package ‘textshaping’
    finding HTML links ... done
    get_font_features                       html  
    shape_text                              html  
    text_width                              html  
    finding level-2 HTML links ... done

    textshaping-package                     html  
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (textshaping)
Warning in file.create(f.tg) :
  cannot create file '/usr/share/doc/R/html/packages.html', reason 'No such file or directory'
Warning in utils::make.packages.html(.Library, docdir = R.home("doc")) :
  cannot update HTML package index
* installing *source* package ‘ragg’ ...
** package ‘ragg’ successfully unpacked and MD5 sums checked
** using staged installation
Package libtiff-4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libtiff-4.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libtiff-4', required by 'virtual:world', not found
Package 'libjpeg', required by 'virtual:world', not found
Package libtiff-4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libtiff-4.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libtiff-4', required by 'virtual:world', not found
Package 'libjpeg', required by 'virtual:world', not found
Using PKG_CFLAGS=
Using PKG_LIBS=-lfreetype -lpng16 -ltiff -lz -ljpeg -lbz2
-----------------------------[ ANTICONF ]-------------------------------
Configuration failed to find one of freetype2 libpng libtiff-4 libjpeg. Try installing:
 * deb: libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev (Debian, Ubuntu, etc)
 * rpm: freetype-devel libpng-devel libtiff-devel libjpeg-turbo-devel (Fedora, CentOS, RHEL)
 * csw: libfreetype_dev libpng16_dev libtiff_dev libjpeg_dev (Solaris)
If freetype2 libpng libtiff-4 libjpeg is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a freetype2 libpng libtiff-4 libjpeg.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
-------------------------- [ERROR MESSAGE] ---------------------------
<stdin>:1:10: fatal error: ft2build.h: No such file or directory
compilation terminated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘ragg’
* removing ‘/usr/lib64/R/library/ragg’
ERROR: dependency ‘ragg’ is not available for package ‘pkgdown’
* removing ‘/usr/lib64/R/library/pkgdown’
ERROR: dependency ‘pkgdown’ is not available for package ‘devtools’
* removing ‘/usr/lib64/R/library/devtools’

The downloaded source packages are in
        ‘/tmp/RtmpccHk8a/downloaded_packages’
Updating HTML index of packages in '.Library'
Old packages: 'boot', 'class', 'cluster', 'codetools', 'data.table', 'dplyr',
  'forcats', 'foreign', 'fs', 'future', 'gargle', 'ggplot2', 'ggrepel',
  'httpuv', 'igraph', 'KernSmooth', 'lattice', 'lubridate', 'MASS', 'mgcv',
  'nlme', 'nnet', 'RcppArmadillo', 'RcppTOML', 'readr', 'readxl', 'rgeos',
  'rpart', 'RSQLite', 'rvcheck', 'sourcetools', 'spatial', 'spatstat.geom',
  'survival', 'tidygraph', 'tinytex', 'utf8', 'xfun'
Warning messages:
1: In install.packages(...) :
  installation of package ‘ragg’ had non-zero exit status
2: In install.packages(...) :
  installation of package ‘pkgdown’ had non-zero exit status
3: In install.packages(...) :
  installation of package ‘devtools’ had non-zero exit status
4: In file.create(f.tg) :
  cannot create file '/usr/share/doc/R/html/packages.html', reason 'No such file or directory'
5: In make.packages.html(.Library) : cannot update HTML package index

从48行开始,有报错信息,但39-48行有解决安装失败的方法,我的系统是fedora,所以重点看42行,执行 dnf install -y freetype-devel libpng-devel libtiff-devel libjpeg-turbo-devel

安装成功后,再次执行R -e "BiocManager::install('devtools')"

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

hqxzcy

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值