Rvm Ruby with Tk Installation (Osx)

RVM Ruby with TK installation (OSX)

RVM disables tk/tcl by default (problems on OS X), you need to tell ruby (via rvm) you want tk/tcl:

rvm install 1.9.2 --enable-shared --enable-pthread --with-tk --with-tcl

Anyone get ruby-tk to install on El Capitan?

ruby tcl/tk installation guide for mac os x el capitan

  1. install brew (follow the brew installation guide)
    http://brew.sh/

  2. install http://www.activestate.com/activetcl/downloads

  3. press option+click to install the ActiveTcl 8.5 dmg file.

  4. install rvm (follow the rvm installation guide)
    https://rvm.io/rvm/install

  5. install ruby with tcl and tk:
    rvm reinstall ruby-2.2.3 --with-tcl --with-tk

  6. use the newly download ruby version:
    rvm use 2.2.3 --default

installation reference

download link

guides/tutorials

No rubies installed with rvm

Please first check if you have XCode installed on your Mac OS X

Make sure you are connected to the network.

Go to the Apple app store and download XCode first (it's free).
See also: How to use/install gcc on Mac OS X 10.8 / Xcode 4.4 , and http://forums.macrumors.com/showthread.php?t=1289543

Then try to install Ruby:

   rvm list known
rvm requirements # you might not have Xcode installed on your OS X

rvm install 1.9.3

please check the instructions here:

https://rvm.io/rubies/installing/

if this does not work for you, try to upgrade RVM:

https://rvm.io/rvm/upgrading/

Can't install Ruby 2.0.0 with rvm

When I installed Ruby 2.0 on my OS X Mountain Lion I had to ensure that OpenSSL was first installed. Since I'm using Homebrew, all I had to do a brew install openssl before rvm install 2.0.0. It looks like you're running Macports (which I haven't used before), so I guess sudo port install openssl may work for you.

Also try to install the following as well: autoconf, automake, libtool, pkg-config, libiconv, libyaml, libffi, readline, libxml2, libxslt, libksba, curl-ca-bundle, sqlite3, zlib, ncurses, gdbm - they're listed as being missing by the output you've provided.

Make error installing Ruby 1.9.2 with RVM and Readline under OSX Lion

I had a very similar issue. I eventually found that adding this to my .bash_profile stopped my initial make errors:

export ARCHFLAGS="-arch x86_64"

Also from the command line run the following:

brew install readline
brew link readline
brew install libxml2
brew link libxml2

Then when you install ruby use this command:

rvm install 1.9.2 -C --with-readline-dir=/usr/local/Cellar/readline/6.2.1/ --with-libxml2-dir=/usr/local/Cellar/xml2/2.7.8

Hope that helps

Installing Ruby on Mac OS X 10.8.2

Just found this. I think this is what you need to do.

First, if you haven't already, download MacPorts and install it. Then run the following two commands:

sudo port selfupdate
sudo port install apple-gcc42

Too get real UNIX GCC. Then, to install 1.9.3 run:

CC=/opt/local/bin/gcc-apple-4.2 rvm install ruby-1.9.3-p194 --enable-shared --without-tk --without-tcl

Which tells rvm to install Ruby using UNIX GCC without Tk or Tcl which require X11 (left out of OSX 10.8). If you want things like readline support, OpenSSL, etc., check out the above linked gist.

Error installing ruby-1.9.3-p547 with RVM on osx 10.9.3

Was running in to the same issue. Just ran these commands sorted everything out...

$ xcode-select --install - this seems to be the key.

$ rvm cleanup all - may need to run sudo on this one.

$ rvm get latest

$ rvm install ruby-1.9.3- with whatever patch.

Hope this works for you!



Related Topics



Leave a reply



Submit