已解决
发布

安装 shadowsocks-python 后
编译安装时报错: error: command ‘gcc’ failed with exit status 1
尝试 yum install libffi-devel 后安装通过,但在添加vhost时报错:
An unexpected error occurred:
Executable not found: can’t find the executable for the dialog-like programPlease see the logfile ‘certbot.log’ for more details.
Error: Let’s Encrypt SSL certificate installation failed! 
如果安装 shadowsocks-libev 则没有问题

6 答案

发布

update: 重新排查了一下并不是Shadowsocks的问题,只是安装Let’s encrypt时会报错 
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong –param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong –param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-x86_64-2.7/c/_cffi_backend.o
c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command ‘gcc’ failed with exit status 1

—————————————-
Command “/bin/python -u -c “import setuptools, tokenize;__file__=’/tmp/pip-build-1T0ufq/cffi/setup.py’;f=getattr(tokenize, ‘open’, open)(__file__);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, __file__, ‘exec’))” install –record /tmp/pip-VnLyqu-record/install-record.txt –single-version-externally-managed –compile” failed with error code 1 in /tmp/pip-build-1T0ufq/cffi/
~/oneinstack
Let’s Encrypt client install failed, Please try again!

#1
发布

操作系统是 Centos 7.1 64bit

#2
发布

群主修改了安装certbot方法而造成了一些并发症,当然群主是为了解决大家如下问题:
Creating virtual environment…
Installing Python packages…
等待时间很久或者失败,,,,,,,,,,,,,,,,
我强烈建议群主改回原来的安装方式,这也是certbot官网推荐的方式:
yum install epel-release
cd /usr/local/bin/
wget https://dl.eff.org/certbot-auto
chmod a+x /usr/local/bin/certbot-auto
./certbot-auto –n
无需解决等待时间很久的问题,因为多试几次必定会成功,运气好的话一次性也能成功,而且只要安装成功了,后续也无需担心这个问题了,成功即用了。发生该问题应该跟最近国际网络不好有关系,最近国际网络有点抽风了,这也跟国内主机才有关系,国外主机基本上都是畅通的!./certbot-auto –n安装很多依赖包,较为复杂,让它自行运行才最好,无需人为干涉,也许不只是大家人为的pip源码下载失败的问题呢!
 
 
 
 
 
 
 
 
 
 
 
 
 
 

#3
发布
管理员 2016-11-13

yum -y install libffi-devel

#4
发布

安装 libffi-devel 后通过 Let’s Encrypt 客户端安装,但创建vhost时报错:
An unexpected error occurred:
Executable not found: can’t find the executable for the dialog-like programPlease see the logfile ‘certbot.log’ for more details.
Error: Let’s Encrypt SSL certificate installation failed!
 
certbot.log内容:
Traceback (most recent call last):
File “/bin/certbot”, line 11, in <module>
sys.exit(main())
File “/usr/lib/python2.7/site-packages/certbot/main.py”, line 749, in main
setup_logging(config)
File “/usr/lib/python2.7/site-packages/certbot/main.py”, line 643, in setup_logging
cli_handler = _cli_log_handler(config, level, cli_fmt)
File “/usr/lib/python2.7/site-packages/certbot/main.py”, line 621, in _cli_log_handler
handler = log.DialogHandler()
File “/usr/lib/python2.7/site-packages/certbot/log.py”, line 29, in __init__
self.d = dialog.Dialog() if d is None else d
File “/usr/lib/python2.7/site-packages/dialog.py”, line 1015, in __init__
self._dialog_prg = _path_to_executable(dialog)
File “/usr/lib/python2.7/site-packages/dialog.py”, line 479, in _path_to_executable
“can’t find the executable for the dialog-like “
ExecutableNotFound

#5
发布
管理员 2016-11-14
cd oneinstack
rm -rf addons.sh
wget mirrors.linuxeye.com/oneinstack/addons.sh
chmod +x addons.sh
#6

请登录或者 注册 来提交答案