<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to install R geospatial libraries raster, terra, sf, ncdf4, etc in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/unable-to-install-r-geospatial-libraries-raster-terra-sf-ncdf4/m-p/4726#M1373</link>
    <description>&lt;P&gt;For the next soul looking for an answer, I managed to solve the issue with the next 2 Init scripts, it gets tricky in the apt or apt-get, that was the issue, sometimes it did update, sometimes it didn't, making it possible to find libmysqlclient21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;%sh&lt;/P&gt;&lt;P&gt;sudo rm -r /var/lib/apt/lists/*&amp;nbsp;&lt;/P&gt;&lt;P&gt;sudo apt clean &amp;amp;&amp;amp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;sudo apt update --fix-missing -y &amp;amp;&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;sudo apt install -y&amp;nbsp;libmysqlclient21&lt;/P&gt;&lt;P&gt;sudo apt install -y gdal-bin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;%sh&lt;/P&gt;&lt;P&gt;sudo apt --fix-missing -y update --fix-missing&lt;/P&gt;&lt;P&gt;sudo apt-get install -y libudunits2-dev libproj-dev libgeos-dev libgdal-dev&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2023 23:08:10 GMT</pubDate>
    <dc:creator>ArturoNuor</dc:creator>
    <dc:date>2023-05-16T23:08:10Z</dc:date>
    <item>
      <title>Unable to install R geospatial libraries raster, terra, sf, ncdf4, etc</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-install-r-geospatial-libraries-raster-terra-sf-ncdf4/m-p/4723#M1370</link>
      <description>&lt;P&gt;When trying to install any of this R libraries from a cmd cell/block on a notebook, or from the UI in the cluster I receive the same error,seeming that are unable to install dependecies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warning in utils::install.packages(pkgs, ...) :&lt;/P&gt;&lt;P&gt; installation of package ‘*****’ had non-zero exit status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me with this?&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 02:04:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-install-r-geospatial-libraries-raster-terra-sf-ncdf4/m-p/4723#M1370</guid>
      <dc:creator>ArturoNuor</dc:creator>
      <dc:date>2023-05-07T02:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to install R geospatial libraries raster, terra, sf, ncdf4, etc</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-install-r-geospatial-libraries-raster-terra-sf-ncdf4/m-p/4725#M1372</link>
      <description>&lt;P&gt;Hi @Debayan Mukherjee​&amp;nbsp;thanks for your reply, here are my R/Databricks details and the 3 main libraries and errors i am encountering:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;platform&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x86_64-pc-linux-gnu&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;version.string R version 4.1.3 (2022-03-10)&lt;/P&gt;&lt;P&gt;Runtime&lt;/P&gt;&lt;P&gt;11.3.x-scala2.12&lt;/P&gt;&lt;P&gt;11.3 LTS (includes Apache Spark 3.3.0, Scala 2.12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gdal&lt;/P&gt;&lt;P&gt;%r&lt;/P&gt;&lt;P&gt;install.packages("gdal", repos = "&lt;A href="http://cran.us.r-project.org" alt="http://cran.us.r-project.org" target="_blank"&gt;http://cran.us.r-project.org&lt;/A&gt;")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Installing package into ‘/local_disk0/.ephemeral_nfs/envs/rEnv-93f5aa20-8204-42c9-b813-cda1cb27ae08’&lt;/P&gt;&lt;P&gt;(as ‘lib’ is unspecified)&lt;/P&gt;&lt;P&gt;Warning: package ‘gdal’ is not available for this version of R&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A version of this package for your version of R might be available elsewhere,&lt;/P&gt;&lt;P&gt;see the ideas at&lt;/P&gt;&lt;P&gt;&lt;A href="https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages" alt="https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages" target="_blank"&gt;https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;terra&lt;/P&gt;&lt;P&gt;%r&lt;/P&gt;&lt;P&gt;install.packages("terra", repos = "&lt;A href="http://cran.us.r-project.org" alt="http://cran.us.r-project.org" target="_blank"&gt;http://cran.us.r-project.org&lt;/A&gt;")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* installing *source* package ‘terra’ ...&lt;/P&gt;&lt;P&gt;** package ‘terra’ successfully unpacked and MD5 sums checked&lt;/P&gt;&lt;P&gt;** using staged installation&lt;/P&gt;&lt;P&gt;configure: CC: gcc&lt;/P&gt;&lt;P&gt;configure: CXX: g++ -std=gnu++14&lt;/P&gt;&lt;P&gt;checking for gdal-config... no&lt;/P&gt;&lt;P&gt;no&lt;/P&gt;&lt;P&gt;configure: error: gdal-config not found or not executable.&lt;/P&gt;&lt;P&gt;ERROR: configuration failed for package ‘terra’&lt;/P&gt;&lt;P&gt;* removing ‘/local_disk0/.ephemeral_nfs/envs/rEnv-93f5aa20-8204-42c9-b813-cda1cb27ae08/terra’&lt;/P&gt;&lt;P&gt;Installing package into ‘/local_disk0/.ephemeral_nfs/envs/rEnv-93f5aa20-8204-42c9-b813-cda1cb27ae08’&lt;/P&gt;&lt;P&gt;(as ‘lib’ is unspecified)&lt;/P&gt;&lt;P&gt;trying URL '&lt;A href="http://cran.us.r-project.org/src/contrib/terra_1.7-29.tar.gz" alt="http://cran.us.r-project.org/src/contrib/terra_1.7-29.tar.gz" target="_blank"&gt;http://cran.us.r-project.org/src/contrib/terra_1.7-29.tar.gz&lt;/A&gt;'&lt;/P&gt;&lt;P&gt;Content type 'application/x-gzip' length 806064 bytes (787 KB)&lt;/P&gt;&lt;P&gt;==================================================&lt;/P&gt;&lt;P&gt;downloaded 787 KB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warning in utils::install.packages(pkgs, ...) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;installation of package ‘terra’ had non-zero exit status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The downloaded source packages are in&lt;/P&gt;&lt;P&gt;	‘/tmp/RtmpPqEEXP/downloaded_packages’&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;raster&lt;/P&gt;&lt;P&gt;%r&lt;/P&gt;&lt;P&gt;install.packages("raster", repos = "&lt;A href="http://cran.us.r-project.org" alt="http://cran.us.r-project.org" target="_blank"&gt;http://cran.us.r-project.org&lt;/A&gt;")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* installing *source* package ‘terra’ ...&lt;/P&gt;&lt;P&gt;** package ‘terra’ successfully unpacked and MD5 sums checked&lt;/P&gt;&lt;P&gt;** using staged installation&lt;/P&gt;&lt;P&gt;configure: CC: gcc&lt;/P&gt;&lt;P&gt;configure: CXX: g++ -std=gnu++14&lt;/P&gt;&lt;P&gt;checking for gdal-config... no&lt;/P&gt;&lt;P&gt;no&lt;/P&gt;&lt;P&gt;configure: error: gdal-config not found or not executable.&lt;/P&gt;&lt;P&gt;ERROR: configuration failed for package ‘terra’&lt;/P&gt;&lt;P&gt;* removing ‘/local_disk0/.ephemeral_nfs/envs/rEnv-93f5aa20-8204-42c9-b813-cda1cb27ae08/terra’&lt;/P&gt;&lt;P&gt;ERROR: dependency ‘terra’ is not available for package ‘raster’&lt;/P&gt;&lt;P&gt;* removing ‘/local_disk0/.ephemeral_nfs/envs/rEnv-93f5aa20-8204-42c9-b813-cda1cb27ae08/raster’&lt;/P&gt;&lt;P&gt;Installing package into ‘/local_disk0/.ephemeral_nfs/envs/rEnv-93f5aa20-8204-42c9-b813-cda1cb27ae08’&lt;/P&gt;&lt;P&gt;(as ‘lib’ is unspecified)&lt;/P&gt;&lt;P&gt;also installing the dependency ‘terra’&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trying URL '&lt;A href="http://cran.us.r-project.org/src/contrib/terra_1.7-29.tar.gz" alt="http://cran.us.r-project.org/src/contrib/terra_1.7-29.tar.gz" target="_blank"&gt;http://cran.us.r-project.org/src/contrib/terra_1.7-29.tar.gz&lt;/A&gt;'&lt;/P&gt;&lt;P&gt;Content type 'application/x-gzip' length 806064 bytes (787 KB)&lt;/P&gt;&lt;P&gt;==================================================&lt;/P&gt;&lt;P&gt;downloaded 787 KB&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 00:54:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-install-r-geospatial-libraries-raster-terra-sf-ncdf4/m-p/4725#M1372</guid>
      <dc:creator>ArturoNuor</dc:creator>
      <dc:date>2023-05-08T00:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to install R geospatial libraries raster, terra, sf, ncdf4, etc</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-install-r-geospatial-libraries-raster-terra-sf-ncdf4/m-p/4726#M1373</link>
      <description>&lt;P&gt;For the next soul looking for an answer, I managed to solve the issue with the next 2 Init scripts, it gets tricky in the apt or apt-get, that was the issue, sometimes it did update, sometimes it didn't, making it possible to find libmysqlclient21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;%sh&lt;/P&gt;&lt;P&gt;sudo rm -r /var/lib/apt/lists/*&amp;nbsp;&lt;/P&gt;&lt;P&gt;sudo apt clean &amp;amp;&amp;amp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;sudo apt update --fix-missing -y &amp;amp;&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;sudo apt install -y&amp;nbsp;libmysqlclient21&lt;/P&gt;&lt;P&gt;sudo apt install -y gdal-bin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;%sh&lt;/P&gt;&lt;P&gt;sudo apt --fix-missing -y update --fix-missing&lt;/P&gt;&lt;P&gt;sudo apt-get install -y libudunits2-dev libproj-dev libgeos-dev libgdal-dev&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 23:08:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-install-r-geospatial-libraries-raster-terra-sf-ncdf4/m-p/4726#M1373</guid>
      <dc:creator>ArturoNuor</dc:creator>
      <dc:date>2023-05-16T23:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to install R geospatial libraries raster, terra, sf, ncdf4, etc</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-install-r-geospatial-libraries-raster-terra-sf-ncdf4/m-p/4724#M1371</link>
      <description>&lt;P&gt;Hi, receiving this message means that&amp;nbsp;the package was not installed. There can be different reasons why this happens, which means there are also different ways to fix this. The most common cause when installing the required package is the existence of unresolved dependencies. Could you please check the same? &lt;/P&gt;&lt;P&gt;Please tag&amp;nbsp;&lt;A href="https://community.databricks.com/s/profile/0053f000000WWwvAAG" alt="https://community.databricks.com/s/profile/0053f000000WWwvAAG" target="_blank"&gt;@Debayan&lt;/A&gt;​&amp;nbsp;with your next comment so that I will get notified. Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 19:19:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-install-r-geospatial-libraries-raster-terra-sf-ncdf4/m-p/4724#M1371</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-05-07T19:19:18Z</dc:date>
    </item>
  </channel>
</rss>

