ubuntu问题集
- Linux缺少libssl.so.1.0.0的解决方法
A: openssl网址
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.0_1.0.2g-1ubuntu4.20_amd64.deb
sudo dpkg -i libssl1.0.0_1.0.2g-1ubuntu4.20_amd64.deb
- Linux下缺少libiconv.so.2的解决方法
A:libiconv介绍
libiconv下载
wget https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.17.tar.gz
tar -zxvf libiconv-1.17.tar.gz
cd libiconv-1.17
sudo ./configure --prefix=/usr/local
sudo make
sudo make install
sudo ln -s /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2
sudo ldconfig
- Linux 找不到libopenal.so.1
Q: error while loading shared libraries: libopenal.so.1: cannot open shared object file: No such file or directory.
A: 安装依赖
sudo apt-get install libopenal-dev
- GCC-8.2 安装
sudo apt install g++ gcc make cmake
gcc --version
g++ --version
- 编译安装gcc-8.2
推荐使用方法2.进行安装gcc-8.2
wget -q https://paddle-docker-tar.bj.bcebos.com/home/users/tianshuo/bce-python-sdk-0.8.27/gcc-8.2.0.tar.xz && \
tar -xvf gcc-8.2.0.tar.xz && \
cd gcc-8.2.0 && \
./contrib/download_prerequisites && \
unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE && \
./contrib/download_prerequisites && \
cd .. && mkdir temp_gcc82 && cd temp_gcc82 && \
../gcc-8.2.0/configure CFLAGS="-g3 -gdwarf-2 -O0" CXXFLAGS="-g3 -gdwarf-2 -O0" CFLAGS_FOR_TARGET="-g3 -gdwarf-2 -O0" CXXFLAGS_FOR_TARGET="-g3 -gdwarf-2 -O0" --disable-multilib --enable-languages=c,c++ --prefix=/home/ubuntu/install/gcc-8.2 &&\
sudo make -j8 && sudo make install
vim ~/.bashrc
export PATH="/home/ubuntu/install/gcc-8.2/bin:$PATH"
source ~/.bashrc
tar -zxvf gcc-8.2.tar
vim ~/.bashrc
export PATH="/home/ubuntu/install/gcc-8.2/bin:$PATH"
source ~/.bashrc
g++ --version
gcc --version
- 如果 ./contrib/download_prerequisites无法下载?
http://www.mirrorservice.org/sites/sourceware.org/pub/gcc/infrastructure/
直接访问下载四个依赖分别为:gmp-6.1.0.tar.bz2、mpfr-3.1.4.tar.bz2、mpc-1.0.3.tar.gz、isl-0.16.1.tar.bz2,放在gcc-8.2.0源码根目录下即可,重新*./contrib/download_prerequisites*即可;
- Centos下gcc的安装、gcc的更新、gcc安装过程中报错:make[1]: *** [stage1-bubble] 错误 2
|