在Linux中安装sstp-server时遇到了一个python错误,在这里记录以下,解决方案如下:
root@localhost:/opt/sstp-server# sstpd -f /opt/sstp-server/sstp-server.ini -s site1
Traceback (most recent call last):
File "/usr/local/bin/sstpd", line 10, in
sys.exit(run())
File "/usr/local/lib/python3.6/dist-packages/sstpd/__init__.py", line 8, in run
from .__main__ import main
File "/usr/local/lib/python3.6/dist-packages/sstpd/__main__.py", line 15, in
from .sstp import SSTPProtocolFactory
File "/usr/local/lib/python3.6/dist-packages/sstpd/sstp.py", line 14, in
from .ppp import PPPDProtocol, PPPDProtocolFactory, is_ppp_control_frame
File "/usr/local/lib/python3.6/dist-packages/sstpd/ppp.py", line 7, in
from .codec import escape, PppDecoder
ImportError: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory
#安装包即可
apt-get install libpython3.6