marinebon / p2p

Pole to Pole website
https://marinebon.github.io/p2p
3 stars 1 forks source link

R package install bugs with make_obis_monthly Github Action #26

Closed bbest closed 2 years ago

bbest commented 3 years ago
configure: error: 
--------------------------------------------------------------------------------
  Configuration failed because libudunits2.so was not found. Try installing:
    * deb: libudunits2-dev (Debian, Ubuntu, ...)
    * rpm: udunits2-devel (Fedora, EPEL, ...)
    * brew: udunits (OSX)
  If udunits2 is already installed in a non-standard location, use:
    --configure-args='--with-udunits2-lib=/usr/local/lib'
  if the library was not found, and/or:
    --configure-args='--with-udunits2-include=/usr/include/udunits2'
  if the header was not found, replacing paths with appropriate values.
  You can alternatively set UDUNITS2_INCLUDE and UDUNITS2_LIBS manually.
--------------------------------------------------------------------------------

See `config.log' for more details
ERROR: configuration failed for package ‘units’
bbest commented 3 years ago

Attempting fix with commit https://github.com/marinebon/p2p/commit/ef95e553bdd736f4ab1cad5df0da470439ea1072 adding:

- name: Fix units R package install asdf
        run: |
          apt install libudunits2-dev
bbest commented 3 years ago

Since running on Mac OSX:

  - name: Fix units R package install
     run: |
          brew install udunits
bbest commented 3 years ago

Now sf R package install issue with make_obis_monthly #7:

Installing sf [0.9-7] ...
    FAILED
Error: Error: install of package 'sf' failed [error code 1]
Error installing package 'sf':
==============================

* installing to library ‘/Users/runner/work/_temp/Library/.renv/1’
* installing *source* package ‘sf’ ...
** package ‘sf’ successfully unpacked and MD5 sums checked
** using staged installation
configure: CC: clang -mmacosx-version-min=10.13
configure: CXX: clang++ -mmacosx-version-min=10.13 -std=gnu++11
checking for gdal-config... no
no
configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package ‘sf’
* removing ‘/Users/runner/work/_temp/Library/.renv/1/sf’
Traceback (most recent calls last):
13: renv::restore()
12: renv_restore_run_actions(project, diff, current, lockfile, rebuild)
11: renv_install(records)
10: renv_install_staged(records)
 9: renv_install_default(records)
 8: handler(package, renv_install_impl(record))
 7: renv_install_impl(record)
 6: withCallingHandlers(renv_install_package_local(record), error = function(e) {
        vwritef("\tFAILED")
        writef(e$output)
    })
 5: renv_install_package_local(record)
 4: renv_install_package_local_impl(package, path)
 3: r_cmd_install(package, path)
 2: r_exec_error(package, output, "install", status)
 1: stop(error)
Execution halted
bbest commented 2 years ago

Should be fixed with https://github.com/marinebon/p2p/issues/28#issuecomment-966707807