contains updates and corrections: http://tug.org/texlive. TeX Live is a joint project of the TeX user groups around the world;
please consider supporting it by joining the group best for you. The
list of user groups is on the web at http://tug.org/usergroups.html.
Add /usr/local/texlive/2013/texmf-dist/doc/man to MANPATH, if not dynamically found.
Add /usr/local/texlive/2013/texmf-dist/doc/info to INFOPATH. Most importantly, add /usr/local/texlive/2013/bin/i386-linux
to your PATH for current and future sessions. Welcome to TeX Live!
Logfile: /usr/local/texlive/2013/install-tl.log After the installation finishes, you must add the directory of TeX Live binaries to your PATH—except on Windows, where the installer takes care of this. For example:
PATH=/usr/local/texlive/2013/bin/i386-linux:$PATH
Use the syntax for your shell, your installation directory, and your binary platform name instead of i386-linux.
切换到root用户(先前使用sudo总是提示找不到工具,可能是没有读进换进变量,也可能是在用户目录下进行编译的问题),先前弄得有点乱,依赖问题全部解决后还是有configure: error: source directory already configured; run "make distclean" there first这样的报错,但是,make distclean执行不成功,后来干脆就不在用户目录下进行了
切换至/opt目录(用户目录下连flex都找不到),解压gcc源码包到这个目录
tar xzvf gcc-4.8.2.tar.gz
cd gcc-4.8.2
./contrib/download_prerequisites (执行这个脚本自动下载并关联GMP,MPFR和MPC,不然会产生一系列报错诸如: 1、cannot find the library `../libgmp.la" or unhandled argument `../libgmp.la"2、checking for suffix of object files... configure: error: in `/home/Oracle/Downloads/gcc-4.8.2/i686-pc-linux-gnu/libgcc":configure: error: cannot compute suffix of object files: cannot compileSee `config.log" for more details.,查看日志提示找不到libmpc.so.2,可是他明明就在那里,还是让gcc自己编译吧3、而且这么干连分别安装时安装MPFR的 gmp.h version and libgmp version are the same... (4.3.2/4.3.1) no报错都解决了,当然,如果特别想分别安装,这个错误可以在MPFR配置是使用./configure --with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib予以解决,分别安装好以后按照文档要求进行confiugure)