解决"command 'gcc' failed with exit status 1"错误问题

Unable to exec g++.real: No such file or directory
 

解决:

卸载g++:
sudo apt-get remove g++
重装:
sudo apt-get install g++

 

openssl

下载源码编译安装

  • 下载
    wget https://www.openssl.org/source/openssl-1.0.2h.tar.gz

  • 解压
    tar zxf openssl-1.0.2h.tar.gz

  • 安装
    cd openssl-1.0.2h./config shared zlib
    because of configuration changes, you MUST do the following before
    *** building:
    提醒需要在build之前做make depend
    make depend
    make install
    mv /usr/bin/openssl /usr/bin/openssl.bak
    mv /usr/include/openssl /usr/include/openssl.bak
    ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
    ln -s /usr/local/ssl/include/openssl /usr/include/openssl
    echo “/usr/local/ssl/lib” >> /etc/ld.so.conf
    ldconfig -v

  • 检测安装是否成功:

  • l version -a

你可能感兴趣的:(解决"command 'gcc' failed with exit status 1"错误问题)