Skip to content

libarchive required for archive pkg from CRAN #358

Description

@nhsbsa-mamcp

I attempted to deploy an app with a dependency on the {archive} package. This has a dependency on libarchive. It seems it is not present on shinyapps.io servers.

Please could you add this?

Activity

  1. awosoga commented on Nov 22, 2023

    @awosoga

    Having this issue as well

  2. tdelcey commented on Jan 12, 2024

    @tdelcey

    Hi,

    Any news about this issue? I am encountering the same problem.

  3. kimsjune commented on Feb 26, 2024

    @kimsjune
    Contributor

    Same problem here. My error output looks like this:

    [2024-02-26T03:31:47.255868666+0000] Building R package: archive (1.1.7)
    /mnt/packages/build /mnt
    PKG_CONFIG_PATH=
    PKG_CFLAGS=
    PKG_LIBS=-larchive
    --------------------------- [ANTICONF] --------------------------------
    Configuration failed because libarchive was not found. Try installing:
     * deb: libarchive-dev (Debian, Ubuntu, etc)
     * rpm: libarchive-devel (Fedora, CentOS, RHEL)
     * csw: libarchive_dev (Solaris)
     * brew: libarchive (Mac OSX)
    If libarchive is already installed, check that 'pkg-config' is in your
    PATH and PKG_CONFIG_PATH contains a libarchive.pc file. If pkg-config
    is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
    R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
    --------------------------------------------------------------------
    * installing to library ‘/usr/lib/R’
    * installing *source* package ‘archive’ ...
    ** package ‘archive’ successfully unpacked and MD5 sums checked
    ** using staged installation
    <stdin>:1:10: fatal error: archive.h: No such file or directory
    compilation terminated.
    ERROR: configuration failed for package ‘archive’
    
  4. stevenolen commented on May 17, 2024

    @stevenolen
    Contributor

    I've put this on the team's backlog, but if someone is interesting in having support sooner, please feel free to open a PR!

  5. stevenolen commented on May 21, 2024

    @stevenolen
    Contributor

    thanks to @kimsjune for the PR, archive support is now available in shinyapps.io!

  6. added a commit that references this issue on Oct 9, 2024
  7. added a commit that references this issue on Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions