Unable to install rgdal in RHEL 8 - R 4.0.5-1 - RStudio Server 4.11

Unable to install rgdal in RHEL 8 - R 4.0.5-1 - RStudio Server 4.11

install.packages('rgdal')
Installing package into ‘/usr/lib64/R/library’
(as ‘lib’ is unspecified)
trying URL 'https://dv011-cran01.development.nrscotland.gov.uk/cran/src/contrib/rgdal_1.5-23.tar.gz'
Content type 'application/x-gzip' length 4393536 bytes (4.2 MB)
==================================================
downloaded 4.2 MB

* installing *source* package ‘rgdal’ ...
** package ‘rgdal’ successfully unpacked and MD5 sums checked
** using staged installation
configure: R_HOME: /usr/lib64/R
configure: CC: gcc -m64
configure: CXX: g++ -m64 -std=gnu++11
configure: CFLAGS: -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
configure: CPPFLAGS: -I/usr/local/include
configure: CXXFLAGS: -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
configure: LDFLAGS: -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
configure: LDFLAGS: -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
configure: CXX11 is: g++ -m64, CXX11STD is: -std=gnu++11
configure: CXX is: g++ -m64 -std=gnu++11
configure: C++11 support available
configure: rgdal: 1.5-23
checking for /usr/bin/svnversion... no
configure: svn revision: 1121
checking for gdal-config... /usr/local/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 2.4.0
checking C++11 support for GDAL >= 2.3.0... yes
checking GDAL version >= 1.11.4... yes
checking GDAL version <= 2.5 or >= 3.0... yes
checking GDAL: linking with --libs only... no
checking GDAL: linking with --libs and --dep-libs... no
/usr/bin/ld: warning: libcrypto.so.10, needed by /usr/local/lib/libgdal.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libpng15.so.15, needed by /usr/local/lib/libgdal.so, not found (try using -rpath or -rpath-link)
/usr/local/lib/libgdal.so: undefined reference to `png_set_sRGB@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_text@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_color_type@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_create_write_struct@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `BIO_new_mem_buf@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_set_gAMA@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_tRNS@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `EVP_SignFinal@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_access_version_number@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_compression_strategy@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_packing@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_sig_cmp@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_sRGB@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_read_image@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_image_width@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `EVP_MD_CTX_destroy@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `EVP_PKEY_free@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_get_io_ptr@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_error@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_tRNS@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_read_rows@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_read_end@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_destroy_write_struct@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `BIO_free@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_get_error_ptr@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_channels@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_interlace_type@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_text@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_compression_level@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_write_image@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_write_rows@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_gAMA@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_destroy_read_struct@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `CRYPTO_get_id_callback@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_get_valid@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_cHRM@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `CRYPTO_num_locks@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_set_error_fn@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_rows@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_IHDR@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_write_info@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_bit_depth@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_cHRM@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_longjmp_fn@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `CRYPTO_set_locking_callback@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `EVP_DigestInit@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `EVP_DigestUpdate@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_read_info@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_PLTE@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_create_read_struct@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_read_fn@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `PEM_read_bio_PrivateKey@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_set_IHDR@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_iCCP@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_create_info_struct@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_PLTE@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_image_height@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `EVP_PKEY_size@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_read_png@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `EVP_sha256@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_get_iCCP@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `EVP_MD_CTX_create@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_set_write_fn@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `CRYPTO_set_id_callback@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_get_rowbytes@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_write_end@PNG15_0'
collect2: error: ld returned 1 exit status
/usr/bin/ld: warning: libcrypto.so.10, needed by /usr/local/lib/libgdal.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libpng15.so.15, needed by /usr/local/lib/libgdal.so, not found (try using -rpath or -rpath-link)
/usr/local/lib/libgdal.so: undefined reference to `png_set_sRGB@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_text@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_color_type@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_create_write_struct@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `BIO_new_mem_buf@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_set_gAMA@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_tRNS@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `EVP_SignFinal@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_access_version_number@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_compression_strategy@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_packing@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_sig_cmp@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_sRGB@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_read_image@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_image_width@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `EVP_MD_CTX_destroy@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `EVP_PKEY_free@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_get_io_ptr@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_error@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_tRNS@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_read_rows@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_read_end@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_destroy_write_struct@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `BIO_free@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_get_error_ptr@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_channels@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_interlace_type@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_text@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_compression_level@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_write_image@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_write_rows@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_gAMA@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_destroy_read_struct@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `CRYPTO_get_id_callback@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_get_valid@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_cHRM@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `CRYPTO_num_locks@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_set_error_fn@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_rows@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_IHDR@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_write_info@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_bit_depth@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_cHRM@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_longjmp_fn@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `CRYPTO_set_locking_callback@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `EVP_DigestInit@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `EVP_DigestUpdate@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_read_info@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_PLTE@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_create_read_struct@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_read_fn@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `PEM_read_bio_PrivateKey@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_set_IHDR@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_iCCP@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_create_info_struct@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_set_PLTE@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_get_image_height@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `EVP_PKEY_size@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_read_png@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `EVP_sha256@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_get_iCCP@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `EVP_MD_CTX_create@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_set_write_fn@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `CRYPTO_set_id_callback@libcrypto.so.10'
/usr/local/lib/libgdal.so: undefined reference to `png_get_rowbytes@PNG15_0'
/usr/local/lib/libgdal.so: undefined reference to `png_write_end@PNG15_0'
collect2: error: ld returned 1 exit status
configure: Install failure: compilation and/or linkage problems.
configure: error: GDALAllRegister not found in libgdal.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/usr/lib64/R/library/rgdal’
Warning in install.packages :
  installation of package ‘rgdal’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/Rtmp06N6ew/downloaded_packages’
Updating HTML index of packages in '.Library'
Warning in install.packages :
  cannot create file '/usr/share/doc/R/html/packages.html', reason 'Permission denied'
Warning in install.packages :
  cannot update HTML package index


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.