RVM Ruby with TK installation (OSX) -


i'm trying install ruby tk support.

using rvm, did this:

rvm install 1.9.2 -c --enable-shared --enable-pthread 

the installation appears work fine, , can see called

.rvm/src/ruby-1.9.2-p320/ext/tk/tcltklib.c 

which assume library need?

i try run

require 'tk' 

in irb, error message

loaderror: no such file load -- tk 

any ideas?

update: fixed!

if interested in complete list of steps ruby upgrade 2.0.0 tk support on osx, did:

install rvm ruby -

\curl -#l https://get.rvm.io | bash -s stable --autolibs=3 --ruby 

install tk activetcl - http://www.activestate.com/activetcl

run

rvm reinstall 2.0.0 --enable-shared --enable-pthread --with-tk --with-tcl 

fire irb , check tk installation successful with

require 'tk' 

rvm disables tk/tcl default (problems on os x), need tell ruby (via rvm) want tk/tcl:

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

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -