jerry zhai <jerry.z.mystery@xxxxxxxxx> writes: > before installing gcc, I had my own gmp 4.2.1 and mpfr 2.3.0 installed > at location $HOME/lib/gmp and $HOME/lib/mpfr. When you build gmp and mpfr, use --disable-shared when you configure them. That will avoid this problem: > The problem troubled me most was: cc1 kept reporting errors --- error > while loading shared libraries: libmpfr.so.1: cannot open shared > object file: No such file or directory Ian