Where is tcl / tk ?
I tried to install tkpppoe which required tcl / tk.
I installed tcl but could not find tk . How to get it ? |
The tk package is in the slackware/tcl directory of your installation media and on the Slackware mirrors.
I should be installed if you made a full install, which is recommended, if you use Slackware. But I can't be sure I gave you a relevant information as you do not indicate for which distribution and version you miss it :scratch: |
I have installed the full dvd version of slackware 12.2 yet tcl / tk is not there. Downloaded the tar.gz packages and installed it. I had to login as root and invoke tkpppoe yet I could not connect to internet.
Invoking tkppoe from CLI gives this o/p. root@darkstar:/home/sridhar# tkpppoe No protocol specified Application initialization failed: couldn't connect to display ":0.0" Error in startup script: invalid command name "tk" while executing "tk appname TkPPPoE" (file "/usr/bin/tkpppoe" line 40 |
Quote:
The command for tcl interpreter is "tclsh" and for Tk applications it is "wish". Do you have these in your path? |
Quote:
I suggest you try this, as root (I suppose you mounted your DVD as /media/dvd; change that to fit your DVD's mount point): Code:
upgradepkg --install-new --reinstall /media/dvd/slackware/tcl/*tgz FYI (I keep a local mirror of the distribution up to date with rsync): Code:
bash-3.1$ cd /home/ne_pas_sauvegarder/slackware-12.2/slackware/tcl/ |
When I login as root I could invoke tkpppoe and connec to internet. But I could not do so as ordinary user. I have marked "Allow non=root users" option in tkpppoe.
As ordinary user I get the tkpppoe running but it doesn't connect to net. Checked file permissions for pppoe-start / stop and resolv.conf and they are ok. root@darkstar:/home/sridhar# ls -l /etc/ppp/resolv.conf -rwxr-xr-x 1 root root 54 2009-02-18 08:15 /etc/ppp/resolv.conf root@darkstar:/home/sridhar# ls -l /usr/sbin/pppoe-start -rwxr-xr-x 1 root root 5599 2009-02-17 22:11 /usr/sbin/pppoe-start root@darkstar:/home/sridhar# ls -l /usr/sbin/pppoe-stop -rwxr-xr-x 1 root root 2323 2009-02-17 22:11 /usr/sbin/pppoe-stop root@darkstar:/home/sridhar# ls -l /usr/bin/tkpppoe -rwxr-xr-x 1 root root 108493 2009-02-17 21:48 /usr/bin/tkpppoe |
Then you obviously have Tcl/Tk. In the first example that you gave, you're trying to run tkpppoe as root. Please give the terminal output you get as an ordinary user.
|
A workaround: Try "ssh -Y root@127.0.0.1" and run your script.
|
Whe I ran tkpppoe as normal user I get the dialog box of tkppoe but when I press the start button nothing happens and I could not connect to net.
This problem is with slackware only. I can run this s/w successfully in other distros (Arch , PCLOS, Zenwalk etc. ) |
Are there any log files? I think we need more debugging info. But it's likely to be some sort of permissions problem.
|
I agree. I tried changing to a+x for /etc/ppp , pap-secrets, resolv.conf etc but still the problem persists.
I don't have the log file . |
chmod a+x only make theses files executable by all. That is not the point.
Check who is authorized to read/write on theses files instead. |
All times are GMT -5. The time now is 02:08 PM. |