sshping icon indicating copy to clipboard operation
sshping copied to clipboard

Add optional path specification to libssh.h, and instruction to use brew (for Mac)

Open guoquan opened this issue 3 years ago • 5 comments

Hence Mac is supported

guoquan avatar Nov 11 '20 05:11 guoquan

Apple silicon support next? Hopefully it will just build :smile:

ericcurtin avatar Nov 11 '20 14:11 ericcurtin

It looks like this was approved, but not merged?

studgeek avatar Jan 26 '22 18:01 studgeek

I actually just got a M1 Mac Mini for some aarch64 work I'm doing, might give this branch a whirl to see if it's still working today.

ericcurtin avatar Jan 26 '22 19:01 ericcurtin

Location is slightly different for me on an M1 using the same brew package.

LIBSSH_INCLUDE2 = /opt/homebrew/Cellar/libssh/0.9.6/include/libssh/libssh.h

Still working through it though, the includes in src/sshping.cos are not picking up the updated header path it seems.

wongjustin99 avatar Feb 19 '22 23:02 wongjustin99

Using https://github.com/spook/sshping/pull/27, I was able to get running as well.

wongjustin99 avatar Feb 19 '22 23:02 wongjustin99

Just tried this after merge and still having issues. I'm on an M1 MacBook Pro running the following, any suggestions?

brew install libssh
make -e LIBSSH_INCLUDE=/opt/homebrew/Cellar/libssh/0.10.4/include/libssh/libssh.h

Output is:

g++ -Wall -I ext/ -o bin/sshping src/sshping.cxx -lssh
src/sshping.cxx:38:10: fatal error: 'libssh/libssh.h' file not found
#include <libssh/libssh.h>
         ^~~~~~~~~~~~~~~~~
1 error generated.
make: *** [bin/sshping] Error 1

code-ape avatar Mar 03 '23 23:03 code-ape