Re: Tk using Ruby

ruby -v
ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x86_64-linux-gnu]
I want to fool around with the `Tk' GUI environment.
tried `gem install tk'. No Joy! Output at:
5665a011 - Ruby Tk

it's never a joy to install an app as root. corrollary: never a joy to
install a system app :slight_smile:

Ideas please. TIA

install manually and separately tk and tcl; one for tk, one for tcl. i just
tested the latest 8.6.12 awhile back
1 download the installer in a subfolder under your home folder
2 configure using --prefix=/home/you/your_folder. ("/home/you/your_folder"
is your target destination folder. you can find the configure and installer
files right?)
3 just make and make install the combo separately

4 install ruby gem tk *explicitly*
eg,
gem install gem install tk -- --with-tcltkversion=8.6
--with-tcl-lib=/home/you/your_folder/tktcl/lib
--with-tk-lib=/home/you/your_folder/tktcl/lib
--with-tcl-include=/home/you/your_folder/tktcl/include/tcl8.6
--with-tk-include=/home/you/your_folder/tktcl/include/tcl8.6

now try,

irb(main):001:0> require 'tk'
=> true
irb(main):002:0> Tk::TK_PATCHLEVEL
=> "8.6.12"

hth.

--botp

--
Duke
** Text only please. Bottom post is best. **

inlining. best for me :slight_smile:

路路路

On Sun, Dec 19, 2021 at 2:27 AM Duke Normandin <dukeofpurl@gmx.com> wrote:

it's never a joy to install an app as root. corrollary: never a
joy to install a system app :slight_smile:

LOL - Too true!

install manually and separately tk and tcl; one for tk, one for
tcl. i just tested the latest 8.6.12 awhile back
1 download the installer in a subfolder under your home folder
2 configure using --prefix=/home/you/your_folder.
("/home/you/your_folder" is your target destination folder. you
can find the configure and installer files right?)
3 just make and make install the combo separately

4 install ruby gem tk *explicitly*
eg,
gem install gem install tk -- --with-tcltkversion=8.6
--with-tcl-lib=/home/you/your_folder/tktcl/lib
--with-tk-lib=/home/you/your_folder/tktcl/lib
--with-tcl-include=/home/you/your_folder/tktcl/include/tcl8.6
--with-tk-include=/home/you/your_folder/tktcl/include/tcl8.6

I'll give your method a try as well. I ran into problems with the
other suggested methods. Not a big deal though. I don't /need/ Tk!
I was just wanting to test-drive an example. Thanks for your input.

路路路

On Sun, 19 Dec 2021 20:42:57 +0800 botp <botpena@gmail.com> wrote:

On Sun, Dec 19, 2021 at 2:27 AM Duke Normandin > <dukeofpurl@gmx.com> wrote:

I'm sorry, but I think it's a great shame you failed at such a simple task.

I guess the GIGO principle applies here. Garbage In Garbage Out. No
surprise there!

路路路

On Sun, Dec 19, 2021 at 8:23 AM Duke Normandin <dukeofpurl@gmx.com> wrote:

On Sun, 19 Dec 2021 20:42:57 +0800 > botp <botpena@gmail.com> wrote:

> On Sun, Dec 19, 2021 at 2:27 AM Duke Normandin > > <dukeofpurl@gmx.com> wrote:

> it's never a joy to install an app as root. corrollary: never a
> joy to install a system app :slight_smile:

LOL - Too true!

> install manually and separately tk and tcl; one for tk, one for
> tcl. i just tested the latest 8.6.12 awhile back
> 1 download the installer in a subfolder under your home folder
> 2 configure using --prefix=/home/you/your_folder.
> ("/home/you/your_folder" is your target destination folder. you
> can find the configure and installer files right?)
> 3 just make and make install the combo separately
>
> 4 install ruby gem tk *explicitly*
> eg,
> gem install gem install tk -- --with-tcltkversion=8.6
> --with-tcl-lib=/home/you/your_folder/tktcl/lib
> --with-tk-lib=/home/you/your_folder/tktcl/lib
> --with-tcl-include=/home/you/your_folder/tktcl/include/tcl8.6
> --with-tk-include=/home/you/your_folder/tktcl/include/tcl8.6

I'll give your method a try as well. I ran into problems with the
other suggested methods. Not a big deal though. I don't /need/ Tk!
I was just wanting to test-drive an example. Thanks for your input.

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--
Andy Maleh

LinkedIn: Andy Maleh - Lexop | LinkedIn
<https://www.linkedin.com/in/andymaleh&gt;
Blog: http://andymaleh.blogspot.com
GitHub: http://www.github.com/AndyObtiva

correction, that should be:
gem install gem install tk -- --with-tcltkversion=8.6
--with-tcl-lib=/home/you/your_folder/lib
--with-tk-lib=/home/you/your_folder/lib
--with-tcl-include=/home/you/your_folder/include/tcl8.6
--with-tk-include=/home/you/your_folder/include/tcl8.6

that is, remove the /tktcl part since that is *my folder. lol. should have
used standard search and replace, lol.

路路路

On Sun, Dec 19, 2021 at 8:42 PM botp <botpena@gmail.com> wrote

4 install ruby gem tk *explicitly*
eg,
gem install gem install tk -- --with-tcltkversion=8.6
--with-tcl-lib=/home/you/your_folder/tktcl/lib
--with-tk-lib=/home/you/your_folder/tktcl/lib
--with-tcl-include=/home/you/your_folder/tktcl/include/tcl8.6
--with-tk-include=/home/you/your_folder/tktcl/include/tcl8.6

Thanks for the Heads Up!
Haven't tried your method yet. Having Debian repo issues that I
first need to fix.

Afterwards, I think that I'll nuke all versions of Ruby off this
box and start over with a fresh Ruby install. Hopefully that will
solve the issues I'm having.

I've been hacking code since 1981, and along the way there has
always been issues to solve with installation software at one time
or another. These days though, at 75 yrs young LOL and dealing with
cancer/chemo, this stuff can be more of a challenge some days. :confused:

Thanks again for your input.

路路路

On Mon, 20 Dec 2021 03:02:22 +0800 botp <botpena@gmail.com> wrote:

On Sun, Dec 19, 2021 at 8:42 PM botp <botpena@gmail.com> wrote

> 4 install ruby gem tk *explicitly*
> eg,
> gem install gem install tk -- --with-tcltkversion=8.6
> --with-tcl-lib=/home/you/your_folder/tktcl/lib
> --with-tk-lib=/home/you/your_folder/tktcl/lib
> --with-tcl-include=/home/you/your_folder/tktcl/include/tcl8.6
> --with-tk-include=/home/you/your_folder/tktcl/include/tcl8.6
>
>
correction, that should be:
gem install gem install tk -- --with-tcltkversion=8.6
--with-tcl-lib=/home/you/your_folder/lib
--with-tk-lib=/home/you/your_folder/lib
--with-tcl-include=/home/you/your_folder/include/tcl8.6
--with-tk-include=/home/you/your_folder/include/tcl8.6

that is, remove the /tktcl part since that is *my folder. lol.
should have used standard search and replace, lol.

--
Duke
** Text only please. Bottom post is best. **

> correction, that should be:
> gem install gem install tk -- --with-tcltkversion=8.6
> --with-tcl-lib=/home/you/your_folder/lib
> --with-tk-lib=/home/you/your_folder/lib
> --with-tcl-include=/home/you/your_folder/include/tcl8.6
> --with-tk-include=/home/you/your_folder/include/tcl8.6

oops. s/gem install gem install/gem install

Thanks for the Heads Up!
Haven't tried your method yet. Having Debian repo issues that I
first need to fix.

it should work. i do debian and derivatives..

Afterwards, I think that I'll nuke all versions of Ruby off this
box and start over with a fresh Ruby install. Hopefully that will
solve the issues I'm having.

i use a version mgr, currently using asdf-vm to install different versions
of ruby, erlang, elixir, node.

I've been hacking code since 1981, and along the way there has
always been issues to solve with installation software at one time

wow. you started early, i started 1985.

or another. These days though, at 75 yrs young LOL and dealing with
cancer/chemo, this stuff can be more of a challenge some days. :confused:

you are tough. proof that nothing can kill you, man.

best regards
--botp

路路路

On Mon, Dec 20, 2021 at 3:16 AM Duke Normandin <dukeofpurl@gmx.com> wrote:

On Mon, 20 Dec 2021 03:02:22 +0800 > botp <botpena@gmail.com> wrote:

Thanks again for your input.
--
Duke
** Text only please. Bottom post is best. **

[snip]

oops. s/gem install gem install/gem install

> Thanks for the Heads Up!
> Haven't tried your method yet. Having Debian repo issues that I
> first need to fix.
>
it should work. i do debian and derivatives..

You bet! Picked up on that ..

i use a version mgr, currently using asdf-vm to install different
versions of ruby, erlang, elixir, node.

I need to do that as well I suppose. BTW, I'm also test-driving
elixir as well. :slight_smile:

[snip]

wow. you started early, i started 1985.

Lot's of mileage there too!

you are tough. proof that nothing can kill you, man.

This will! USMC/Agent Orange/Viet Nam-2 tours. But I've been
blessed and will be enjoying yet another Christmas.

路路路

On Mon, 20 Dec 2021 03:31:13 +0800 botp <botpena@gmail.com> wrote:

On Mon, Dec 20, 2021 at 3:16 AM Duke Normandin > <dukeofpurl@gmx.com> wrote:

--
Duke
** Text only please. Bottom post is best. **

Amen - Merry Christmas!

路路路

On Sun, Dec 19, 2021 at 2:41 PM Duke Normandin <dukeofpurl@gmx.com> wrote:

On Mon, 20 Dec 2021 03:31:13 +0800 > botp <botpena@gmail.com> wrote:

> On Mon, Dec 20, 2021 at 3:16 AM Duke Normandin > > <dukeofpurl@gmx.com> wrote:
>
[snip]

> oops. s/gem install gem install/gem install
>
>
> > Thanks for the Heads Up!
> > Haven't tried your method yet. Having Debian repo issues that I
> > first need to fix.
> >
> it should work. i do debian and derivatives..

You bet! Picked up on that ..

> i use a version mgr, currently using asdf-vm to install different
> versions of ruby, erlang, elixir, node.

I need to do that as well I suppose. BTW, I'm also test-driving
elixir as well. :slight_smile:

[snip]

> wow. you started early, i started 1985.

Lot's of mileage there too!

> you are tough. proof that nothing can kill you, man.

This will! USMC/Agent Orange/Viet Nam-2 tours. But I've been
blessed and will be enjoying yet another Christmas.

--
Duke
** Text only please. Bottom post is best. **

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Right on! :+1:

路路路

On Mon, 20 Dec 2021 22:27:47 -0500 mike lancaster <mikeafter5@gmail.com> wrote:

Amen - Merry Christmas!

--
Duke

Merry Xmas every rubyer.

路路路

On 2021/12/21 12:14, Duke Normandin wrote:

Amen - Merry Christmas!

Actually, if you're suffering from cancer, that's when you're supposed to
follow the tried and tested methods the most instead of stubbornly fighting
against them or ignoring them (someone with cancer has no business doing
that). Cancer is no excuse yet more the reason to follow the official-based
recommendations to succeed quickest. Succeeding might cure you in fact. I
would try them if I were in your position. That's how I keep myself healthy
and cancer free.

Either way, I pray to the Lord that you are cured from cancer and that you
succeed in utilizing Tk in Ruby.

By the way, I've been hacking code since the 80's too. You're not the only
oldie around here!

Merry Christmas,

路路路

On Mon, Dec 20, 2021 at 11:14 PM Duke Normandin <dukeofpurl@gmx.com> wrote:

On Mon, 20 Dec 2021 22:27:47 -0500 > mike lancaster <mikeafter5@gmail.com> wrote:

> Amen - Merry Christmas!

Right on! :+1:
--
Duke

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--
Andy Maleh

LinkedIn: Andy Maleh - Lexop | LinkedIn
<https://www.linkedin.com/in/andymaleh&gt;
Blog: http://andymaleh.blogspot.com
GitHub: AndyObtiva (Andy Maleh) 路 GitHub

LOL that's the weirdest seque I've seen on a mailing list in a long time.

Is there a "Technical Guidelines for Cancer Patients" doc somewhere? :grinning:

路路路

On Tue, Dec 21, 2021 at 6:30 AM Andy Maleh <andy.am@gmail.com> wrote:

Actually, if you're suffering from cancer, that's when you're supposed to follow the tried and tested methods the most instead of stubbornly fighting against them or ignoring them (someone with cancer has no business doing that).

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan

Hi

Can I build a GUI using Glimmer without Tcl/Tk ?

Sure, you can.

Glimmer DSL for LibUI requires no prerequisites, so it involves no fussing
around with pre-installing prerequisite libraries and packages beforehand.
Just install the glimmer-dsl-libui Ruby gem and you can run cross-platform
native GUI (and non-native too) that just works.

Of course, the trade-off is that the C libui library wrapped by it is
probably the youngest of all the GUI toolkits out there:

So, it might be missing some needed features, but there are almost
workarounds to all its weaknesses. You're welcome to hit me up if you
encounter questions about it. Even if some things seem missing, I might
know a way or two to get around them anyways.

Here are examples of a fully-native sample application built with it (has a
native look and feel on each platform):

Also, just recently, unidirectional and bidirectional data-binding
capabilities have been added to it, so you can bind data with a simple use
of a <=> arrow for bidirectional data-binding or <= arrow for
unidirectional data-binding now.

Cheers,

路路路

On Wed, Dec 22, 2021 at 5:07 AM Die Optimisten <inform@die-optimisten.net> wrote:

Hi

Can I build a GUI using Glimmer without Tcl/Tk ?

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--
Andy Maleh

LinkedIn: Andy Maleh - Lexop | LinkedIn
<https://www.linkedin.com/in/andymaleh&gt;
Blog: http://andymaleh.blogspot.com
GitHub: http://www.github.com/AndyObtiva