You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeh I just end up getting the same error as seen in #728
checking for libssl... no
checking for libgcrypt... no
configure: error: cannot find OpenSSL or Libgcrypt,
try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH
root@36407269e7f8:/nodegit4/vendor/libssh2# which openssl
/usr/bin/openssl
root@36407269e7f8:/nodegit4/vendor/libssh2# openssl version
OpenSSL 1.0.1f 6 Jan 2014
root@36407269e7f8:/nodegit4/vendor/libssh2#
I've had this issue on Debian Jessie, and Alpine and Ubuntu Trusty. I've installed gcc 4.9. There must be a package missing somewhere. Trying to narrow it down.
I installed libssl-dev on Ubuntu and it built normally! 🎉 However, just like the other ticket, the build completes, the Release directory is empty, and config.log in the libssh2 folder is filled with errors about missing files. Fixes one error to give another.
I think we have a chicken & egg problem here. We are running the libssh2 configuration before openssl is built. I'm looking into how to do this all within GYP, because right now the libssh config is a lifecycle script.
Basically what I'm imagining we need:
Build libssh2 (requires openssl)
openssl builds
libssh2 configure runs, pointing to the newly built openssl (not sure how to do this with GYP)
In #774 I split apart the promises that kicked off the build and forced one to wait for the previous to complete and since then the builds have been successful for me on Ubuntu.
I bet there was an error in your initial install. npm install inside that directory should either fix it, or replay the error. That's our best bet at figuring out what died.
Edit: Oh shit you're on heroku? Interesting that you're not getting a prebuilt. You're definitely getting a build error earlier, it's just not error-coding out. I bet if you record the entire log, theres an error earlier in the process.
Activity
maxkorp commentedon Sep 2, 2015
@xifeiwu Do you still get this issue trying to build master?
samkelleher commentedon Nov 5, 2015
Compiling
0.5 mastergives the same error. Tried on clean and latest Ubuntu and Debian. I have no idea how this works on Travis.maxkorp commentedon Nov 5, 2015
if you cd into vendor/libssh2 and try
./configuredo you get any errors?samkelleher commentedon Nov 5, 2015
Yeh I just end up getting the same error as seen in #728
I've had this issue on Debian Jessie, and Alpine and Ubuntu Trusty. I've installed gcc 4.9. There must be a package missing somewhere. Trying to narrow it down.
samkelleher commentedon Nov 5, 2015
I installed
libssl-devon Ubuntu and it built normally! 🎉 However, just like the other ticket, the build completes, the Release directory is empty, and config.log in the libssh2 folder is filled with errors about missing files. Fixes one error to give another.tbranyen commentedon Nov 7, 2015
I think we have a chicken & egg problem here. We are running the libssh2 configuration before openssl is built. I'm looking into how to do this all within GYP, because right now the libssh config is a lifecycle script.
Basically what I'm imagining we need:
samkelleher commentedon Nov 7, 2015
In #774 I split apart the promises that kicked off the build and forced one to wait for the previous to complete and since then the builds have been successful for me on Ubuntu.
johnhaley81 commentedon Dec 10, 2015
@samkelleher let me know if you still get this as well please.
webjay commentedon Feb 15, 2016
This also just happened to me with
cd node_modules/nodegit && npm run-script recompileon Heroku:maxkorp commentedon Feb 15, 2016
I bet there was an error in your initial install.
npm installinside that directory should either fix it, or replay the error. That's our best bet at figuring out what died.webjay commentedon Feb 15, 2016
I tried again:
heroku run "npm install && cd node_modules/nodegit && npm install && npm run-script recompile":maxkorp commentedon Feb 15, 2016
What about without the
npm run-script recompileEdit: Oh shit you're on heroku? Interesting that you're not getting a prebuilt. You're definitely getting a build error earlier, it's just not error-coding out. I bet if you record the entire log, theres an error earlier in the process.