Fork me on GitHub

安装启动Shadowsocks遇到的两个问题

问题

1.执行pip install -r shadowsocks时报错:Command "python setup.py egg_info" failed with error code 1

2.启动Shadowsocks时报错:undefined symbol: EVP_CIPHER_CTX_cleanup

我的环境:

​ 系统:Win10

​ SS版本:4.1.5

​ Python 版本:3.6

Command “python setup.py egg_info” failed with error code 1

原文链接:解决 Command “python setup.py egg_info” failed with error code 1 问题

使用pip安装shadowsocks,执行pip install -r shadowsocks时报错:

1
Command "python setup.py egg_info" failed with error code 1

解决方法是更新 setuptools 和 pip:

1
2
pip install --upgrade setuptools
python -m pip install --upgrade pip

undefined symbol: EVP_CIPHER_CTX_cleanup

原文链接:Kali2.0 update到最新版本后安装shadowsocks服务报错问题

  1. 用vim打开文件:vim /usr/local/lib/python2.7/dist-packages/shadowsocks/crypto/openssl.py (该路径请根据自己的系统情况自行修改,如果不知道该文件在哪里的话,可以使用find命令查找文件位置)
  2. 跳转到52行(shadowsocks2.8.2版本,其他版本搜索一下cleanup)
  3. 进入编辑模式
  4. 将第52行libcrypto.EVP_CIPHER_CTX_cleanup.argtypes = (c_void_p,)
    改为libcrypto.EVP_CIPHER_CTX_reset.argtypes = (c_void_p,)
  5. 再次搜索cleanup(全文件共2处,此处位于111行),将libcrypto.EVP_CIPHER_CTX_cleanup(self._ctx)
    改为libcrypto.EVP_CIPHER_CTX_reset(self._ctx)
  6. 保存并退出
  7. 启动shadowsocks服务:service shadowsocks start 或 sslocal -c ss配置文件目录
  8. 问题解决
BJTU-HXS wechat
海内存知己,天涯若比邻。