Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation failure #30

Closed
sujanchegu opened this issue Mar 6, 2021 · 0 comments
Closed

Installation failure #30

sujanchegu opened this issue Mar 6, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@sujanchegu
Copy link

Description
Compilation errors during the cargo install --path . command execution. Raises errors and thus fails to install properly.

Log:

❯ cargo install --path .
  Installing rshark v0.1.0 (/home/nroot/bin/rshark)
    Updating crates.io index
   Compiling libc v0.2.88
   Compiling log v0.4.14
   Compiling cfg-if v1.0.0
   Compiling rustc-serialize v0.3.24
   Compiling memchr v2.3.4
   Compiling unicode-xid v0.0.3
   Compiling term v0.4.6
   Compiling version_check v0.9.2
   Compiling bitflags v0.5.0
   Compiling once_cell v1.7.2
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling regex-syntax v0.6.22
   Compiling pnet_base v0.26.0
   Compiling syn v1.0.61
   Compiling glob v0.2.11
   Compiling serde v1.0.124
   Compiling autocfg v1.0.1
   Compiling bitflags v1.2.1
   Compiling unicode-width v0.1.8
   Compiling unicode-segmentation v1.7.1
   Compiling pnet v0.26.0
   Compiling numtoa v0.1.0
   Compiling hashbrown v0.9.1
   Compiling cassowary v0.3.0
   Compiling termcolor v1.1.2
   Compiling vec_map v0.8.2
   Compiling strsim v0.10.0
   Compiling lazy_static v1.4.0
   Compiling os_str_bytes v2.4.0
   Compiling thread_local v1.1.3
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling pnet_macros_support v0.26.0
   Compiling textwrap v0.12.1
   Compiling indexmap v1.6.2
   Compiling heck v0.3.2
   Compiling syntex_pos v0.42.0
   Compiling aho-corasick v0.7.15
   Compiling log v0.3.9
   Compiling quote v1.0.9
   Compiling pnet_sys v0.26.0
   Compiling termion v1.5.6
   Compiling atty v0.2.14
   Compiling syntex_errors v0.42.0
   Compiling tui v0.10.0
   Compiling regex v1.4.3
   Compiling syntex_syntax v0.42.0
   Compiling ipnetwork v0.16.0
   Compiling pnet_datalink v0.26.0
   Compiling clap_derive v3.0.0-beta.2
   Compiling clap v3.0.0-beta.2
   Compiling syntex v0.42.2
   Compiling pnet_macros v0.26.0
   Compiling pnet_packet v0.26.0
   Compiling pnet_transport v0.26.0
   Compiling rshark v0.1.0 (/home/nroot/bin/rshark)
error[E0599]: no function or associated item named `with_name` found for struct `Arg<'_>` in the current scope
  --> src/main.rs:24:18
   |
24 |             Arg::with_name("interface")
   |                  ^^^^^^^^^
   |                  |
   |                  function or associated item not found in `Arg<'_>`
   |                  help: there is an associated function with a similar name: `get_name`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0599`.
error: failed to compile `rshark v0.1.0 (/home/nroot/bin/rshark)`, intermediate artifacts can be found at `/home/nroot/bin/rshark/target`

Caused by:
  could not compile `rshark`

To learn more, run the command again with --verbose.

How To Reproduce

  1. git clone the repo
  2. cd into it
  3. run cargo install --path .
  4. See the error

Expected Behavior
Shouldn't raise an error.

Screenshots

image

Desktop

❯ rustc --version
rustc 1.50.0 (cb75ad5db 2021-02-10)
❯ cargo --version
cargo 1.50.0 (f04e7fab7 2021-02-04)
❯ uname -a
Linux Fedora-81DE 5.10.17-200.fc33.x86_64 #1 SMP Wed Feb 17 21:21:20 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
@sujanchegu sujanchegu added the bug Something isn't working label Mar 6, 2021
@pmk21 pmk21 closed this as completed in b2cbbaf Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant