brms package installation failed - openssl issue

Hi I'm trying to install the brms pacakge on R version 4.0.2 running on Mac OS Big Sur 11.6. I'm running into some issues that I can't resolve. I get the following error message:

  • installing source package ‘openssl’ ...
    ** package ‘openssl’ successfully unpacked and MD5 sums checked
    ** using staged installation
    Homebrew 3.2.17
    Homebrew/homebrew-core (git revision 6b380bb503e; last commit 2021-10-21)
    /Users/canlab/.R/Makevars:15: *** missing separator. Stop.
    /Users/canlab/.R/Makevars:15: *** missing separator. Stop.
    /Users/canlab/.R/Makevars:15: *** missing separator. Stop.
    Using PKG_CFLAGS=-I/usr/local/opt/openssl/include
    --------------------------- [ANTICONF] --------------------------------
    Configuration failed because openssl was not found. Try installing:
  • deb: libssl-dev (Debian, Ubuntu, etc)
  • rpm: openssl-devel (Fedora, CentOS, RHEL)
  • csw: libssl_dev (Solaris)
  • brew: openssl@1.1 (Mac OSX)
    If openssl is already installed, check that 'pkg-config' is in your
    PATH and PKG_CONFIG_PATH contains a openssl.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] ---------------------------
    ./configure: line 57: -I/usr/local/opt/openssl/include: No such file or directory

I have openssl installed using homebrew. But I don't understand how to perform the recommended steps to check 'pkg-config' is in my path and what to replace the "..." with in the RCMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=..' command.

Any assistance with this would be much appreciated. Thanks!


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