nexus-cli icon indicating copy to clipboard operation
nexus-cli copied to clipboard

Ubuntu22 run failed

Open bilbilmyc opened this issue 1 year ago • 5 comments

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/

bilbilmyc avatar Dec 10 '24 02:12 bilbilmyc

I have the same question.

spencer17x avatar Dec 10 '24 15:12 spencer17x

i have the same problem

nsart75 avatar Dec 10 '24 18:12 nsart75

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/

satocxyz avatar Dec 10 '24 20:12 satocxyz

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

chibsemmyy avatar Dec 10 '24 23:12 chibsemmyy

same problem, solution here #111

shipper96 avatar Dec 11 '24 03:12 shipper96

I already took care of it

bilbilmyc avatar Dec 12 '24 02:12 bilbilmyc