问题描述
- Samba在Ubuntu下安装问题
-
Samba安装配置./configure --prefix=/usr/local
提示error: could not find Python headers在终端机输入如下命令之后
sudo apt-get install python-dev仍是同样报错提示,求解?
“/home/nelson/software/Python-2.6.5/Objects/complexobject.c:149: undefined reference tolog'
_Py_c_abs':
/usr/local/lib/libpython2.6.a(complexobject.o): In function
/home/nelson/software/Python-2.6.5/Objects/complexobject.c:214: undefined reference to `hypot'
collect2: ld returned 1 exit status
['/usr/bin/gcc', 'default/test_1.o', '-o', '/home/nelson/software/samba-4.2.0/bin/.conf_check_0/testbuild/default/testprog', '-L/usr/local/lib', '-Wl,-Bdynamic', '-lm', '-lpthread', '-ldl', '-lutil', '-lpython2.6']
command returned 'Build failed: -> task failed (err #1): nt{task: cc_link test_1.o -> testprog}'Could not find the python development headers
”
解决方案
http://www.cnblogs.com/php5/archive/2010/10/30/1865191.html
python有没有装好
解决方案二:
python安装目录是否在系统目录中。能否找到。
解决方案三:
/usr/local/python$ python
Python 2.6.5 (r265:79063, Mar 23 2015, 10:00:52)
[GCC 4.6.3] on linux3
Type "help", "copyright", "credits" or "license" for more information.
能够输出如此打印是否已经成功安装