Update script not working

TheCableGuy96

Verified User
Joined
Apr 29, 2010
Messages
43
Hello,
I've been trying to update one of my servers with the DirectAdmin update script, however it's been failing with the following error:

====================================
In file included from urldata.h:156,
from base64.c:42:
ssh.h:150:4: error: #error "SCP/SFTP protocols require libssh2 0.16 or later"
make[2]: *** [base64.lo] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/curl-7.21.0/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/directadmin/custombuild/curl-7.21.0/lib'
make: *** [all-recursive] Error 1
====================================

I've installed libssh2 but it appears the script is using it's own version and not the systems version.

I emailed John at Tech support who advised me to edit the build script to find the:
doCURL()

funciton, then change:
./configure --disable-file

to be:
./configure --disable-file --without-ssl --without-libssh2

That did the trick but now my whole billing system is down as I cannot use cURL with SSL to order domains, process payments or anything.

I've emailed John again but I know he's always busy and was hoping someone on here might be able to help me out as I might not get a response from him till tomorrow.

Anyone any idea's how I can fix this please?
 
RESOLVED

For the benefit of others that may come across this.

It looks like older versions of DA used to ship with libssh2 and installed it to /usr/local.

This overrides the systems version in /usr

Solution: move libssh2 from /usr/local.
 
Thank you very much for posting this. I just ran in to the same issue while upgrading from an older custombuild script to a new one.

Removed the old libssh2 and let it use the installed system version and now curl and php compiled with no problem.
 
Back
Top