博文

目前显示的是 九月, 2016的博文

Install New GCC Versions in User Space

Before Install Perhaps the most common error might be imcompatible versions of gmp , mpfr , and mpc on linux machines. First notice that mpfr and mpc depend on gmp. Therefore, we download a gmp package from internet, which could any version that satisfies the critieria. I perfer one most close to the minimum requirement. ./configure --prefix=... --enable-shared make make install Next, we install mpfr, as mpc depends on both mpfr and gmp. Please remember add - -with-gmp= in the configuration phase. ./configure --prefix=... --enable-shared --with-gmp=... make make install Finally, install mpc before installing gcc, setting --with-gmp and --with-mpfr to the above directories. ./configure --prefix=... --enable-shared --with-gmp=... --with-mpfr=... make make install Install GCC Nice work as you have installed above trivial prerequisites. At outset, we unset these environment variables to make sure the purity  unset LIBRARY_PATH C_INCLUDE_PATH CPLUS_INCLU