How can I install perlTk on dsl


Forum: myDSL Extensions (deprecated)
Topic: How can I install perlTk on dsl
started by: johnkn63

Posted by johnkn63 on Sep. 10 2004,23:28
Dear experiienced dsl users,

I like the small size of dsl, I want to run some perl scripts on dsl that use the Tk module. Is there a perl-Tk extension?
If not can I use a debian package, i.e.  a .deb, and if so how do I install the package.
Or being a perl module can I install from source?[The X libraries required makes me think this would not be a good idea]

Thank-you for your help

Posted by ke4nt1 on Sep. 11 2004,01:14
In the repository is an extension called tcltk8.3.dsl

73
ke4nt

Posted by johnkn63 on Sep. 12 2004,07:21
perl Tk or more exactly Tk.pm uses tcltk however they are not one and the same thing. perl-Tk exists as a debian (.deb) package can I use that? If so how?
Posted by cbagger01 on Sep. 12 2004,16:25
Yes, you can use it if it is a Debian package.

First, install the dsl-dpkg extension, or choose "Enable Apt", or choose "Get Synaptic" from the menu.

You will also probably need the gnu-utils.dsl extension. You don't need the gnu-utils extension if you performed an enhanced hd install.

Then make sure that your /etc/apt/sources.list file is pointing towards the appropriate Debian repository (stable,testing,unstable, or some unofficial source)

Then open up an xterminal and type:

sudo su
apt-get update
apt-get install name-of-package
exit


Otherwise, if you can download the deb file itself, you can install it with:

sudo su
dpkg -i filename.deb
exit


Good Luck.

Posted by johnkn63 on Sep. 19 2004,09:01
I tried the
sudo su
dpkg -i perl-tk.deb

but this doesn't work, one gets lost in a unending circle of   perl5.6/8 depends on perl-modules, and perl-modules depends on perl5.6/8.
The general approach works, I installed netpbm after installing libnetpbm using dpkg -i, the problems centre around the particilar package perl-tk, looks like perl-tk would be a good candidate for making into perl-tk.dsl. Any ideas/advice.
With thanks John

Posted by cbagger01 on Sep. 19 2004,17:10
Two ideas:

1) Make sure that your sources.list is pointed to unstable

2) Do a

apt-get remove  packagename

followed by an

apt-get install packagename


Sometimes you need to get rid of the reference back to the old package before you can properly install the new one.

Good Luck.

Posted by johnkn63 on Mar. 26 2005,00:52
Still haven't been able to get perl-tk to insatll directly

However the following will work
   Use PAR [download from www.cpan.org] and make a binary package on any ix86 linux from the script [ a mere 15M] the resulting binary should run on dsl.
   In the case of of my script it was also necessary to load unifont to prevent crashing as soon as came across foreign characters -- eg Chinese.

It should be possible to make something close to a perltk.dsl this way, though one would need to do something like

   perltk  your_script.pl

to run it -- anyone interested in using / helping / developing such an extension?

Aside -- this works with dsl-embedded and so can be a good way to demostrate things those who only have windows.

Posted by bela on April 11 2005,13:50
Oh, yes but there is no dpkg  to install anything ?
I install 0.93 version on hard disk,. there is only dpkg-restore which try to search what ??? from internet
how to install .dsl format ??
for example I downloaded parted.dsl and want to install it , how to do it ???

thank for help

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.