Compilation error on archlinux #857

Closed
opened 3 years ago by Ylhp · 8 comments
Ylhp commented 3 years ago

Hello there,

I'm following theses instructions to compile Plume from source : https://docs.joinplu.me/installation/with/source-code/

And I'm gettin trouble with this command :

cargo web deploy -p plume-front --release
   Compiling encoding_index_tests v0.1.4
error[E0463]: can't find crate for `std`
  |
  = note: the `wasm32-unknown-unknown` target may not be installed

error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: could not compile `encoding_index_tests`.

To learn more, run the command again with --verbose.
error: build failed

The previous command worked great, and here my $PATH if needed :

plume@vps-xxx:~/repo/Plume$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/plus/.cargo/bin:/home/plume/.local/bin:/usr/local/sbin:/home/plume/.cargo/bin

Is there something I do wrong or a real failure ?

Thanks for your work, sincerely,
Ylph

Hello there, I'm following theses instructions to compile Plume from source : https://docs.joinplu.me/installation/with/source-code/ And I'm gettin trouble with this command : ``` cargo web deploy -p plume-front --release Compiling encoding_index_tests v0.1.4 error[E0463]: can't find crate for `std` | = note: the `wasm32-unknown-unknown` target may not be installed error: aborting due to previous error For more information about this error, try `rustc --explain E0463`. error: could not compile `encoding_index_tests`. To learn more, run the command again with --verbose. error: build failed ``` The previous command worked great, and here my $PATH if needed : ``` plume@vps-xxx:~/repo/Plume$ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/plus/.cargo/bin:/home/plume/.local/bin:/usr/local/sbin:/home/plume/.cargo/bin ``` Is there something I do wrong or a real failure ? Thanks for your work, sincerely, Ylph
Owner

Can you run

rustup target add wasm32-unknown-unknown

and try again?

I think it should be installed automatically, though...

Can you run rustup target add wasm32-unknown-unknown and try again? I think it should be installed automatically, though...
Owner

It's odd, when I run cargo web on my (archlinux) computer, I get

info: downloading component 'rust-std' for 'wasm32-unknown-unknown'
info: installing component 'rust-std' for 'wasm32-unknown-unknown'

So it seems as it should be installed automatically.

It's odd, when I run cargo web on my (archlinux) computer, I get ```sh info: downloading component 'rust-std' for 'wasm32-unknown-unknown' info: installing component 'rust-std' for 'wasm32-unknown-unknown' ``` So it seems as it should be installed automatically.
Ylhp commented 3 years ago
Poster

Hm, something I've forgetten to precise : I've already an installed rust (I've installed with 'apt install cargo' which has almost all needed installed). But I'vnt rustup.

I've so answered YES to the "do you want install rustup" question for the sh-command to install rustup. Installing worked. I've installed wasm32-unknown-unknown (what a name), but I still get the same errors. I think there is a conflict between my two rust installation. I'm about to try to remove both and just use yours. Do you think it's OK ?

Let's see all what I've done :

plume@vps-xxx:~$ curl https://sh.rustup.rs -sSf | sh
info: downloading installer
warning: it looks like you have an existing installation of Rust at:
warning: /usr/bin
warning: rustup should not be installed alongside Rust. Please uninstall your existing Rust first.
warning: Otherwise you may have confusion unless you are careful with your PATH
warning: If you are sure that you want both rustup and your already installed Rust
warning: then please reply `y' or `yes' or set RUSTUP_INIT_SKIP_PATH_CHECK to yes
warning: or pass `-y' to ignore all ignorable checks.
error: cannot install while Rust is installed

Continue? (y/N) Y


Welcome to Rust!

This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.

Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:

  /home/plume/.rustup

This can be modified with the RUSTUP_HOME environment variable.

The Cargo home directory located at:

  /home/plume/.cargo

This can be modified with the CARGO_HOME environment variable.

The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:

  /home/plume/.cargo/bin

This path will then be added to your PATH environment variable by
modifying the profile files located at:

  /home/plume/.profile
  /home/plume/.bashrc

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:


   default host triple: x86_64-unknown-linux-gnu
     default toolchain: stable (default)
               profile: default
  modify PATH variable: yes

1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>1

info: profile set to 'default'
info: default host triple is x86_64-unknown-linux-gnu
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2020-11-19, rust version 1.48.0 (7eac88abb 2020-11-16)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-std'
info: downloading component 'rustc'
 66.2 MiB /  66.2 MiB (100 %)  29.3 MiB/s in  2s ETA:  0s
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: using up to 500.0 MiB of RAM to unpack components
info: installing component 'clippy'
info: installing component 'rust-docs'
 13.3 MiB /  13.3 MiB (100 %)   3.9 MiB/s in  2s ETA:  0s
info: installing component 'rust-std'
 22.0 MiB /  22.0 MiB (100 %)   7.6 MiB/s in  2s ETA:  0s
info: installing component 'rustc'
 66.2 MiB /  66.2 MiB (100 %)   8.7 MiB/s in  7s ETA:  0s
info: installing component 'rustfmt'
info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'

  stable-x86_64-unknown-linux-gnu installed - rustc 1.48.0 (7eac88abb 2020-11-16)


Rust is installed now. Great!

To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH
environment variable. Next time you log in this will be done
automatically.

To configure your current shell, run:
source $HOME/.cargo/env
plume@vps-xxx:~$ vim ~/.bashrc 
plume@vps-xxx:~$ source ~/.bashrc
plume@vps-xxx:~$ rustup target add wasm32-unknown-unknown
info: downloading component 'rust-std' for 'wasm32-unknown-unknown'
info: installing component 'rust-std' for 'wasm32-unknown-unknown'
info: using up to 500.0 MiB of RAM to unpack components
 12.9 MiB /  12.9 MiB (100 %)   8.4 MiB/s in  1s ETA:  0s
plume@vps-xxx:~$ cargo web deploy -p plume-front --release
error: error: could not find `Cargo.toml` in `/home/plume` or any parent directory

plume@vps-xxx:~$ ls
repo
plume@vps-xxx:~$ cd repo/Plume/
plume@vps-xxx:~/repo/Plume$ cargo web deploy -p plume-front --release
info: downloading component 'rust-std' for 'wasm32-unknown-unknown'
info: installing component 'rust-std' for 'wasm32-unknown-unknown'
info: using up to 500.0 MiB of RAM to unpack components
   Compiling encoding_index_tests v0.1.4
error[E0463]: can't find crate for `std`
  |
  = note: the `wasm32-unknown-unknown` target may not be installed

error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: could not compile `encoding_index_tests`.

To learn more, run the command again with --verbose.
error: build failed
Hm, something I've forgetten to precise : I've already an installed rust (I've installed with 'apt install cargo' which has almost all needed installed). But I'vnt rustup. I've so answered YES to the "do you want install rustup" question for the sh-command to install rustup. Installing worked. I've installed wasm32-unknown-unknown (what a name), but I still get the same errors. I think there is a conflict between my two rust installation. I'm about to try to remove both and just use yours. Do you think it's OK ? Let's see all what I've done : ``` plume@vps-xxx:~$ curl https://sh.rustup.rs -sSf | sh info: downloading installer warning: it looks like you have an existing installation of Rust at: warning: /usr/bin warning: rustup should not be installed alongside Rust. Please uninstall your existing Rust first. warning: Otherwise you may have confusion unless you are careful with your PATH warning: If you are sure that you want both rustup and your already installed Rust warning: then please reply `y' or `yes' or set RUSTUP_INIT_SKIP_PATH_CHECK to yes warning: or pass `-y' to ignore all ignorable checks. error: cannot install while Rust is installed Continue? (y/N) Y Welcome to Rust! This will download and install the official compiler for the Rust programming language, and its package manager, Cargo. Rustup metadata and toolchains will be installed into the Rustup home directory, located at: /home/plume/.rustup This can be modified with the RUSTUP_HOME environment variable. The Cargo home directory located at: /home/plume/.cargo This can be modified with the CARGO_HOME environment variable. The cargo, rustc, rustup and other commands will be added to Cargo's bin directory, located at: /home/plume/.cargo/bin This path will then be added to your PATH environment variable by modifying the profile files located at: /home/plume/.profile /home/plume/.bashrc You can uninstall at any time with rustup self uninstall and these changes will be reverted. Current installation options: default host triple: x86_64-unknown-linux-gnu default toolchain: stable (default) profile: default modify PATH variable: yes 1) Proceed with installation (default) 2) Customize installation 3) Cancel installation >1 info: profile set to 'default' info: default host triple is x86_64-unknown-linux-gnu info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu' info: latest update on 2020-11-19, rust version 1.48.0 (7eac88abb 2020-11-16) info: downloading component 'cargo' info: downloading component 'clippy' info: downloading component 'rust-docs' info: downloading component 'rust-std' info: downloading component 'rustc' 66.2 MiB / 66.2 MiB (100 %) 29.3 MiB/s in 2s ETA: 0s info: downloading component 'rustfmt' info: installing component 'cargo' info: using up to 500.0 MiB of RAM to unpack components info: installing component 'clippy' info: installing component 'rust-docs' 13.3 MiB / 13.3 MiB (100 %) 3.9 MiB/s in 2s ETA: 0s info: installing component 'rust-std' 22.0 MiB / 22.0 MiB (100 %) 7.6 MiB/s in 2s ETA: 0s info: installing component 'rustc' 66.2 MiB / 66.2 MiB (100 %) 8.7 MiB/s in 7s ETA: 0s info: installing component 'rustfmt' info: default toolchain set to 'stable-x86_64-unknown-linux-gnu' stable-x86_64-unknown-linux-gnu installed - rustc 1.48.0 (7eac88abb 2020-11-16) Rust is installed now. Great! To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH environment variable. Next time you log in this will be done automatically. To configure your current shell, run: source $HOME/.cargo/env plume@vps-xxx:~$ vim ~/.bashrc plume@vps-xxx:~$ source ~/.bashrc plume@vps-xxx:~$ rustup target add wasm32-unknown-unknown info: downloading component 'rust-std' for 'wasm32-unknown-unknown' info: installing component 'rust-std' for 'wasm32-unknown-unknown' info: using up to 500.0 MiB of RAM to unpack components 12.9 MiB / 12.9 MiB (100 %) 8.4 MiB/s in 1s ETA: 0s plume@vps-xxx:~$ cargo web deploy -p plume-front --release error: error: could not find `Cargo.toml` in `/home/plume` or any parent directory plume@vps-xxx:~$ ls repo plume@vps-xxx:~$ cd repo/Plume/ plume@vps-xxx:~/repo/Plume$ cargo web deploy -p plume-front --release info: downloading component 'rust-std' for 'wasm32-unknown-unknown' info: installing component 'rust-std' for 'wasm32-unknown-unknown' info: using up to 500.0 MiB of RAM to unpack components Compiling encoding_index_tests v0.1.4 error[E0463]: can't find crate for `std` | = note: the `wasm32-unknown-unknown` target may not be installed error: aborting due to previous error For more information about this error, try `rustc --explain E0463`. error: could not compile `encoding_index_tests`. To learn more, run the command again with --verbose. error: build failed ```
Ylhp commented 3 years ago
Poster

Ok, I've rustup self uninstall and apt remove cargo rustc && apt autoremove and then begin again the explanations from the rust installation, and all seems go right now :)

Ok, I've `rustup self uninstall` and `apt remove cargo rustc && apt autoremove` and then begin again the explanations from the rust installation, and all seems go right now :)
Owner

Nice!

Nice!
Owner

I'm confused. apt on archlinux?

I'm confused. apt on archlinux?
Ylhp commented 3 years ago
Poster

Sorry, mistaking. My local machine is on Arch, but the server runs on Debian indeed. My bad, sorry. but it's fine now :)

Sorry, mistaking. My local machine is on Arch, but the server runs on Debian indeed. My bad, sorry. but it's fine now :)
Owner

Thanks for confirmation. I will close this issue. Feel free to reopen it or file a new issue if you have some troble.

Thanks for confirmation. I will close this issue. Feel free to reopen it or file a new issue if you have some troble.
KitaitiMakoto closed this issue 3 years ago
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Plume/Plume#857
Loading…
There is no content yet.