bash: curl: command not found,curl: (2) Failed Initialization

[root@04007 ~]# curl
-bash: curl: command not found
#后通过wget下载安装包安装后,能查看到版本信息,但是curl报错curl: (2) Failed initialization
wget https://curl.haxx.se/download/curl-7.56.1.tar.gz
tar xvf curl-7.56.1.tar.gz
./configure –disable-shared  #此处已添加选项:–disable-shared
make
make install
[root@04007 ~]# curl -V
curl 7.56.1 (x86_64-pc-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Release-Date: 2017-10-23
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp 
Features: IDN IPv6 Largefile NTLM SSL libz 
[root@04007 ~]# curl http://www.baidu.com
curl: (2) Failed initialization

 

你可能感兴趣的:(linux)