-
Notifications
You must be signed in to change notification settings - Fork 789
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
Unable to install Ruby 2.6.5 on macOS 10.15 Catalina #1361
Comments
This seems to be the culprit: |
I could install 2.6.5 with Catalina
Maybe, you need to invoke |
@hsbt Thanks for the tip. Tried that and the results are the same :( |
I've set |
Got it working. Apparently I had an old version (6) of |
Thanks @bforma . I have the same issue. Actually unlinking |
@bforma @mamantoha Try this |
I don't think this is a perfect solution, but it works well as a temporary solution. |
I had a different error but trying to do the same thing and related to The system version of
|
Any solution that requires disabling SIP is a very bad idea. and probably you just need to add the path to the OpenSSL which installed by brew. |
Bash: export PATH=$PATH:/usr/local/opt/openssl/bin Fish: set -x PATH /usr/local/opt/openssl/bin $PATH |
I have the same issue, and I found my case was due to conflictions with anaconda environment. I simply deactivated conda environment in my terminal and re-installed rbenv successfully. If you see |
To be clear, you can reenable it after updating
Do you know if this will use brew's openssl if the system has openssl already? |
I know. and it's not good solution for many people who work for companies. because many companies don't like to disable at least the standard OS security options. Well if you want to specify it explicitly, you should be able to do with these flags.
|
Oh, probably RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl)" rbenv install [version] |
@joshuapinter Could you try this? |
@bforma @mamantoha Problems on the macOS related with LLVM have been fixed in Homebrew/homebrew-core#45304 and it has been merged today so it's already available in the latest brew. Could you try this?
You can check statuses of other LLVM versions can be seen in Homebrew/homebrew-core#45061 (comment). |
I believe this will work as well if you're unable or unwilling to disable SIP. Give me a bit and I'll restore the old version and see if this solves it. |
I tried but couldn't reproduce the initial issue. 🤷♂ So, for others, it's worth trying this solution before replacing the system's 👍 |
I tried all of these but cannot get it work. openssl version
|
@cocoonkid Have you set |
@joshuapinter and @imbsky I was able to install ruby using |
@jarod-legault I'm glad to hear that! Have a good rbenv life. |
🙌 Thanks for confirming! |
Does not work. I tried: I try ERROR: While executing gem ... (Errno::EACCES) What else can I do ? |
What finally helped what to recognise that the Ruby version installed needed the following permission setting:
Found it here : |
Nothing works. :( I use macOS Catalina v10.15.2. I just can't install Ruby with rbenv (I mean: ruby-build) Although |
It doesn't matter because brew only downloads and installs pre-built stuff unless you specify it with a flag. |
Have you tried the way I showed you above? I don't know how to help you because I don't have any information. |
Here is how it normally works for me (MacOS Catalina 10.15.2):
|
„Restart your computer” - really? :)
…On Wed 22 Jan 2020 at 08:20, iKK001 ***@***.***> wrote:
Here is how it normally works for me (MacOS Catalina 10.15.2):
Install other Ruby version
Use rbenv: https://github.com/rbenv/rbenv
1. Install homebrew (https://brew.sh)
(do first line is enough)
2a. Install rbenv: Open Terminal and write:
brew install rbenv
2b. Eventually update rbenv (if you come in later you can continue from here…):
brew upgrade rbenv ruby-build
3. Set up rbenv in your shell:
rbenv init
4. Open ~/.bash_profile (you can write nano ~/.bash_profile)
And add the following line to your bash_profile file:
eval "$(rbenv init -)"
5. Restart your computer
7. Run doctor script - everything should look OK
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash
8. Find you what Ruby version you want to install. The following list them all:
rbenv install -l
9. Install your ruby version of choice:
rbenv install 2.6.5
If Error - eventually do:
RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl)" rbenv install 2.6.5
(As described here: #1361)
10. Install Ruby gems:
sudo gem install bundler
11. Check the location where gems are located:
sudo gem env home
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1361?email_source=notifications&email_token=AAAAFCP4ZKRCQXUSSHWH2RLQ676T5A5CNFSM4I6PHTZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJSUB5Q#issuecomment-577061110>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAFCMUNGKXPPT2GGTHIEDQ676T5ANCNFSM4I6PHTZQ>
.
|
smile - I used to work with Windows and this reflex is somehow in my spine... ;) |
This is nothing new. I tried it all before. It does NOT work. Worse, I have created the latest Ubuntu server in Docker and tried to install Ruby 2.7.0 with ruby-build. It also has failed! It looks bad. |
Remember to |
This one worked for me. |
Thank you very much.
|
Hi,
I'm trying to
rbenv install 2.6.5
after upgrading from Mojave to Catalina and I am getting the following error(s):Any clue on how to fix this?
The text was updated successfully, but these errors were encountered: