Error in Textshaping package, can't deploy on another server

Error message:
Error installing package 'textshaping':

  • installing source package ‘textshaping’ ...
    ** package ‘textshaping’ successfully unpacked and MD5 sums checked
    ** using staged installation
    Package fribidi was not found in the pkg-config search path.
    Perhaps you should add the directory containing `fribidi.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'fribidi' found
    Using PKG_CFLAGS=
    Using PKG_LIBS=-lfreetype -lharfbuzz -lfribidi -lpng
    --------------------------- [ANTICONF] --------------------------------
    Configuration failed to find the harfbuzz freetype2 fribidi library. Try installing:
  • deb: libharfbuzz-dev libfribidi-dev (Debian, Ubuntu, etc)
  • rpm: harfbuzz-devel fribidi-devel (Fedora, EPEL)
  • csw: libharfbuzz_dev libfribidi_dev (Solaris)
  • brew: harfbuzz fribidi (OSX)
    If harfbuzz freetype2 fribidi is already installed, check that 'pkg-config' is in your
    PATH and PKG_CONFIG_PATH contains a harfbuzz freetype2 fribidi.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=...'
    -------------------------- [ERROR MESSAGE] ---------------------------
    :1:10: fatal error: hb-ft.h: No such file or directory
    compilation terminated.

ERROR: configuration failed for package ‘textshaping’

  • removing ‘/usr/local/lib/R/site-library/.renv/1/textshaping’
    Error: install of package 'textshaping' failed [error code 1]
    In addition: Warning message:
    The 'yaml' package is required to parse dependencies within R Markdown files
    Consider installing it with install.packages("yaml").
    Traceback (most recent calls last):
    11: renv::install()
    10: renv_install_impl(records)
    9: renv_install_staged(records)
    8: renv_install_default(records)
    7: handler(package, renv_install_package(record))
    6: renv_install_package(record)
    5: withCallingHandlers(renv_install_package_impl(record), error = function(e) {
    4: renv_install_package_impl(record)
    3: r_cmd_install(package, path)
    2: r_exec_error(package, output, "install", status)
    1: stop(error)
    Execution halted
    The command '/bin/sh -c ./' returned a non-zero code: 1
    2023/04/29 14:17:34 Container failed during run: build. No retries remaining.
    failed to run step ID: build: exit status 1

Run ID: cb3fw failed after 10m32s. Error: failed during run, err: exit status 1

is their any alternative package I can use?

If you are manging your own server, you need to install the system libraries mentioned on the error message. To give you more specify advice, we will need specifics about your deployment setup (like the OS at the very least).

how to install harfbuzz freetype2 fribidi library on windows?

That is confusing, you can't run shiny server on Windows, and the error message you are showing suggests you are trying to install the conflicting package on a Linux machine.

But to answer your follow up question, on Windows it is simpler to just install the precompiled binary.

This topic was automatically closed 42 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.