我想让install samba从源代码开始。I类型命令:
./configure --prefix=/usr/local
但我错了:
Checking for library python2.7 : not found
Checking for library python2.7 : not found
Checking for library python27 : not found
Checking for program python2.7-config : not found
Checking for program python-config-2.7 : not found
Checking for custom code : Could not find the python development headers
/home/fv1/Pobrane/samba/wscript:121:
error: the configuration failed (see '/home/fv1/Pobrane/samba/bin/config.log')
这里是
config.log
:<==
[1/2] Compiling test.c
../test.c:2:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
['/usr/bin/gcc', '-MD', '-fno-strict-aliasing', '-I/usr/local/include', '-I/usr/include/python2.7', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '../test.c', '-c', '-o', 'default/test_1.o']
command returned 'Build failed: -> task failed (err #1): \n\t{task: cc test.c -> test_1.o}'Could not find the python development headers
有什么问题,我该怎么解决?
最佳答案
如果您想在redhat系统上设置samba服务器,那么我有一个答案。
在samba服务器上,请执行以下步骤:
使用简单命令安装samba服务器(应预先安装epel):
yum install samba samba-client
像这样管理samba.conf文件
[file]
path = /filename
hosts allow = ip/netmask
管理selinux,然后启动服务。
systemctl restart smb nmb
关于python - 如何配置和编译Samba?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/47542282/