问题1描述:
解决方案:
这个错误一般是因为你在远程登陆服务器,而python中 matplotlib是绘图功能,需要在图形界面才行,这时候可以在import之前加入如下代码解决:
import matplotlib
matplotlib.use(‘Agg’)
但是以上的方法并没有成功,所以选择直接注释掉利用matplotlib的语句。
问题2描述:
======= Backtrace: =========
/lib64/libc.so.6[0x3e22e75e66]
/lib64/libc.so.6[0x3e22e789b3]
/lib64/ld-linux-x86-64.so.2(_dl_deallocate_tls+0x67)[0x3e226112f7]
/lib64/libpthread.so.0[0x3e2320675d]
/lib64/libpthread.so.0[0x3e232078ea]
/lib64/libpthread.so.0(pthread_join+0xd4)[0x3e232081f4]
/opt/apps/compilers/gcc/4.8.2/lib64/libstdc++.so.6(_ZNSt6thread4joinEv+0x27)[0x7f657b6263c7]
/users/k1511981/.pyenv/versions/t2/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so(+0x2567e60)[0x7f657dde2e60]
/users/k1511981/.pyenv/versions/t2/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so(_ZN10tensorflow6thread10ThreadPool4ImplD0Ev+0xb3)[0x7f657ddbf5b3]
/users/k1511981/.pyenv/versions/t2/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so(_ZN10tensorflow6thread10ThreadPoolD1Ev+0x1a)[0x7f657ddbfc1a]
ref: https://github.com/tensorflow/tensorflow/issues/6968
解决方案:
sudo apt-get install libtcmalloc-minimal4
export LD_PRELOAD=”/usr/lib/libtcmalloc_minimal.so.4”
问题3描述:
src/tcmalloc.cc:277] Attempt to free invalid pointer 0x12
Aborted (core dumped)
解决方案:
ref: https://github.com/google/seq2seq/issues/119
sudo apt-get install libjemalloc-dev
export LD_PRELOAD=”/usr/lib/usr/lib/x86_64-linux-gnu/libjemalloc.so.1”
问题4描述:
[root@tengine jemalloc-4.4.0]# make install
/usr/bin/install: cannot stat ‘doc/jemalloc.html’: No such file or directory
make: * [install_doc_html] Error 1
解决方案:
ref: http://dongcoder.com/detail-371311.html
# 这里只是说明文档和html页面没有,可以忽悠这个错误,可以直接touch
touch doc/jemalloc.html
make install
touch doc/jemalloc.3
make install