Can anyone get ruby-tk working on Mountain Lion?
-
12-12-2019 - |
Question
sudo port install ruby19 +mactk
runs happily without errors on Mountain Lion with Xcode 4.4 freshly installed with command line tools and the macports package for Mountain Lion installed, but a previously working ruby-tk script throws this error:
./foot.rb:6:in `require': no such file to load -- tk (LoadError)
Any ideas? Many TIA.
Solution
Sorry, I am an idiot. Forgot to replace the native ruby, a la
$ sudo mv /usr/bin/ruby /usr/bin/ruby.ORIG
$ sudo ln -s /opt/local/bin/ruby1.9 /usr/bin/ruby
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow