I am fighting to install png and EBImage R package on my linux centos 7 machine. I have always this error message:
Error: package or namespace load failed for ‘png’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/home/rico/R/x86_64-redhat-linux-gnu-library/3.6/00LOCK-png/00new/png/libs/png.so': libpng16.so.16: cannot open shared object file: No such file or directory Error: loading failed Execution halted ERROR: loading failed * removing ‘/home/rico/R/x86_64-redhat-linux-gnu-library/3.6/png’ Warning in install.packages : installation of package ‘png’ had non-zero exit status The downloaded source packages are in ‘/tmp/RtmpX4o4D5/downloaded_packages’
I tried to do:
yum install libpng-devel
and it output me:
Package 2:libpng-devel-1.5.13-7.el7_2.x86_64 already installed and latest version Nothing to do
Any idea how to solve this issue ? Thanks.
I managed to install EBImage on my Linux centos 7 machine.
sudo cp /usr/local/lib/libpng16.so.16 /usr/lib resolved the issue