参考自:https://blog.csdn.net/weixin_33928467/article/details/88905592
启动mongodb的可视化工具robomongo 时报错:
××@localhost:/usr/local/robomongo/bin$ sudo ./robo3t
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
No protocol specified
qt.qpa.screen: QXcbConnection: Could not connect to display :0
Could not connect to any X display.
解决方案:把lib目录下带有libstdc++
的文件删除即可
××@localhost:/usr/local/robomongo/lib$ ll -h | grep libstdc
lrwxrwxrwx 1 ×× ×× 19 2月 8 2018 libstdc++.so.6 -> libstdc++.so.6.0.22
-rw-r--r-- 1 ×× ×× 1.1M 9月 5 2016 libstdc++.so.6.0.22
sudo rm -rf libstdc++.so.6
再次启动,ok