Arcadia IDE requires tcl/tk and ruby-tk

which or where tcl and tk does arcadia require? Is this a gem which I
install, or a package from synaptic? In either case, which one
specifically? There are so many variants.

Trying to use arcadia:

[email protected]:~$
[email protected]:~$ rvm -v

rvm 1.10.3 by Wayne E. Seguin [email protected], Michal P.
[email protected] [https://rvm.beginrescueend.com/]

[email protected]:~$
[email protected]:~$ ruby -v
ruby 1.9.2p318 (2012-02-14 revision 34678) [i686-linux]
[email protected]:~$
[email protected]:~$ gem -v
1.8.17
[email protected]:~$
[email protected]:~$ gem install arcadia
Successfully installed arcadia-0.11.1.1
1 gem installed
Installing ri documentation for arcadia-0.11.1.1…
Installing RDoc documentation for arcadia-0.11.1.1…
[email protected]:~$
[email protected]:~$ arcadia

   *** LOAD ERROR ***

   Arcadia require ruby-tk extension
   and tcl/tk run-time
   you must install before run ...

----- LoadError Details-----------------------
Platform : “i686-linux”
Ruby version : “1.9.2”
Message :
“no such file to load – tk”

[email protected]:~$
[email protected]:~$ nl /etc/lsb-release
1 DISTRIB_ID=Ubuntu
2 DISTRIB_RELEASE=11.10
3 DISTRIB_CODENAME=oneiric
4 DISTRIB_DESCRIPTION=“Ubuntu 11.10”
[email protected]:~$
[email protected]:~$ gem search tk

*** LOCAL GEMS ***

[email protected]:~$ gem search tcl

*** LOCAL GEMS ***

[email protected]:~$

thanks,

Thufir

Tk is packaged by default with Ruby Installer for Windows (you can
choose it during installation). It’s probably somewhere in the
operating system repos for Linuxes (but don’r quote me on this).

– Matma R.

On Tue, 13 Mar 2012 22:05:04 +0900, Bartosz Dziewoński wrote:

Tk is packaged by default with Ruby Installer for Windows (you can
choose it during installation). It’s probably somewhere in the operating
system repos for Linuxes (but don’r quote me on this).

– Matma R.

Ok, that’s what I thought. I installed:

aptitude install -y libtcltk-ruby libtcltk-ruby1.9.1

but still get that error. Well, I’ll look at it again tomorrow. thanks
for the quick reply!

I gues I’m missing “regular” tk.

-Thufir

Bartosz Dziewoński <matma.rex gmail.com> writes:

Quick googling found this: http://ruby.about.com/od/tk/a/Tk.htm

This command should be all you need. (I didn’t try it, I don’t have
access to an Ubuntu computer right now.)

$ sudo apt-get install libtcltk-ruby

Yes, I installed that already, no luck. I’ll try when I get home to
find out more.

Quick googling found this: http://ruby.about.com/od/tk/a/Tk.htm

This command should be all you need. (I didn’t try it, I don’t have
access to an Ubuntu computer right now.)

$ sudo apt-get install libtcltk-ruby

– Matma R.

On 13.03.2012 13:58, Thufir H. wrote:

which or where tcl and tk does arcadia require? Is this a gem which I
install, or a package from synaptic? In either case, which one
specifically? There are so many variants.
[…]
[email protected]:~$ rvm -v
[…]
Arcadia require ruby-tk extension

You already got a lot of useful responses, but here’s my guess: when you
use RVM you basically build Ruy yourself. You did install the TCL/TK
packages after your installed Ruby, my guess is you need them to have
properly installed before you build Ruby; i.e. Ruby requires them to
be present during the build process.

Short: now that you have the TCL/TK packages (and their -dev variants
probbably) installed, reinstall Ruby via rvm so it picks them up.

I’ve never used TCL/TK but I have similar problems when using rvm on a
new machine and I forget to install e.g. libreadline-dev ; I end up with
a non-working IRB, which requires that the libreadline-dev package is
available at the time I install/build Ruby via rvm (at least this was
the case in the past).

HTH,

  • Markus

On Tuesday, March 13, 2012 8:58:06 AM UTC-4, Thufir wrote:

which or where tcl and tk does arcadia require? Is this a gem which I
install, or a package from synaptic? In either case, which one
specifically? There are so many variants.

You could use ruby-build and this build script:

https://github.com/trans/ruby-build-tk/blob/master/share/ruby-build/1.9.3-rc1%2Btk8.5

Note, that I threw that together just to get up running. I don’t
consider
it perfect by any means. So if you see any way to improve please let me
know.

And if you are so inclined please support ruby-build issue #131
(https://github.com/sstephenson/ruby-build/issues/131)

On Wed, 14 Mar 2012 16:40:25 +0900, Markus F. wrote:

Short: now that you have the TCL/TK packages (and their -dev variants
probbably) installed, reinstall Ruby via rvm so it picks them up.

Ah, very interesting. I try to stay within apt, so this is my first
usage of rvm and it’s a bit new.

Thanks for all the input :slight_smile:

-Thufir

On Wed, 14 Mar 2012 16:40:25 +0900, Markus F. wrote:

Short: now that you have the TCL/TK packages (and their -dev variants
probbably) installed, reinstall Ruby via rvm so it picks them up.

Ok, I did that, and then:

[email protected]:~$
[email protected]:~$ gem install arcadia
Fetching: coderay-1.0.5.gem (100%)
Fetching: arcadia-0.11.1.1.gem (100%)
Successfully installed coderay-1.0.5
Successfully installed arcadia-0.11.1.1
2 gems installed
Installing ri documentation for coderay-1.0.5…
Installing ri documentation for arcadia-0.11.1.1…
Installing RDoc documentation for coderay-1.0.5…
Installing RDoc documentation for arcadia-0.11.1.1…
[email protected]:~$
[email protected]:~$
[email protected]:~$ arcadia
arcadia: command not found
[email protected]:~$

Quite odd, because last time it was on the path before somehow. It’s
certainly installed:

[email protected]:~$
[email protected]:~$ ll .rvm/gems/ruby-1.9.3-p125/bin/arcadia
-rwxr-xr-x 1 thufir thufir 412 2012-03-14 20:22
.rvm/gems/ruby-1.9.3-p125/
bin/arcadia*
[email protected]:~$
[email protected]:~$ ruby --version
ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]
[email protected]:~$
[email protected]:~$ rvm --version

rvm 1.10.3 by Wayne E. Seguin [email protected], Michal P.
[email protected] [https://rvm.beginrescueend.com/]

[email protected]:~$

-Thufir

On Thu, 15 Mar 2012 12:46:40 +0900, Thufir H. wrote:

Quite odd, because last time it was on the path before somehow. It’s
certainly installed:

Ok, well, this seems to be a different problem. Maybe because I didn’t
do the post configuration correctly:

http://beginrescueend.com/rvm/basics/

However, I’m going through that again, but don’t see what I’m missing.

-Thufir

On Thu, Mar 15, 2012 at 12:13 AM, Thufir H. [email protected]
wrote:

However, I’m going through that again, but don’t see what I’m missing.

Do you have a line at the end of your .bashrc adding $HOME/.rvm/bin to
your PATH?

On Wednesday, 14 March 2012 23:36:26 UTC-7, Eric C. wrote:

do the post configuration correctly:

http://beginrescueend.com/rvm/basics/

However, I’m going through that again, but don’t see what I’m missing.

Do you have a line at the end of your .bashrc adding $HOME/.rvm/bin to
your PATH?

yes:

[email protected]:~$
[email protected]:~$ tail .bashrc
fi

enable programmable completion features (you don’t need to enable

this, if it’s already enabled in /etc/bash.bashrc and /etc/profile

sources /etc/bash.bashrc).

if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi

PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[email protected]:~$
[email protected]:~$ echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/thufir/.rvm/bin:/home/thufir/.rvm/bin
[email protected]:~$
[email protected]:~$ which ruby
/home/thufir/.rvm/bin/ruby
[email protected]:~$
[email protected]:~$ which gem
/home/thufir/.rvm/bin/gem
[email protected]:~$
[email protected]:~$ rvm --version

rvm 1.10.3 by Wayne E. Seguin [email protected], Michal P.
[email protected] [https://rvm.beginrescueend.com/]

[email protected]:~$
[email protected]:~$ ruby --version
ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]
[email protected]:~$

I did install rvm as root, but imploded that when I realized it wasn’t
going to work. I’m wondering whether that created some artifacts which
make it hard to execute gems from the CLI. It’s not just arcadia, but I
also installed the rails gem and get the same result – it’s just not on
the path. The gems are there in the .rvm directory, however.

-Thufir

Thanks for the help. Follow ups to:

https://groups.google.com/d/topic/rubyversionmanager/CnKQpHvgwBk/
discussion

which seems a bit more on topic.

thanks,

Thufir

just type the next command inside of your project:

gem install tk

ruby-tk do not seem maintained anymore

SciTE https://www.scintilla.org/SciTEDownload.html

and

Geany https://www.geany.org/

are simpler option to install

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs