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 to log'
/usr/local/lib/libpython2.6.a(complexobject.o): In function
_Py_c_abs':
/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): \n\t{task: cc_link test_1.o -> testprog}'Could not find the python development headers

3个回答

Jones_Nelson
Jones_Nelson /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.
大约 5 年之前 回复

python安装目录是否在系统目录中。能否找到。

Jones_Nelson
Jones_Nelson 我的python安装在如下目录中/usr/local/python$ ls bin include lib python share
大约 5 年之前 回复

/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.
能够输出如此打印是否已经成功安装

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问