Entering edit mode
Hi All,
I am having a issue in R packages installation on HPC. After loading R and lippng on HPC, it keeps showing the below error if I try to install any R packages from bioconductor; do you have any idea how to resolve this?
srun --pty --partition=k2-hipri --mem-per-cpu=10G bash
module load R/4.1.0/gcc-9.3.0+lapack-3.9.0+blas-3.8.0
module load libpng/16
Error;
*
* using staged installation
** libs
/opt/gridware/depots/54e7fb3c/el7/pkg/compilers/gcc/9.3.0/bin/gcc -I"/opt/gridware/depots/54e7fb3c/el7/pkg/apps/R/4.1.3/gcc-9.3.0+lapack-3.9.0+blas-3.8.0/lib64/R/include" -DNDEBUG -I/opt/gridware/depots/54e7fb3c/el7/pkg/compilers/gcc/9.3.0/include `libpng-config --cflags` -fpic -g -O2 -c read.c -o read.o
Package libpng was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpng.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libpng' found
Hi James, Thanks but now getting another issue and followed by some more errors;
Many thanks,
Try
BiocManager::install("png")
Thanks Marcel, again getting error;
Many thanks
Is that after doing
Also, the error for missing -lnlopt means you don't have the NLopt headers. You might need to either have your sysadmin install NLopt, or install it yourself.
Yes James, after loading libpng/16. I am not sure how I can add it to my path;
Many thanks
If I try to install NLopt then also it shows error;
Many thanks,
Many thanks for your all help. This issue is sorted by our HPC admin. There was some wrong path settings in R environment.
Thanks, nabiyogesh