Ubuntu22 run failed
root@VM-0-10-ubuntu:~# curl https://cli.nexus.xyz | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2306 100 2306 0 0 45461 0 --:--:-- --:--:-- --:--:-- 46120
rustc 1.83.0 (90b35a623 2024-11-26)
/root/.nexus/network-api exists. Updating.
No local changes to save
HEAD is now at cfacdc1 fix: CLI analytics fix (#101)
Compiling nexus-network v0.4.0 (/root/.nexus/network-api/clients/cli)
Compiling dirs v5.0.1
The following warnings were emitted during compilation:
warning: [email protected]: Failed to run protoc: No such file or directory (os error 2)
error: failed to run custom build command for `nexus-network v0.4.0 (/root/.nexus/network-api/clients/cli)`
Caused by:
process didn't exit successfully: `/root/.nexus/network-api/clients/cli/target/release/build/nexus-network-01d0541f667d1829/build-script-build` (exit status: 1)
--- stdout
cargo:warning=Failed to run protoc: No such file or directory (os error 2)
--- stderr
Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }
warning: build failed, waiting for other jobs to finish...
my vm already has rust
root@VM-0-10-ubuntu:~# cargo --version
cargo 1.83.0 (5ffbef321 2024-10-29)
root@VM-0-10-ubuntu:~# rustc --version
rustc 1.83.0 (90b35a623 2024-11-26)
root@VM-0-10-ubuntu:~# ll .nexus/
total 16
drwxr-xr-x 3 root root 4096 Dec 10 10:13 ./
drwx------ 12 root root 4096 Dec 9 22:58 ../
drwxr-xr-x 9 root root 4096 Dec 10 10:09 network-api/
-rw-r--r-- 1 root root 9 Dec 10 10:13 prover-id
root@VM-0-10-ubuntu:~# ll .nexus/network-api/
total 84
drwxr-xr-x 9 root root 4096 Dec 10 10:09 ./
drwxr-xr-x 3 root root 4096 Dec 10 10:13 ../
drwxr-xr-x 3 root root 4096 Dec 9 22:41 assets/
drwxr-xr-x 3 root root 4096 Dec 9 22:41 clients/
-rw-r--r-- 1 root root 6121 Dec 9 22:41 CONTRIBUTING.md
-rw-r--r-- 1 root root 6148 Dec 9 22:41 .DS_Store
-rw-r--r-- 1 root root 220 Dec 9 22:41 firebase.json
-rw-r--r-- 1 root root 51 Dec 9 22:41 .firebaserc
drwxr-xr-x 8 root root 4096 Dec 10 10:17 .git/
drwxr-xr-x 3 root root 4096 Dec 9 22:41 .github/
-rw-r--r-- 1 root root 1220 Dec 10 10:09 .gitignore
-rw-r--r-- 1 root root 9723 Dec 9 22:41 LICENSE-APACHE
-rw-r--r-- 1 root root 1023 Dec 9 22:41 LICENSE-MIT
drwxr-xr-x 2 root root 4096 Dec 9 22:41 proto/
drwxr-xr-x 2 root root 4096 Dec 10 10:09 public/
-rw-r--r-- 1 root root 2556 Dec 9 22:41 README.md
drwxr-xr-x 2 root root 4096 Dec 10 10:09 tests/
I have the same question.
i have the same problem
Install Protocol Buffer Compiler
apt install -y protobuf-compiler
then rerun nexus again. More info about Protocol buffer compiler, check out : https://grpc.io/docs/protoc-installation/
error: linker cc not found
|
= note: No such file or directory (os error 2)
error: could not compile rayon-core (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile proc-macro2 (build script) due to 1 previous error
error: could not compile crossbeam-utils (build script) due to 1 previous error
error: could not compile libc (build script) due to 1 previous error
error: could not compile paste (build script) due to 1 previous error
error: could not compile typenum (build script) due to 1 previous error
error: could not compile generic-array (build script) due to 1 previous error
error: could not compile num-traits (build script) due to 1 previous error
same problem, solution here #111
I already took care of it