Problem of gcc solved for Xuqing

Problem of gcc solved for Xuqing:

2017-11-09 log by Carlos Allen.

Reason of this issue:

Shell run gcc on the path of "/usr/local/bin/gcc" with the version of gcc-6.3.0;

But update-alternatives --config change gcc with the path of "/usr/bin/gcc" with the version of gcc-4.8;

#Solution:

So I set the "/usr/local/bin/gcc" to the "/usr/local/bin/gcc.old";

And then "cp /usr/bin/gcc /usr/local/bin/gcc.old";

However, when we run "update-alternatives" for gcc version change, it can not apply to the "/usr/local/bin/gcc";

So after they all go, I updated the "cp"ed gcc, instead by create a soft link for /usr/bin/gcc under the name of "/usr/local/bin/gcc";

Then,everything is okay.

Additionally, last time I debug a "python lib skilearn can not run" with the error of "libstdc++.so6 not match the version needed";

Realized that libstdc++ needed is actually a softlink, I change it to the "old" and create a new one relink to the version needed.

For debug today s problem, I try changing it back, but not work "as I exoected".

Finally, after the bug is okay, I change it back.

So, everything is okay by now.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容