Skip to content

Ruby v3.0.5 something wrong with LDFLAGS #2282

Discussion options

You must be logged in to vote

Try removing the LIBRARY_PATH line from your .bash_profile.

Setting env vars like LIBRARY_PATH globally in your shell startup file is one of the most common reasons for Ruby installation failures, and can cause other tools to fail as well. These kinds of env vars should only be set if you know what you're doing, and should never be set globally in your shell startup file.

Also, the fact that the LIBRARY_PATH is pointing to /usr/local either means you blindly copied and pasted this, or that you installed Homebrew using Rosetta, neither of which I recommend. On a brand new Apple Silicon Mac, Hombrew should be installed in /opt/homebrew, and if you didn't install Homebrew in /usr/local, then…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@prpetten
Comment options

@monfresh
Comment options

Answer selected by prpetten
@prpetten
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants