![]() You'll probably find paired files like libssl.so and libssl.so.1.1. You also need to create links to the /lib files in your old OpenSSL folder. This could be useful in the case that -with-openssl-dir option isn't available for some reason. Instead of using -with-openssl-dir option, you could add your old OpenSSL /bin and /include files directly in environment variables in your rvm command, like this: PATH=:$PATH C_INCLUDE_PATH=:/usr/include rvm install 2.6.5. Download a previous version at OpenSSL website, install it in a different location than your current version and use rvm install -with-openssl-dir= 2.6.5 as mentioned in Chris' answer. Your OpenSSL may be too updated and probably has some breaking changes that don't allow some of your ruby C files to be compiled. I've been through a similar problem in Ubuntu 22.10. If you're on macOS Monterey, you can download version 13.4 of the command line tools from Apple's developer site, and then install them. This is not possible on macOS Ventura (13.0), so don't waste your time trying. Downgrade to version 13.4 of the command line tools You should always make sure your apps are running the latest version in a series. There's absolutely no reason to use 2.6.5. Also, note that either way, you will need to update your project to at least 2.6.10. This is meant as a temporary solution so that you can run your project with 2.6.10 and then update it to 2.7.7. You won't be able to switch to other versions that you might have installed with RVM or another version manager. And you'll only be able to use 2.6.10 with this setup. Note that you'll need to disable RVM or any other version manager you might have used before. However, note that it's not officially supported. The reason this works is because this is a pre-built version of Ruby that was compiled with version 13.3 of the command line tools. If you need to have ruby first in your PATH, run:Įcho 'export PATH="/opt/homebrew/opt/ruby/bin:$PATH"' > ~/.zshrc For example, Homebrew will say something like this:īy default, binaries installed by gem will be placed into: Install Ruby 2.6.10: brew install Follow the instructions for setting your PATH.Install Homebrew if you haven't already.Downgrade to version 13.4 of the command line tools.Now that you know the recommended approach, let's go over 2 solutions in case you have a special need to use Ruby 2.6 before you update to 2.7.7: Run your tests and make sure your app still works.ruby-version and Gemfile, and any other file where the Ruby version is specified (except Gemfile.lock because it should never be edited manually) In most cases, it would be as easy as following these steps: Instead, it's recommended to update the project to a newer version. A lot of people get stuck because they think they have to use the version of Ruby that's specified in the project's. Ruby 2.6 reached end of life in March 2022, so it should not be used in production for security reasons. Assuming you have Homebrew installed, you can check which version you have by running brew config, and then look towards the bottom for the lines that starts with CLT: and Xcode: Ruby 2.6.x is no longer supported on any Mac that has version 14 or higher of Apple's command line tools, which would be the case on macOS Ventura (13.0). There has been an error while running make. Ruby-2.6.5 - #post-configuration - please wait Ruby-2.6.5 - #extracting ruby-2.6.5 to /Users/sammalik/.rvm/src/ruby-2.6.5 - please wait Ruby-2.6.5 - #downloading ruby-2.6.5, this may take a while depending on your connection. Installing Ruby from source to: /Users/sammalik/.rvm/rubies/ruby-2.6.5, this may take a while depending on your cpu(s). Updating certificates bundle installation successful. Please read 'rvm help mount' to get more information on binary rubies. No binary rubies available for: osx/13.0/arm64/ruby-2.6.5.Ĭontinuing with compilation. Searching for binary rubies, this might take some time. Ruby-2.6.5 - #removing src/ruby-2.6.5 - please wait ![]() I tried with open ssl 1.0 too, but not any one worked. I tried "rvm install 2.6.5 -with-out-ext=fiddle" there is one question with the same error on stackoverflow and i tried the same method but it won't worked too. I tried to google but won't find error with "_rvm_make -j10". I am trying to install the ruby 2.6.5 on mac having m1 pro chip but it's giving error of "_rvm_make -j10".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |