-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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 issue on macOS 14.0 #1953
Comments
@ruby-ist It is unfortunate that I can't reproduce it because I don't have MacOS. It might be just a dependency problem. I recommend trying the git clone --depth 1 https://github.com/rust-lang/rustlings
cd rustlings
cargo install --force --path . Please tell me if it works :) |
@mo8it That doesn't work, facing the same issue. However I found out that even though compilation failed, the |
Weird. It looks like a problem with the Could you please also post the output of the command Otherwise, yes, you can work with |
I ran Output of stable-aarch64-apple-darwin (default) Thanks for your response @mo8it. I will continue with |
I got a hint. Could you please share the output of the following commands? which strip
whereis strip
echo $PATH |
You might also find something helpful in rust-lang/cargo#8913 or rust-lang/rust#73908 Of course only if you are interested in fixing the issue. Otherwise, I hope that |
Sure, I would be happy to help you fix the issues. Here are the outputs: $ which strip
/opt/homebrew/opt/binutils/bin/strip
$ whereis strip
strip: /usr/bin/strip /opt/homebrew/opt/binutils/share/man/man1/strip.1
$ echo "${PATH//:/\n}"
/opt/homebrew/opt/binutils/bin
/Users/srira/.bun/bin
/Users/srira/.wasmtime/bin
/opt/homebrew/opt/openjdk/bin
/Users/srira/.gem/ruby/3.1.0/bin
/Users/srira/.rubies/ruby-3.1.0/lib/ruby/gems/3.1.0/bin
/Users/srira/.rubies/ruby-3.1.0/bin
/opt/homebrew/opt/sqlite/bin
/opt/homebrew/bin
/opt/homebrew/sbin
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
/Users/srira/DragonRuby
/Users/srira/.rubies/ruby-3.1.0/bin
/Users/srira/.gem/ruby/3.1.0/bin
/Users/srira/.rubies/ruby-3.1.0/lib/ruby/gems/3.1.0/bin
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
/Library/Apple/usr/bin
/Applications/Postgres.app/Contents/Versions/latest/bin
/Users/srira/.cargo/bin
/Users/srira/Library/Application Support/JetBrains/Toolbox/scripts |
Your output shows that this has to be this bug related to stripping: dtolnay/proc-macro2#448 See this too: rust-lang/cargo#11641 (comment)
The solution would be to find out where the PATH="/opt/homebrew/opt/binutils/bin:$PATH" Then, just change it to this (appending): PATH="$PATH:/opt/homebrew/opt/binutils/bin" This means that binaries will be looked for in Feel free to reopen if it doesn't work. |
Thanks a lot @mo8it changing |
I've been trying to install Rustlings on my m1 macbook air but I'm facing the following compilation error again and again.
Here's the details about my spec:
OS:
macOS 14.0 Sonoma
Xcode version:
15.3
I tried everything recommended on stackoverflow but had no luck, I also saw one other issue similar to this here. But that fix doesn't seem to be working for me. I also tried re-installing
rust
,cmake
,llvm
and xcode command line tools.Edit: I have another linux machine, in which rustlings installed successfully
The text was updated successfully, but these errors were encountered: