日期:2014-05-16  浏览次数:20536 次

GCC貌似被我弄坏了 求救~~~
昨天闲的蛋疼花了一天时间装了个GCC4.6.2 结果用eclipse C++编译的时候报这个错误了 
**** Build of configuration Debug for project test **** 
  
make all  
Building file: ../src/test.cpp 
Invoking: GCC C++ Compiler 
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/test.d" -MT"src/test.d" -o "src/test.o" "../src/test.cpp" 
/usr/gcc-4.6.2/libexec/gcc/x86_64-unknown-linux-gnu/4.6.2/cc1plus: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory 
make: *** [src/test.o] 错误 1 
  
**** Build Finished **** 
  
我mpfr肯定装了,虽然不知道那是干嘛的..... 
求大神救我~~~~~

------解决方案--------------------
设置一下动态库的路径?
------解决方案--------------------
ldconfig;
find / -name libmpfr.so.1 -exec ln -s {} /usr/lib/libmpfr.so.1 \;

哈哈...既然肯定装了,还找不到,那就是库所在的路径没在常用库的路径中喽...