Cannot build R package “png” Fedora 20

我怕爱的太早我们不能终老 提交于 2019-12-04 02:12:09

For some R packages you need the corresponding development library to successfully install the R package. In your case this should do what you need

# Do the following in your terminal (not in an R session)
yum install libpng-devel

afterwards you should be able to install the R package

# Do the following in the R console (during an R session)
install.packages("png")

I had the same problem on Ubuntu (16.04) and solved it using

sudo apt-get install libpng-dev
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!