我看到如下错误:
gcc -m64 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c read.c -o read.o
In file included from read.c:1:0:
rjcommon.h:11:21: fatal error: jpeglib.h: No such file or directory
compilation terminated.
/usr/lib64/R/etc/Makeconf:134: recipe for target 'read.o' failed
make: *** [read.o] Error 1
ERROR: compilation failed for package ‘jpeg’
* removing ‘/home/-/R/x86_64-redhat-linux-gnu-library/3.2/jpeg’
Warning in install.packages :
installation of package ‘jpeg’ had non-zero exit status
ERROR: dependency ‘jpeg’ is not available for package ‘ggmap’
* removing ‘/home/-/R/x86_64-redhat-linux-gnu-library/3.2/ggmap’
Warning in install.packages :
installation of package ‘ggmap’ had non-zero exit status
因此,据我所知,R基本上无法获得jpeg支持,但是我已经安装了:
http://rpmfind.net/linux/rpm2html/search.php?query=openjpeg-libs%28x86-32%29
对于Fedora 22 x64,它不能解决问题。有什么解决办法吗?我想念什么?
您缺少JPEG库的开发包。openjpeg-libs
是一个运行时程序包,这意味着它不包含编译使用该库的源文件时所需的头文件。
但是,这openjpeg-libs
不是您需要的文件,基于rpmfind.net搜索丢失.h
文件的正确文件是libjpeg-turbo-devel
。当然,您还需要相应的运行时liblibjpeg-turbo
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句