title: Error installing rgdal: API to be used not found
body: <p>I have Fedora Workstation 34.</p>
  <p>I have installed <code>gdal-devel</code> rpm on my system:</p>
  <p><code>sudo dnf install gdal-devel</code></p>
  <p>Now I am trying to install the R <code>rgdal</code> package.</p>
  <p>But the installation fails with the following error message:</p>
  <pre><code>configure: API to be used as yet undetermined, searching ...
  configure: error: API to be used not found
  ERROR: configuration failed for package ‘rgdal’
  * removing ‘/home/raffaele/R/x86_64-redhat-linux-gnu-library/4.0/rgdal’
  
  The downloaded source packages are in
      ‘/tmp/RtmpZRbq1a/downloaded_packages’
  
  
  ✔ Package 'rgdal' successfully installed.
  Warning message:
  In utils::install.packages(&quot;rgdal&quot;, repos = &quot;https://cran.rstudio.com/&quot;) :
    installation of package ‘rgdal’ had non-zero exit status
  </code></pre>
  <p>Please note that in the above the</p>
  <blockquote>
  <p>Package 'rgdal' successfully installed.</p>
  </blockquote>
  <p>is wrong.</p>
  <p>In particular it looks like it can't find an API.</p>
  <p>How can I fix this problem and install the <code>rgdal</code> R package?</p>