rkitover/net-ssh2

Can't build under Sierra

timarc opened this issue · 2 comments

I have following issue.
I've install all required libraries with Homebrew for net::ssh2 compilation(openssl, libssh2), but can't build Net::SSH2 itself.

perl 5.18 default on Sierra.

Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.

Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.

Looking for libraries...
Unable to find a working version of library ssh2 in the following directories: ...
salva commented

When the Makefile.PL detects it is running on a Mac, it unconditionally tries to install openssl and libssh2 using brew, but it seems that recent versions of brew refuse to run as root for security reasons.

That's the reason for the Error:... messages in the OP. But those errors are harmless as the result codes from the brew calls are ignored.

@timarc, you should be able to use Makefile.PL lib and inc arguments to specify the location of the libssh2 files (where brew installed them), for instance:

perl Makefile.PL lib=$HOME/libssh2/lib inc=$HOME/libssh2/include

Hello

So it works well. Thank you very much for your help.

Regards,
Marc-@

On Nov 8, 2016, at 10:11, Salvador Fandiño notifications@github.com wrote:

When the Makefile.PL detects it is running on a Mac, it unconditionally tries to install openssl and libssh2 using brew, but it seems that recent versions of brew refuse to run as root for security reasons.

That's the reason for the Error:... messages in the OP. But those errors are harmless, the result codes from the brew calls are ignored.

@timarc https://github.com/timarc, you should be able to use Makefile.PL lib and inc arguments to specify the location of the libssh2 files (where brew installed them), for instance:

perl Makefile.PL lib=$HOME/libssh2/lib inc=$HOME/libssh2/include


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #38 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AWQim2dpXypl2y_BlYMbuAKU-vMgzftUks5q8JEJgaJpZM4Ksgp9.