[R] install package av on centos 7
Schneider, Dominik
dom|n|k@@chne|der @end|ng |rom w@u@edu
Fri Dec 13 20:00:52 CET 2019
Hi Ivan - Thank you for the suggestion. Unfortunately after updating both ffmpeg and ffmpeg-devel from
https://centos.pkgs.org/7/okey-x86_64/ffmpeg-3.2.4-1.el7.centos.x86_64.rpm.html
it still will not install av in R.
any further suggestions?
(base) [dominik using cppc-server GoldStandard2]$ ffmpeg
ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-11)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --extra-cflags='-fPIC -I/usr/include/samba-4.0' --extra-ldflags='-lstdc++ -lsmbclient' --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-avresample --enable-videotoolbox --enable-bzlib --enable-fontconfig --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenh264 --enable-libopenjpeg --enable-librtmp --enable-libvorbis --enable-libx264 --enable-libxvid --enable-memalign-hack --extra-ldflags=-fPIC --extra-cflags=-fPIC --enable-pthreads --enable-postproc --enable-avfilter --enable-x11grab --enable-libopencv --enable-libcdio --enable-libfreetype --enable-libvo-amrwbenc --enable-libfdk-aac --enable-libfribidi --enable-libtheora --enable-libass --enable-libbluray --enable-libv4l2 --enable-openal --enable-libschroedinger --enable-libpulse --enable-gnutls --enable-openssl --enable-libspeex --enable-libgme --enable-libzmq --enable-libshine --enable-libsmbclient --enable-libgsm --enable-libtwolame --enable-libopus --enable-ladspa --enable-libcaca --enable-libiec61883 --enable-libssh --enable-libvidstab --enable-libwavpack --enable-libzvbi --enable-pic --enable-thumb --enable-libbs2b --enable-libx265 --enable-opengl --enable-libsnappy
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
> install.packages('av', configure.vars = c("LIB_DIR=/usr/lib64","INCLUDE_DIR=/usr/include/"))
Installing package into '/home/dominik/R/x86_64-pc-linux-gnu-library/3.5'
(as 'lib' is unspecified)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 720k 100 720k 0 0 1028k 0 --:--:-- --:--:-- --:--:-- 1028k
* installing *source* package 'av' ...
** package 'av' successfully unpacked and MD5 sums checked
Found INCLUDE_DIR and/or LIB_DIR!
Using PKG_CFLAGS=-I/usr/include/
Using PKG_LIBS=-L/usr/lib64 -lavfilter
** libs
rm -f av.so formats.o info.o init.o util.o video.o
gcc -std=gnu99 -I/opt/microsoft/ropen/3.5.3/lib64/R/include -DNDEBUG -I/usr/include/ -DU_STATIC_IMPLEMENTATION -fvisibility=hidden -fpic -DU_STATIC_IMPLEMENTATION -O2 -g -c formats.c -o formats.o
gcc -std=gnu99 -I/opt/microsoft/ropen/3.5.3/lib64/R/include -DNDEBUG -I/usr/include/ -DU_STATIC_IMPLEMENTATION -fvisibility=hidden -fpic -DU_STATIC_IMPLEMENTATION -O2 -g -c info.c -o info.o
gcc -std=gnu99 -I/opt/microsoft/ropen/3.5.3/lib64/R/include -DNDEBUG -I/usr/include/ -DU_STATIC_IMPLEMENTATION -fvisibility=hidden -fpic -DU_STATIC_IMPLEMENTATION -O2 -g -c init.c -o init.o
gcc -std=gnu99 -I/opt/microsoft/ropen/3.5.3/lib64/R/include -DNDEBUG -I/usr/include/ -DU_STATIC_IMPLEMENTATION -fvisibility=hidden -fpic -DU_STATIC_IMPLEMENTATION -O2 -g -c util.c -o util.o
gcc -std=gnu99 -I/opt/microsoft/ropen/3.5.3/lib64/R/include -DNDEBUG -I/usr/include/ -DU_STATIC_IMPLEMENTATION -fvisibility=hidden -fpic -DU_STATIC_IMPLEMENTATION -O2 -g -c video.c -o video.o
g++ -std=gnu++11 -shared -L/opt/microsoft/ropen/3.5.3/lib64/R/lib -o av.so formats.o info.o init.o util.o video.o -L/usr/lib64 -lavfilter -L/opt/microsoft/ropen/3.5.3/lib64/R/lib -lR
installing to /home/dominik/R/x86_64-pc-linux-gnu-library/3.5/av/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error: package or namespace load failed for 'av' in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/dominik/R/x86_64-pc-linux-gnu-library/3.5/av/libs/av.so':
/lib64/libavcodec.so.57: undefined symbol: opus_multistream_surround_encoder_create
Error: loading failed
Execution halted
ERROR: loading failed
* removing '/home/dominik/R/x86_64-pc-linux-gnu-library/3.5/av'
The downloaded source packages are in
'/tmp/RtmpVS3V8E/downloaded_packages'
Warning message:
In install.packages("av", configure.vars = c("LIB_DIR=/usr/lib64", :
installation of package 'av' had non-zero exit status
> install.packages('av', configure.vars = c("LIB_DIR=/usr/lib64","INCLUDE_DIR=/usr/include/ffmpeg"))
Installing package into '/home/dominik/R/x86_64-pc-linux-gnu-library/3.5'
(as 'lib' is unspecified)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 720k 100 720k 0 0 399k 0 0:00:01 0:00:01 --:--:-- 400k
* installing *source* package 'av' ...
** package 'av' successfully unpacked and MD5 sums checked
Found INCLUDE_DIR and/or LIB_DIR!
Using PKG_CFLAGS=-I/usr/include/ffmpeg
Using PKG_LIBS=-L/usr/lib64 -lavfilter
** libs
rm -f av.so formats.o info.o init.o util.o video.o
gcc -std=gnu99 -I/opt/microsoft/ropen/3.5.3/lib64/R/include -DNDEBUG -I/usr/include/ffmpeg -DU_STATIC_IMPLEMENTATION -fvisibility=hidden -fpic -DU_STATIC_IMPLEMENTATION -O2 -g -c formats.c -o formats.o
gcc -std=gnu99 -I/opt/microsoft/ropen/3.5.3/lib64/R/include -DNDEBUG -I/usr/include/ffmpeg -DU_STATIC_IMPLEMENTATION -fvisibility=hidden -fpic -DU_STATIC_IMPLEMENTATION -O2 -g -c info.c -o info.o
gcc -std=gnu99 -I/opt/microsoft/ropen/3.5.3/lib64/R/include -DNDEBUG -I/usr/include/ffmpeg -DU_STATIC_IMPLEMENTATION -fvisibility=hidden -fpic -DU_STATIC_IMPLEMENTATION -O2 -g -c init.c -o init.o
gcc -std=gnu99 -I/opt/microsoft/ropen/3.5.3/lib64/R/include -DNDEBUG -I/usr/include/ffmpeg -DU_STATIC_IMPLEMENTATION -fvisibility=hidden -fpic -DU_STATIC_IMPLEMENTATION -O2 -g -c util.c -o util.o
gcc -std=gnu99 -I/opt/microsoft/ropen/3.5.3/lib64/R/include -DNDEBUG -I/usr/include/ffmpeg -DU_STATIC_IMPLEMENTATION -fvisibility=hidden -fpic -DU_STATIC_IMPLEMENTATION -O2 -g -c video.c -o video.o
g++ -std=gnu++11 -shared -L/opt/microsoft/ropen/3.5.3/lib64/R/lib -o av.so formats.o info.o init.o util.o video.o -L/usr/lib64 -lavfilter -L/opt/microsoft/ropen/3.5.3/lib64/R/lib -lR
installing to /home/dominik/R/x86_64-pc-linux-gnu-library/3.5/av/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error: package or namespace load failed for 'av' in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/dominik/R/x86_64-pc-linux-gnu-library/3.5/av/libs/av.so':
/lib64/libavcodec.so.57: undefined symbol: opus_multistream_surround_encoder_create
Error: loading failed
Execution halted
ERROR: loading failed
* removing '/home/dominik/R/x86_64-pc-linux-gnu-library/3.5/av'
The downloaded source packages are in
'/tmp/RtmpVS3V8E/downloaded_packages'
Warning message:
In install.packages("av", configure.vars = c("LIB_DIR=/usr/lib64", :
installation of package 'av' had non-zero exit status
>
-----Original Message-----
From: Ivan Krylov <krylov.r00t using gmail.com>
Sent: Friday, December 13, 2019 02:06
To: Schneider, Dominik <dominik.schneider using wsu.edu>
Cc: r-help using r-project.org
Subject: Re: [R] install package av on centos 7
On Mon, 9 Dec 2019 18:03:17 +0000
"Schneider, Dominik" <dominik.schneider using wsu.edu> wrote:
> (base) [dominik using cppc-server ffmpeg]$ ffmpeg ffmpeg version 2.8.15
> Copyright (c) 2000-2018 the FFmpeg developers
According to SystemRequirements of av [*], it needs ffmpeg >= 3.2.
There is FFmpeg 3.4.7 for RHEL 7 in the RPM Fusion repo [**], which should be possible on CentOS 7. Try this version instead of 2.8.15 from Nux Dextop.
--
Best regards,
Ivan
[*] https://urldefense.proofpoint.com/v2/url?u=https-3A__cran.r-2Dproject.org_package-3Dav&d=DwICAg&c=C3yme8gMkxg_ihJNXS06ZyWk4EJm8LdrrvxQb-Je7sw&r=mfF42lNlc_eXjwWhfTYoU_T7y-aauTyI1-BCcVTO9VI&m=BeHA4IOom-6-VTtfrGh08ztY42Wiy_Qrielm4l3YfdU&s=3yeHj1gLh2dp8tEsItyw9QqsrecnlTSg9FEpe94dKcQ&e=
[**]
https://urldefense.proofpoint.com/v2/url?u=https-3A__download1.rpmfusion.org_free_el_updates_7_x86-5F64_repoview_ffmpeg.html&d=DwICAg&c=C3yme8gMkxg_ihJNXS06ZyWk4EJm8LdrrvxQb-Je7sw&r=mfF42lNlc_eXjwWhfTYoU_T7y-aauTyI1-BCcVTO9VI&m=BeHA4IOom-6-VTtfrGh08ztY42Wiy_Qrielm4l3YfdU&s=Vtsrx5Rbu2uyWS6EMBJtLx5-czVCxRPOkrUNXRDdEIw&e=
More information about the R-help
mailing list