Hi all,
I’ve only got about 2 weeks of coding experience under my belt so bear with me. I’m working through an online course that does provide instructions for setting up their preferred environment, but I’m running into a wall with installation that the staff has yet to figure out themselves. Currently I’m running 10.14.6 but I also had this problem with High Sierra.
Here’s the error I’m getting:
QLU-3:~ Qlab_RigU$ brew install rbenv
Updating Homebrew…
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
gdbgui           jc             jolie
==> Updated Formulae
gettext 
         gitfs           libtorch
aws-cdk          gitg            libvirt
contentful-cli       gitless          libxmlsec1
cpp-gsl          gnome-builder       literate-git
dolt            hugo            lxc
drafter          lazygit          phoronix-test-suite
entr            lft            ratfor
fastlane          libgit2          salt
flyway           libgit2-glib        sile
freeling          libosmium         vips
gh             libpulsar         vttest
==> Downloading https://homebrew.bintray.com/bottles/rbenv-1.1.2.mojave.bottle.t
######################################################################## 100.0%
==> Pouring rbenv-1.1.2.mojave.bottle.tar.gz
 /usr/local/Cellar/rbenv/1.1.2: 36 files, 65KB
QLU-3:~ Qlab_RigU$ echo ‘export PATH=“$HOME/.rbenv/bin:$PATH”’ >> ~/.bashrc
QLU-3:~ Qlab_RigU$ echo ‘eval “$(rbenv init -)“’ >> ~/.bashrc
QLU-3:~ Qlab_RigU$ source ~/.bashrc
QLU-3:~ Qlab_RigU$ echo ‘source ~/.bashrc’ >> ~/.bash_profile
QLU-3:~ Qlab_RigU$ rbenv install 2.5.1
Downloading openssl-1.1.1d.tar.gz…
 → https://dqw8nmjcqpjn7.cloudfront.net/1e3a91bc1f9dfce01af26026f856e064eab4c8ee0a8f457b5ae30b40b8b711f2
Installing openssl-1.1.1d…
BUILD FAILED (OS X 10.14.6 using ruby-build 20200401)
Inspect or clean up the working tree at /var/folders/mq/tgclsnqj02z165t2xky7qh3w0000gp/T/ruby-build.20200423025207.5242.vbpEIs
Results logged to /var/folders/mq/tgclsnqj02z165t2xky7qh3w0000gp/T/ruby-build.20200423025207.5242.log
Last 10 log lines:
*** perl configdata.pm --dump ***
***  (If you are new to OpenSSL, you might want to consult the  ***
***  ‘Troubleshooting’ section in the INSTALL file first)     ***
WARNING! If you wish to build 32-bit libraries, then you have to
invoke ‘KERNEL_BITS=32 ./config ‘–prefix=/Users/Qlab_Rig U/.rbenv/versions/2.5.1/openssl’ ‘–openssldir=/Users/Qlab_Rig U/.rbenv/versions/2.5.1/openssl/ssl’ ‘zlib-dynamic’ ‘no-ssl3’ ‘shared’’.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Thanks for the help!