Solved configure: error: libcurl not found. libcurl (e.g. libcurl-devel) is required in order to build freshclam and clamsubmit.

MaXi32

Verified User
Joined
Jul 25, 2016
Messages
659
Location
The Earth
During Directadmin stable release installation I got this error but curl is installed. Tested maybe 3 times and the installation terminated itself. I think maybe clamAV has a new version. What should be the version of curl?:

Code:
....
checking whether signed right shift is sign extended... yes
checking for recvmsg... yes
checking for sendmsg... yes
checking for msg_control field in struct msghdr... yes
checking BSD 4.4 / RFC2292 style fd passing... yes
checking for NCURSES... yes
checking for llvm-config... no
checking LFS safe fts implementation... yes
checking for libcurl installation... configure: error: libcurl not found. libcurl (e.g. libcurl-devel) is required in order to build freshclam and clamsubmit.

*** There was an error while trying to configure clamav.

Curl version is there:

Code:
root@fortheworld:~# curl -V
curl 7.64.0 (x86_64-pc-linux-gnu) libcurl/7.64.0 OpenSSL/1.1.1d zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3
Release-Date: 2019-02-06
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL


Code:
I have included this options.conf before DA installation:

#PHP Settings
php1_release=7.4
php1_mode=php-fpm
php2_release=7.3
php2_mode=php-fpm
php3_release=no
php3_mode=php-fpm
php4_release=no
php4_mode=php-fpm
secure_php=yes
php_ini=yes
php_timezone=Asia/Kuala_Lumpur
php_ini_type=production
x_mail_header=yes

#MySQL Settings
mysql=8.0
mariadb=10.4
mysql_inst=mariadb
mysql_backup=yes
mysql_backup_gzip=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups
mysql_force_compile=no

#WEB Server Settings
unit=no
webserver=nginx_apache
http_methods=ALL
litespeed_serialno=trial
modsecurity=yes
modsecurity_ruleset=comodo
apache_ver=2.4
apache_mpm=auto
mod_ruid2=no
userdir_access=no
harden_symlinks_patch=yes
use_hostname_for_alias=yes
redirect_host_https=yes

#WEB Applications Settings
phpmyadmin=yes
phpmyadmin_public=yes
phpmyadmin_ver=5
squirrelmail=no
roundcube=yes
webapps_inbox_prefix=no

#ClamAV-related Settings
clamav=yes
clamav_exim=yes
modsecurity_uploadscan=yes
proftpd_uploadscan=no
pureftpd_uploadscan=yes
suhosin_php_uploadscan=no

#Mail Settings
exim=yes
eximconf=yes
eximconf_release=4.5
blockcracking=yes
easy_spam_fighter=yes
spamd=rspamd
sa_update=daily
dovecot=yes
dovecot_conf=yes
mail_compress=yes
pigeonhole=yes

#FTP Settings
ftpd=pureftpd

#Statistics Settings
awstats=no
webalizer=yes

#PHP Extension Settings
#CustomBuild Settings
custombuild=2.0
custombuild_plugin=yes
autover=yes
bold=yes
clean=yes
cleanapache=yes
clean_old_tarballs=yes
clean_old_webapps=yes
downloadserver=files.directadmin.com
unofficial_mirrors=no

#Cronjob Settings
cron=no
cron_frequency=daily
[email protected]
notifications=yes
da_autoupdate=no
updates=no
webapps_updates=yes

#CloudLinux Settings
cloudlinux=no
cloudlinux_beta=no
cagefs=no

#Advanced Settings
autoconf=yes
automake=yes
libtool=yes
curl=yes
new_pcre=yes
ssl_configuration=intermediate

Found this similar post about installing curl but curl is already installed:


Operating System is Debian 10 64-bit.
 
libcurl-devel should be installed first with preinstall requirements. Have you tried again with yum?
 
@maxi32 I'm not sure, but I think I've got it fixed, please try new install commands again (run /usr/local/directadmin/custombuild/build update before if you'll be using the same machine).
 
libcurl-devel should be installed first with preinstall requirements. Have you tried again with yum?

thanks for your suggestion but the error that I've mentioned above occurred in Debian OS. CentOS might have no problem with this error because I think libcurl-devel is one of the pre-installed commands for CentOS.

@maxi32 I'm not sure, but I think I've got it fixed, please try new install commands again (run /usr/local/directadmin/custombuild/build update before if you'll be using the same machine).

Sorry that it took a while to test this. Unfortunately, I still got the same error on a clean installation few hours after your post but ...

I reinstalled DA again (clean server) but this time I executed this command first before running setup.sh script:

Bash:
sudo apt-get install libcurl4-openssl-dev

it works, installation has finished.

I think maybe this should be included in the pre-installed command for Debian? Thanks a lot.
 
Last edited:
That's what it was supposed to do, when I asked to try again :)

thanks @smtalk. Did you update that in pre-release version or stable. I just tried again today and still doesn't work without installing libcurl4-openssl-dev for Debian first. The problem only occured when the options.conf contains clamav=yes before running setup.sh.

EDIT: I posted about nginx_apache problem here before but it's now working
 
Last edited:
thanks @smtalk. Did you update that in pre-release version or stable. I just tried again today and still doesn't work without installing libcurl4-openssl-dev for Debian first. The problem only occured when the options.conf contains clamav=yes before running setup.sh.

EDIT: I posted about nginx_apache problem here before but it's now working
I don't think it was latest revision of the CustomBuild script. I don't see how may it skip libcurl4-openssl-dev in the code. If you didn't update CustomBuild after ("./build update"), you may see the version you have.
 
Is this something all Debian systems need installed? Did we add it to the preinstall commands and documentation?
It's installed automatically, it doesn't need to be installed manually.
 
It's installed automatically,
I dont follow you. On preexisting system its automatically installed. I just checked one of my Deb boxes an it not there. So was it supposed to appear and get installed?

I run this just now and get
Code:
apt install libcurl4-openssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  libcurl4-doc libidn11-dev libldap2-dev librtmp-dev libssh2-1-dev
The following NEW packages will be installed:
  libcurl4-openssl-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 419 kB of archives.
After this operation, 1,521 kB of additional disk space will be used.
Get:1 http://asi-fs-n.contabo.net/debian buster/main amd64 libcurl4-openssl-dev amd64 7.64.0-4+deb10u1 [419 kB]
Fetched 419 kB in 0s (17.8 MB/s)
Selecting previously unselected package libcurl4-openssl-dev:amd64.
(Reading database ... 55611 files and directories currently installed.)
Preparing to unpack .../libcurl4-openssl-dev_7.64.0-4+deb10u1_amd64.deb ...
Unpacking libcurl4-openssl-dev:amd64 (7.64.0-4+deb10u1) ...
Setting up libcurl4-openssl-dev:amd64 (7.64.0-4+deb10u1) ...
Processing triggers for man-db (2.8.5-2) ...
 
I dont follow you. On preexisting system its automatically installed. I just checked one of my Deb boxes an it not there. So was it supposed to appear and get installed?

I run this just now and get
Code:
apt install libcurl4-openssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  libcurl4-doc libidn11-dev libldap2-dev librtmp-dev libssh2-1-dev
The following NEW packages will be installed:
  libcurl4-openssl-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 419 kB of archives.
After this operation, 1,521 kB of additional disk space will be used.
Get:1 http://asi-fs-n.contabo.net/debian buster/main amd64 libcurl4-openssl-dev amd64 7.64.0-4+deb10u1 [419 kB]
Fetched 419 kB in 0s (17.8 MB/s)
Selecting previously unselected package libcurl4-openssl-dev:amd64.
(Reading database ... 55611 files and directories currently installed.)
Preparing to unpack .../libcurl4-openssl-dev_7.64.0-4+deb10u1_amd64.deb ...
Unpacking libcurl4-openssl-dev:amd64 (7.64.0-4+deb10u1) ...
Setting up libcurl4-openssl-dev:amd64 (7.64.0-4+deb10u1) ...
Processing triggers for man-db (2.8.5-2) ...
You have curl=yes the the options conf, thus it used CB to compile it. When curl=no is set, it should use OS library.
 
When curl=no is set, it should use OS library.
So if I use the OS library. Is there a way to make uninstall in CB2? How do I remove the CB compiled one? I tried remove_items.

I have to extract the tar file then run make > make uninstall

Is there a CB way to do this?
 
So if I use the OS library. Is there a way to make uninstall in CB2? How do I remove the CB compiled one? I tried remove_items.

I have to extract the tar file then run make > make uninstall

Is there a CB way to do this?
Try CB 2.0 rev. 2645 for this, it should let you do it.
 
Try CB 2.0 rev. 2645 for this, it should let you do it.
works with ./build remove_items
awesome

Does not work on FreeBSD.:(

cb remove_curl
Cannot remove cURL, because it is enabled in options.conf file (or FreeBSD is using, which is using the same locaiton as CB).

Thanks @smtalk check typo.
 
Last edited:
I don't think it was latest revision of the CustomBuild script. I don't see how may it skip libcurl4-openssl-dev in the code. If you didn't update CustomBuild after ("./build update"), you may see the version you have.
It's now working fine today without installing libcurl.
 
Maybe you’ve used some 3rd party mirror?

Actually the options.conf server was defined like this at the beginning:

Code:
downloadserver=files.directadmin.com

and the way I install Directadmin is using this command:

Code:
./setup.sh "${DA_CLIENT_ID}" "${DA_LICENSE_ID}" "${BOX_HOSTNAME_FQDN}" "eth0" "${IPV4_ADD0}"


I'm not sure why I got that error before, but it's ok I'm glad it's working fine now. Thanks a lot for helping :)
 
Back
Top