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

Error: Cannot find binary path #733

Open
wmlgl opened this issue Oct 28, 2019 · 0 comments
Open

Error: Cannot find binary path #733

wmlgl opened this issue Oct 28, 2019 · 0 comments

Comments

@wmlgl
Copy link

wmlgl commented Oct 28, 2019

🐛 Bug description

Wrong when run wasm-pack in msys2, like this

$ RUST_LOG=debug wasm-pack build
 INFO 2019-10-28T14:40:35Z: wasm_pack::command: Running build command...
 INFO 2019-10-28T14:40:36Z: wasm_pack::command::build: Checking rustc version...
 INFO 2019-10-28T14:40:36Z: wasm_pack::command::build: rustc version is 38.
 INFO 2019-10-28T14:40:36Z: wasm_pack::command::build: Checking crate configuration...
 INFO 2019-10-28T14:40:36Z: wasm_pack::command::build: Crate is correctly configured.
 INFO 2019-10-28T14:40:36Z: wasm_pack::command::build: Checking for wasm-target...
[INFO]: Checking for the Wasm target...
Error: Cannot find binary path

👟 Steps to reproduce

1.Install cargo, run this command on git-bash

 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

2.Install wasm-pack, run this command on git-bash

curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

3.Install msys2,follow steps 1 through 6

http://www.msys2.org/

4.start msys2, install gcc

pacman -S gcc

5.Change toolchain to stable-x86_64-pc-windows-gnu

6.Create a wasm project, follow Quickstart Guide

https://github.com/rustwasm/wasm-pack/tree/v0.8.1

7.Build project on msys2

🌍 Your environment

system: windows 8.1
wasm-pack version: wasm-pack 0.8.1
rustc version: rustc 1.38.0 (625451e37 2019-09-23)
path: /usr/local/bin:/usr/bin:/bin:/opt/bin:/c/windows/system32:/c/windows:/c/windows/System32/Wbem:/c/windows/System32/WindowsPowerShell/v1.0:/g/Software/Microsoft VS Code/bin:/f/softwave/nvm:/f/softwave/nodejs:/f/Program Files/TortoiseSVN/bin:/g/Software/Microsoft VS Code/Code.exe/bin:/c/Program Files (x86)/GtkSharp/2.12/bin:/c/Users/wumingli/.cargo/bin:/e/Program Files/Git/cmd:/g/Software/Java/jdk1.8.0_60/bin:/g/Software/Adk/platform-tools:/g/Software/Adk/tools:/f/softwave/nvm:/f/softwave/nodejs:/g/Software/gradle-4.9/bin:/e/Program Files/ffmpeg/bin:/c/Users/wumingli/AppData/Roaming/npm:/c/Users/wumingli/.cargo/bin:/usr/bin:/c/Users/wumingli/.cargo/bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant