bashrc: PATH=/usr/local/bin:/usr/local/git/bin:$PATHĪnd make sure you have the following in your. If you are using bash (the default), add the following to your. Just put your locally installed directories first.
How do I properly install latest version of Ruby 2.3.0 using this rbenv Note: I did not install using home brew, I followed tutorial basically identically however I am installing latest version of Ruby. I am a complete noob with terminal commands and git/pull commands etc. You probably just need to adjust your PATH in your shell initialization files. then shows a file path /plugins/ruby-build & git pull & cd. However, the system-bundled Ruby (version 1.8.7) and the Git that comes with Xcode 4 (1.7.3.4, as I have read) are installed in /usr/bin, which is in the default PATH. Neither of those directories are in the default PATH environment variable, so neither will be used when you type ruby or git into your shell. It installs to /usr/local/git/bin (though I suppose you might have downloaded some other variant).
This is probably where you are installing your locally-compiled Ruby.Ī common “downloadable” Git for Mac OS X is the git-osx-installer pre-built version.
rvm reinstall 2.3.Often, software compiled from source will install to /usr/local/bin. Then I reinstalled ruby version referencing the old version of openssl. I installed the older version of OpenSSL with a tab by rbenv. Gem install therubyracer -with-v8-dir=/usr/local/opt/v8-315Įven after running this code, the bundle install would eventually fail with the inability to load openSSL.įinally, I stumbled across the idea to install an older version of OpenSSL and to have the rvm install point to this older version of OpenSSL.
Some more googling led me to the following link with the following code: brew tap homebrew/versions My gem install for therubyracer would always fail here, v$HOME/.rvm/rubies/ruby-2.3.4/lib/ruby/gems/2.3.4/extensions/universal-darwin-19/2.6.0/therubyracer-0.12.3/mkmf.log, with an openSSL error. This looked promising until I started encountering problems with v8 and therubyracer. ruby -v ruby 2.6.3p62 ( revision 67580) universal.arm64e-darwin20 As usual with the preinstalled version from Apple, it was an old version but, interestingly, a universal binary instead of an emulated-x86 one. I installed ruby-2.3.4 using rvm install ruby-2.3.4 -with-openssl-dir='/usr/local/opt/openssl' I removed ruby-2.3.4 using rvm remove ruby-2.3.4
Next, I searched online and found an article that recommended specifying the system OpenSSL libraries during the ruby installation to make use of the system openSSL. One blog post recommended that I remove the /.rvm/usr/ssl/man with rm -rf and try to run bundle install again to no avail. rvm/log/1594962591/openssl_, /bin/sh: /Users/joelgarcia/.rvm/usr/ssl/man/man3/hmac.3: Too many levels of symbolic links I then ran into issues with OpenSSL that prompted me to try $ rvm pkg install openssl brew install rbenv ruby-build Add rbenv to bash so that it loads every time you open a terminal echo if which rbenv > /dev/null. conftest.c:3:10: fatal error: 'libxml/xmlversion.h' file not foundĪfter googling around, I uncovered that building nokogiri with the system libraries might be beneficial gem install nokogiri -use-system-libraries=true -with-xml2-include="$(xcrun -show-sdk-path)"/usr/include/libxml2 To install the latest version of ruby-2.3.4, I take the following steps from the terminal prompt $ rvm get masterįirst, I encountered problems installing nokogiri-1.8.4. To see what eversion of OpenSSL is on your Mac, type the following command: $ openssl version -a I have no idea why MacOS changed from OpenSSL to LibreSSL. Prior versions of MacOS provided openssl-0.9.8 until the High Sierra release.