[R] install package av on centos 7

Schneider, Dominik dom|n|k@@chne|der @end|ng |rom w@u@edu
Fri Dec 13 22:55:44 CET 2019


It worked. Thank you for your help!
I found a v2.* of ffmpeg-libs installed evn though I had v3.* of the other ffmpeg packages so I removed this and then reinstalled ffmpeg ffmpeg-devel and ffmpeg-libs. I also removed the 'okay' repo I had installed and added rpmfusion repo as suggested although I am assuming this did not solve the problem in itself.

Thanks again!

-----Original Message-----
From: R-help <r-help-bounces using r-project.org> On Behalf Of Schneider, Dominik
Sent: Friday, December 13, 2019 11:01
To: Ivan Krylov <krylov.r00t using gmail.com>
Cc: r-help using r-project.org
Subject: Re: [R] install package av on centos 7

Hi Ivan - Thank you for the suggestion. Unfortunately after updating both ffmpeg and ffmpeg-devel from https://urldefense.proofpoint.com/v2/url?u=https-3A__centos.pkgs.org_7_okey-2Dx86-5F64_ffmpeg-2D3.2.4-2D1.el7.centos.x86-5F64.rpm.html&d=DwIFAg&c=C3yme8gMkxg_ihJNXS06ZyWk4EJm8LdrrvxQb-Je7sw&r=mfF42lNlc_eXjwWhfTYoU_T7y-aauTyI1-BCcVTO9VI&m=ALpbJngXym56rhboohPLRr4u5ssQzfjBbIY3prWRREA&s=oyGHLSUv4uBxQVPxwXQiyxoqoy1nzNuxLSZYWOIa_Y4&e=
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 
g++ av.so formats.o info.o init.o util.o video.o -L/usr/lib64 -lavfilter 
g++ -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 
g++ av.so formats.o info.o init.o util.o video.o -L/usr/lib64 -lavfilter 
g++ -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= 

______________________________________________
R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_mailman_listinfo_r-2Dhelp&d=DwIFAg&c=C3yme8gMkxg_ihJNXS06ZyWk4EJm8LdrrvxQb-Je7sw&r=mfF42lNlc_eXjwWhfTYoU_T7y-aauTyI1-BCcVTO9VI&m=ALpbJngXym56rhboohPLRr4u5ssQzfjBbIY3prWRREA&s=ojHuCBl-ucION0HgKAPjVRJSf4_Tc_gMhdWlgCo1xBk&e=
PLEASE do read the posting guide https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-2Dproject.org_posting-2Dguide.html&d=DwIFAg&c=C3yme8gMkxg_ihJNXS06ZyWk4EJm8LdrrvxQb-Je7sw&r=mfF42lNlc_eXjwWhfTYoU_T7y-aauTyI1-BCcVTO9VI&m=ALpbJngXym56rhboohPLRr4u5ssQzfjBbIY3prWRREA&s=Li66eYbxfucUVjfHZjU3c8lKSNcS1C4UsjfS5qEN3UA&e=
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list