TyrantLucifer / ssr-command-client

:airplane:The commend client of ssr based Python3
Apache License 2.0
978 stars 240 forks source link

No such file or directory: b'liblibcrypto.a' #61

Closed 5t-RawBeRry closed 2 years ago

5t-RawBeRry commented 2 years ago

2022-03-21 03:18:29,603 - tcprelay.py[line:1095] - [_log_error] - ERROR: [Errno 2] No such file or directory: b'liblibcrypto.a' when handling connection from 127.0.0.1:34416

TyrantLucifer commented 2 years ago

32 参照这个解决方案

5t-RawBeRry commented 2 years ago

奇怪的问题 安装 libsodium-dev 之后 出现了 https://github.com/TyrantLucifer/ssr-command-client/issues/32 里面的问题

2022-03-21 13:14:17,204 - tcprelay.py[line:272] - [_create_encryptor] - ERROR: create encryptor fail at port 1080

贴上系统

       _,met$$$$$gg.          k@Bot 
    ,g$$$$$$$$$$$$$$$P.       ---------------- 
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 11 (bullseye) x86_64 
 ,$$P'              `$$$.     Host: X11DAi-N 123456789 
',$$P       ,ggs.     `$$b:   Kernel: 5.10.0-11-amd64 
`d$$'     ,$P"'   .    $$$    Uptime: 19 days, 19 hours, 1 min 
 $$P      d$'     ,    $$P    Packages: 1030 (dpkg) 
 $$:      $$.   -    ,d$$'    Shell: bash 5.1.4 
 $$;      Y$b._   _,d$P'      Resolution: 1680x1050 
 Y$$.    `.`"Y$$$$P"'         Terminal: /dev/pts/5 
 `$$b      "-.__              CPU: Intel Xeon Gold 6130 (64) @ 3.700GHz 
  `Y$$                        GPU: 04:00.0 ASPEED Technology, Inc. ASPEED Graphics Family 
   `Y$$.                      Memory: 16054MiB / 31801MiB 
     `$$b.
       `Y$$b.                                         
          `"Y$b._                                     
              `"""
TyrantLucifer commented 2 years ago

https://0b2bd010.wiz06.com/wapp/pages/view/share/s/0baZ0g2Y0h7E2nCs-V3z8FhA0uorhp19pAP92-63v23qMflo

参考这个教程手动编译一下

5t-RawBeRry commented 2 years ago

刚刚手动编译过了 结果一样 附上节点配置


{
    "method": "chacha20-ietf",
    "obfs": "plain",
    "protocol": "auth_aes128_md5"
}
TyrantLucifer commented 2 years ago

出现这个问题的原因就是因为你的库没有被识别到,chachan20方式加解密需要依赖加密库,还是需要排查一下你的编译方式对不对,以及你的库环境变量对不对,如果你按照方式一步一步做好了,那么还是不行,那就是系统问题。

5t-RawBeRry commented 2 years ago

试了一下,把加密库卸载之后又开始报错

2022-03-21 18:11:13,785 - tcprelay.py[line:1095] - [_log_error] - ERROR: [Errno 2] No such file or directory: b'liblibcrypto.a' when handling connection from 127.0.0.1:34170

所以说加密库大概是生效了,就是奇怪的问题归结到 debian11八

TyrantLucifer commented 2 years ago

试试加个软链接给加密库试试,软链接的名字就是liblibcrypto.a

TyrantLucifer commented 2 years ago

这个问题在我树莓派系统复现了,使用这个命令找到库所在地址ldconfig -p | grep libcrypto,在对应目录下建立软链接liblibcrypto.a,问题解决。