Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature ssh not detected on OSX #476

Closed
rkoster opened this issue Apr 9, 2015 · 6 comments
Closed

Feature ssh not detected on OSX #476

rkoster opened this issue Apr 9, 2015 · 6 comments
Assignees
Labels

Comments

@rkoster
Copy link

rkoster commented Apr 9, 2015

Similar to #430

Version: rugged-0.23.0b1

bundle exec irb
2.0.0-p481 :001 > require 'rugged'
 => true
2.0.0-p481 :002 > Rugged.features
 => [:threads, :https]
pkg-config --libs libssh2
-L/usr/local/Cellar/libssh2/1.5.0/lib -lssh2
@arthurschreiber
Copy link
Member

Did you build rugged from source? Can you post the output of mkmf.log? Please put it into a gist and put the link to the gist here, as the mkmf.log output can be quite verbose.

@rkoster
Copy link
Author

rkoster commented May 18, 2015

The mkmf.log files for rugged-0.23.0b1, rugged-0.23.0b2 and rugged-0.22.2 can be found here. On all versions ssh support was not detected.

@arthurschreiber
Copy link
Member

@carlosmn Looks like CMake can't find libssh2 😞 Any idea what might be causing this?

@arthurschreiber
Copy link
Member

Okay, I just checked on my machine, and it works fine on my machine:

$ pkg-config --libs libssh2
-L/usr/local/Cellar/libssh2/1.5.0/lib -lssh2

From my mkmf.log:

-- checking for module 'libssh2'
--   found libssh2, version 1.5.0

@carlosmn
Copy link
Member

My first guess would be that your login shell has either a different pkg-config from the one which can be found on the system, or that you have set a search path there which the CMake-called pkg-config wouldn't see.

One way to make sure that libssh2 can be found using the "normal" paths is to run brew link libssh2 which will make sure to create the right symlinks.

@rkoster
Copy link
Author

rkoster commented May 29, 2015

@carlosmn thanks for the hint about maybe using a different pkg-config. I got it working by doing a brew uninstall pkg-config && brew install pkg-config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants