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:

thufir@caladan:~$
thufir@caladan:~$ rvm -v

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

thufir@caladan:~$
thufir@caladan:~$ ruby -v
ruby 1.9.2p318 (2012-02-14 revision 34678) [i686-linux]
thufir@caladan:~$
thufir@caladan:~$ gem -v
1.8.17
thufir@caladan:~$
thufir@caladan:~$ 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…
thufir@caladan:~$
thufir@caladan:~$ 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”

thufir@caladan:~$
thufir@caladan:~$ nl /etc/lsb-release
1 DISTRIB_ID=Ubuntu
2 DISTRIB_RELEASE=11.10
3 DISTRIB_CODENAME=oneiric
4 DISTRIB_DESCRIPTION=“Ubuntu 11.10”
thufir@caladan:~$
thufir@caladan:~$ gem search tk

*** LOCAL GEMS ***

thufir@caladan:~$ gem search tcl

*** LOCAL GEMS ***

thufir@caladan:~$

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: Graphical User Interfaces: Installing Tk

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: Graphical User Interfaces: Installing Tk

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.
[…]
thufir@caladan:~$ 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:

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
(Build Extensions · Issue #131 · rbenv/ruby-build · GitHub)

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:

thufir@caladan:~$
thufir@caladan:~$ 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…
thufir@caladan:~$
thufir@caladan:~$
thufir@caladan:~$ arcadia
arcadia: command not found
thufir@caladan:~$

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

thufir@caladan:~$
thufir@caladan:~$ 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*
thufir@caladan:~$
thufir@caladan:~$ ruby --version
ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]
thufir@caladan:~$
thufir@caladan:~$ rvm --version

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

thufir@caladan:~$

-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:

thufir@caladan:~$
thufir@caladan:~$ 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
thufir@caladan:~$
thufir@caladan:~$ 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
thufir@caladan:~$
thufir@caladan:~$ which ruby
/home/thufir/.rvm/bin/ruby
thufir@caladan:~$
thufir@caladan:~$ which gem
/home/thufir/.rvm/bin/gem
thufir@caladan:~$
thufir@caladan:~$ rvm --version

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

thufir@caladan:~$
thufir@caladan:~$ ruby --version
ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]
thufir@caladan:~$

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 Download Scintilla and SciTE

and

Geany https://www.geany.org/

are simpler option to install