Home Linux Failed Useprivoxy,pproxy,proxycompilerustcompilesthpsocks5转换为httpshttp代理
Post
Cancel

Linux Failed Useprivoxy,pproxy,proxycompilerustcompilesthpsocks5转换为httpshttp代理

refer to: 

1. install rust version 》 1.50+

https://github.com/rust-lang/rust/blob/master/INSTALL.md

1.1 git clone rust_source

1.2 apt install 3rd party

sudo apt install cc pkg-config libiconv libssl-dev openssl-devel  g++ ninjia cmake libstdc++-static
sudo: 无法解析主机:longxin3a6000: 没有与主机名关联的地址

Broadcast message from systemd-journald@longxin3a6000 (Sun 2025-03-16 07:58:09 CST):

sudo[8422]:    siwei : unable to resolve host longxin3a6000


Message from syslogd@longxin3a6000 at Mar 16 07:58:09 ...
 sudo:    siwei : unable to resolve host longxin3a6000

Broadcast message from systemd-journald@longxin3a6000 (Sun 2025-03-16 07:58:09 CST):

sudo[8422]:    siwei : problem with defaults entries ; TTY=pts/2 ; PWD=/workspace/source_code ; USER=root ;


Message from syslogd@longxin3a6000 at Mar 16 07:58:09 ...
 sudo:    siwei : problem with defaults entries ; TTY=pts/2 ; PWD=/workspace/source_code ; USER=root ; 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
E: 无法定位软件包 cc
E: 无法定位软件包 openssl-devel
E: 无法定位软件包 ninjia
E: 无法定位软件包 libstdc++-static
E: 无法按照正则表达式 libstdc++-static 找到任何软件包

1.3 cd rust

1.4 ./configure

1.5 export DESTDIR=/usr/bin

1.6 ./x.py build

./x.py build
downloading https://static.rust-lang.org/dist/2025-02-18/rust-std-beta-loongarch64-unknown-linux-gnu.tar.xz
########################################################################### 41.7%^C
Build completed unsuccessfully in 0:06:32

2. git clone code

3. cargo build

This post is licensed under CC BY 4.0 by the author.