ubuntu ceph编译小笔记
环境
- ubuntu16.04
- cmake 3.5.1
- gcc4.8
- pyenv
问题描述
编译ceph报了一堆错,梳理一下思路.记录一下踩过的坑.
cmake报错查看
官方提示让我去/home/houyx/development/clayCode/ceph/build/CMakeFiles/CMakeError.log
里看,里面一堆pthreads找不到的错误,还以为是ubuntu和redhat拼写不一样的错呢,折腾半天.其实没用
然后运行:
./do_cmake.sh | tee tempOut.txt | grep error
找到一堆pyconfig.h not found
的错,这才知道怎么弄
错误与解决
pyconfig.h not found
find /usr/include -name pyconfig.h
/usr/include/x86_64-linux-gnu/python3.5m/pyconfig.h
/usr/include/x86_64-linux-gnu/python2.7/pyconfig.h
/usr/include/python3.5m/pyconfig.h
/usr/include/python2.7/pyconfig.h
echo 'export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/usr/include/python2.7/"' >> /etc/profile.d/find_python_config.sh
source /etc/profile
常用指令收集
ldconfig -p | grep LibYouWant#查看ld是否找到某个动态链接库
nm aa.so | grep functionYouWant#aa.so中是否包含functionYouWant的入口
近期评论