Ruby v3.0.5 something wrong with LDFLAGS #2282
-
rbenv - v 1.2.0
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Not sure if this is enough information to get started, but happy to provide whatever logs might be helpful. This is a brand new machine, trying to get it set up for work. |
Beta Was this translation helpful? Give feedback.
-
Mine uses zsh. I revised my |
Beta Was this translation helpful? Give feedback.
-
Since, I had Kafka installed, I had to comment below properties from my .zshrc file.
After that run below commands on terminal source .zshrc
LIBRARY_PATH="" Finally install using below command rvm install ruby-3.3.1 --with-openssl-dir=/opt/homebrew/opt/[email protected] |
Beta Was this translation helpful? Give feedback.
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…