* installing *source* package ‘ssh’ ...
** this is package ‘ssh’ version ‘0.9.4’
** package ‘ssh’ successfully unpacked and MD5 sums checked
** using staged installation
Package libssh was not found in the pkg-config search path.
Perhaps you should add the directory containing `libssh.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libssh' found
Using autobrew bundle: libssh-0.10.5-universal.tar.xz
tar: Error opening archive: Unrecognized archive format
mv: rename /Volumes/Builds/packages/big-sur-x86_64/results/4.6/ssh.Rcheck/00_pkg_src/ssh/.deps/lib/*.a to /Volumes/Builds/packages/big-sur-x86_64/results/4.6/ssh.Rcheck/00_pkg_src/ssh/.deps/*.a: No such file or directory
Using PKG_CFLAGS=-I/Volumes/Builds/packages/big-sur-x86_64/results/4.6/ssh.Rcheck/00_pkg_src/ssh/.deps/include
Using PKG_LIBS=-L/Volumes/Builds/packages/big-sur-x86_64/results/4.6/ssh.Rcheck/00_pkg_src/ssh/.deps/lib -lssh -lcrypto -lz -dynamic -Wl,-search_paths_first -lkrb5
---------------------------- [ANTICONF] --------------------------------
Configuration failed because libssh was not found. Try installing:
 * deb: libssh-dev (Debian, Ubuntu, etc)
 * rpm: libssh-devel (Fedora, EPEL)
 * brew: libssh (OSX)
If libssh is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libssh.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] ------------------------------
<stdin>:1:10: fatal error: 'libssh/libssh.h' file not found
#include <libssh/libssh.h>
         ^~~~~~~~~~~~~~~~~
1 error generated.
-------------------------------------------------------------------------
ERROR: configuration failed for package ‘ssh’
* removing ‘/Volumes/Builds/packages/big-sur-x86_64/results/4.6/ssh.Rcheck/ssh’