Как добавить поддержку jpeg в Fedora 22, чтобы R мог ее использовать?

2581
Krzysiek Setlak

Я получил ошибку, выглядящую следующим образом:

 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 и это не решает проблему. Есть ли решение? Что мне не хватает?

2
Смотрите это: http://r.789695.n4.nabble.com/Problems-install-jpeg-package-td4702363.html rcs 8 лет назад 0

1 ответ на вопрос

4
zagrimsan

You're missing development package for the JPEG library. openjpeg-libs is a runtime package, meaning it doesn't contain the header files needed when compiling source files that are using the library.

However, the openjpeg-libs is not the one you need, the right one based on a rpmfind.net search for the missing .h file is libjpeg-turbo-devel. And of course, you'd also need the corresponding run-time lib libjpeg-turbo.

Да, в Fedora 22 `jpeglib.h` определенно предоставляется` libjpeg-turbo-devel` mattdm 8 лет назад 1

Похожие вопросы