Open Ammar7347 opened 5 years ago
P.S. I think it only happens when I try to make a sector file with a huge size (like 987 GB) but I'm not sure though.
no i don't think so, this has to do with how libcurl was compiled.
i made some changes to better detect this issue, can you run git pull
, then re-compile, and try again?
Okay here's what I get now :
root@debian9pt:~/cacdrive# sudo ./a.out config.conf api-tests
error: libcurl was not compiled with SSL/TLS support, which cacdrive requires (TLS is required to login @cac cloud storage system)
root@debian9pt:~/cacdrive# sudo ./a.out config.conf
error: libcurl was not compiled with SSL/TLS support, which cacdrive requires (TLS is required to login @cac cloud storage system)
root@debian9pt:~/cacdrive#
thought so, you have a custom compiled libcurl, and the person compiling it did not run ./configure --with-ssl
when compiling your libcurl. cacdrive requires a libcurl compiled with --with-ssl
(or 1 of the ssl alternatives, --with-ssl
if you have OpenSSL, --with-gnutls
if you have GnuTLS, --with-nss
if you have NSS, --with-polarssl
if you have PolarSSL, --with-mbedtls
if you have mbedTLS) given to ./configure during libcurl compilation. did you compile libcurl yourself?
Yes, I compiled libcurl myself but I compiled with the SSL option. For the troubleshooting purpose, I deleted the libcurl completely and compiled the libcurl again using ./configure --with-ssl
but I get the same error. Maybe it has to do with the path of my libcurl?
what do you get from
find / -iname "*curl*.so" 2>/dev/null
? and what do you get from
sudo ldd ./a.out config.conf api-tests
?
ok, best guess: you have multiple versions of libcurl installed, the version that get loaded automatically upon execution is /usr/local/lib/libcurl.so.4
, which was not compiled with ssl/tls support. your custom compiled libcurl is in /root/curl/curl-7.63.0/lib/.libs/libcurl.so
, which is compiled with ssl/tls support.
if the 2 versions are otherwise incompatible, the following commands could theoretically break some other programs, but check if this helps:
mv '/usr/local/lib/libcurl.so.4' '/usr/local/lib/libcurl.so.4.backup' ;
cp '/root/curl/curl-7.63.0/lib/.libs/libcurl.so' '/usr/local/lib/libcurl.so.4' ;
chown --reference='/usr/local/lib/libcurl.so.4.backup' '/usr/local/lib/libcurl.so.4' ;
chmod --reference='/usr/local/lib/libcurl.so.4.backup' '/usr/local/lib/libcurl.so.4' ;
then run ./a.out api-tests
again
I had to manually install the libcurl because the latest version of libcurl which is required for this cacdrive isn't available in Deb 9 repos.
... can you try to contact me on facebook or discord? i want to check this personally, contact info at https://stackoverflow.com/users/1067003/hanshenrik?tab=profile
I've sent you a friend request on Discord. Thanks for helping me out. I really appreciate it :)
Hi,
I'm getting the following errors. You can find the logs below:
P.S. I think it only happens when I try to make a sector file with a huge size (like 987 GB) but I'm not sure though.