zerotier / zeronsd

A DNS server for ZeroTier users
https://zerotier.com
BSD 3-Clause "New" or "Revised" License
493 stars 56 forks source link

cargo install zeronsd --root /usr/local failed on arm64 ubuntu 2004 #203

Closed Weaverzhu closed 1 year ago

Weaverzhu commented 1 year ago

part of the log:

   Compiling typify-macro v0.0.10
   Compiling typify v0.0.10
   Compiling progenitor-impl v0.2.0
   Compiling progenitor-macro v0.2.0
   Compiling progenitor v0.2.0
   Compiling zerotier-central-api v1.1.0
error[E0061]: this function takes 1 argument but 0 arguments were supplied
   --> /root/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/zerotier-central-api-1.1.0/build.rs:7:25
    |
7   |     let mut generator = progenitor::Generator::new();
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^-- supplied 0 arguments
    |                         |
    |                         expected 1 argument
    |
note: associated function defined here
   --> /root/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/progenitor-impl-0.2.0/src/lib.rs:124:12

btw i tried the rustup and the cargo installed by apt. maybe rustup version rustc is much newer, but all got the same output

Weaverzhu commented 1 year ago

the intall command comes from docs, since there is no package provided for arm64 i have to build it from souce

glimberg commented 1 year ago

Clone the repo and build from source that way. The version on crates.io is outdated. Unfortunately the crate is currently under @erikh who is no longer with the company and isn't responding to requests to transfer ownership of the crate.

If you clone & build the main branch from github, it builds just fine as a workaround for now

glimberg commented 1 year ago

cargo install --git https://github.com/zerotier/zeronsd --branch main works as well

Weaverzhu commented 1 year ago

cargo install --git https://github.com/zerotier/zeronsd --branch main works as well

this works well for me