1 download latest tcl/tc fr activestate ( https://www.activestate.com/activetcl/downloads). by default it downloads
to /opt/
2 set lib location (wc is under /opt/ if you opted for the default) using
ldconfig
imagine you wrote a Ruby programin with GUI (in Tk), now you only need to share
it with non-developers, non-tech-savy, normal computer users.
Which is the percentage of people do you estimate are able to install Tk,
configure Ruby for it and run your script ?
IMO less than 10%.
bye
Nicola
···
On 08/06/18 18:06, botp wrote:
installing and using tk in ruby, fwiw:
1 download latest tcl/tc fr activestate (https://www.activestate.com/activetcl/downloads\). by default it downloads to /opt/
2 set lib location (wc is under /opt/ if you opted for the default) using ldconfig
imagine you wrote a Ruby programin with GUI (in Tk), now you only need to
share
it with non-developers, non-tech-savy, normal computer users.
when we share it we make sure that they have tk/tcl installed in their
client pc.
the rest may be handled by a simple script. or maybe, the script will
install tk itself if it senses absence; but then we may need admin
permission.
such pain indeed for fat clients.
Which is the percentage of people do you estimate are able to install Tk,
configure Ruby for it and run your script ?
dev: 100%
users: 0%
:))
IMO less than 10%.
ssshhh. all programmers are optimists
bye
Nicola
many thanks and many regards,
--botp
···
On Tue, Aug 7, 2018 at 1:11 AM, Nicola Mingotti <nmingotti@gmail.com> wrote:
From: botp <botpena@gmail.com>
Subject: Re: gui, tk, etc (was: [ANN] 2018 Call for Grant Proposals)
Date: Tue, 7 Aug 2018 12:30:23 +0800
Message-ID: <CAAwHHQiTSLB1+834om6ZuBuHnJyCbeyO+D4SKmkw2JrhR1AGzg@mail.gmail.com>
when we share it we make sure that they have tk/tcl installed in their
client pc.
the rest may be handled by a simple script. or maybe, the script will
install tk itself if it senses absence; but then we may need admin
permission.
such pain indeed for fat clients.
Is it the problem that is resolved if Ruby's tcltklib.so includes
all Tcl/Tk environment (works without other Tcl/Tk install)?
My experimental work, Ruby/Tk-Kit, may be able to create such a library.
It is a very old project, and now, freezed because it had few requiests.
At 2010, it worked on Linux and Windows. The sample binary exists at
< RubyTk - Ruby/Tk-Kit >.
You can embed an init script to the generated library.
So, at loading the binary, you can start your Ruby/Tk application
by the init script.