Solved by re-installing Xcode, CLI tools, openssl (brew), autoconf (brew), automake (brew) and apple-gcc42 (brew). After re-installing I ran rvm get head
(thanks to @mpapis in #rvm on freenode). rvm get head
gave me the following:
* WARNING: you have 'rvm_configure_env' in /etc/rvmrc, run the following to fix:
sudo sed -i'' -e "s#rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include')#rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib' 'CFLAGS=-I/opt/sm/pkg/active/include' 'CPATH=/opt/sm/pkg/active/include')#" /etc/rvmrc
* No new notes to display.
# RVM: Shell scripts enabling management of multiple ruby environments.
# RTFM: https://rvm.io/
# HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
# Cheatsheet: http://cheat.errtheblog.com/s/rvm/
# Screencast: http://screencasts.org/episodes/how-to-use-rvm
# In case of any issues read output of 'rvm requirements' and/or 'rvm notes'
Upgrade of RVM in /usr/local/rvm/ is complete.
# hinmn,
#
# Thank you for using RVM!
# I sincerely hope that RVM helps to make your life easier and
# more enjoyable!!!
#
# ~Wayne
RVM reloaded!
After that I just ran:
sudo sed -i'' -e "s#rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include')#rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib' 'CFLAGS=-I/opt/sm/pkg/active/include' 'CPATH=/opt/sm/pkg/active/include')#" /etc/rvmrc
And everything worked out :)
As Apple replied to the ticket referenced in mattdwen's Open Radar link above, as of macOS Sierra 10.12,
you can no longer create items in /Volumes unless root.
Further, my best understanding of the AppleScript mount volume command is that it doesn't have a way to specify the mount point and consequently it only mounts volumes under /Volumes
through the Finder's standard mechanism. So, I don't think you can do it via AppleScript.
But there's another way. You can accomplish the same thing using the lower level mount
command:
mkdir -p ~/mnt
mount_smbfs "//my_username:my_password@my_hostname/share" ~/mnt
After mounting the volume this way, you should see a normal "volume" icon appear on your desktop and the ~/mnt
directory will appear as "share" when you browse your user directory via Finder.
The one thing missing from this approach is saving the login credentials in Keychain. To do that, you have to do a bit more scripting. Something like this.
Save the password:
security add-generic-password -a my_username -s my_hostname -w my_password
Retrieve the password and mount the share:
pass=$(security find-generic-password -a my_username -s my_hostname -w)
mount_smbfs "//my_username:${pass}@my_hostname/share" ~/mnt
NOTE: If you have special characters in your password, you will probably need to URL encode it, perhaps like this:
pass='my !@#%%^& password'
pass=$(php -r "echo urlencode(\"$pass\");")
>>> my+%21%40%23%25%25%5E%26+password
Best Answer
ruby --version
says:macOS Sierra 10.12 (16A323) release installed from the App Store with XCode 8 installed
Update: macOS 10.13.3 has