在启动watchman报错,找不到GLIBCXX_3.4.14、GLIBCXX_3.4.15、GLIBCXX_3.4.18、CXXABI_1.3.5等
[root@master ~]# watchman
watchman: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by watchman) watchman: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by watchman) watchman: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by watchman) watchman: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.19' not found (required by watchman) watchman: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by watchman)
我已经升级了GCC4.8,应该不会出现这个问题。
解决办法:
1、查找高版本的libstdc++
[root@master ~]# cd /usr/local/lib64/ [root@master lib64]# ls libasan.a libatomic.so libgomp.so.1 libitm.so.1.0.0 libmudflapth.la libquadmath.so.0.0.0 libstdc++.a libtsan.a libasan.la libatomic.so.1 libgomp.so.1.0.0 libitm.spec libmudflapth.so libssp.a libstdc++.la libtsan.la libasan_preinit.o libatomic.so.1.0.0 libgomp.spec libmudflap.a libmudflapth.so.0 libssp.la libstdc++.so libtsan.so libasan.so libgcc_s.so libiberty.a libmudflap.la libmudflapth.so.0.0.0 libssp_nonshared.a libstdc++.so.6 libtsan.so.0 libasan.so.0 libgcc_s.so.1 libitm.a libmudflap.so libquadmath.a libssp_nonshared.la libstdc++.so.6.0.18 libtsan.so.0.0.0 libasan.so.0.0.0 libgomp.a libitm.la libmudflap.so.0 libquadmath.la libssp.so libstdc++.so.6.0.18-gdb.py python2.6 libatomic.a libgomp.la libitm.so libmudflap.so.0.0.0 libquadmath.so libssp.so.0 libsupc++.a libatomic.la libgomp.so libitm.so.1 libmudflapth.a libquadmath.so.0 libssp.so.0.0.0 libsupc++.la
发现了libstdc++.so.6.0.18
2、将高版本的libstdc++替换到/usr/lib64/
[root@master lib64]# cp libstdc++.so.6.0.18 /usr/lib64/ [root@master lib64]# rm /usr/lib64/libstdc++.so.6
rm: remove symbolic link `/usr/lib64/libstdc++.so.6'? y
[root@master lib64]# ln -s /usr/lib64/libstdc++.so.6.0.18 /usr/lib64/libstdc++.so.6
3、再次启用应用程序,问题解决
[root@master ~]# watchman
{ "cli_validated": true, "error": "invalid command (expected an array with some elements!)", "version": "4.8.0" } [root@master ~]#