标签:++ export version exp path libc port ffmpeg install
1.解压
tar -jxvf gcc-6.3.0.tar.bz2 -C ~/dev/
2.下载前前提软件包
cd gcc-6.3.0
./contrib/download_prerequisites
cd ..
mkdir gcc-build-6.3.0
cd gcc-build-6.3.0/
../gcc-6.3.0/configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
6:编绎
make -j4
7.安装
sudo make install
8.检查gcc版本
gcc --version
strings /usr/local/lib64/libstdc++.so | grep GLIBCXX
设置环境
export LD_LIBRARY_PATH=/usr/local/lib64:/home/sam/ffmpeg_build/lib:$LD_LIBRARY_PATH
ref: http://www.cnblogs.com/zhangtingkuo/archive/2013/04/06/3002982.html
标签:++ export version exp path libc port ffmpeg install
原文地址:http://www.cnblogs.com/wucg/p/6918920.html