You are not logged in.
Dear All,
I'm trying to install TeX Live 2011 using netinstall with the script "install-tl".
After perl-tk installation on my system, I got the following message:
-------
No protocol specified
perl/Tk unusable, cannot create main windows.
Error message from creating MainWindow:
couldn't connect to display ":0" at /usr/lib/perl5/vendor_perl/Tk/MainWindow.pm line 53.
Tk::MainWindow->new() at ./install-tl line 340
Continuing in text mode...
-------
ArchLinux is great for the moment, but this problem is annoying me.
Thanks for you hints and help
Giulio
Offline
TeX Live is present in Arch repositories. Why don't you want to install the version available and working well with Arch?
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
Thanks for your answer.
Yes this is an option, but this has been my approach to install texlive on other linux distro.
Offline
If it is possible for you, and you want to set up TeX Live flawlessly, choose the most straightforward approach, i.e. TeX Live 2011 from the repo. (The problem seems to be a missing Tk/Perl library that will be installed anyhow.)
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
I ran the installer by cli. All goes perfectely.
I suspect that the problem could be related to sudo: when i run tlmgr-gui the tk window appears, without problems.
But I have not the necessary privileges to modify anything.
Offline
How do you run the script?
In this moment, in my new fresh install i'm running the script without problem:
./install-tl -gui perltkAnd you can run it like the root for a system install.
"Yo creo que los muertos son tiernos. ¿Nos besamos?"
Offline
I did it using cli as I told. Then, regarding my proble with tk I suspect it is related to the sudoers file. Maybe allowing sudo to launch xorg apps.: but I'm not an expert.
Regards
Giulio
Offline
I install texlive at /opt/texlive and change ownership to root:texusers and some convenient chmod. Then you can mess around with TeX without being root/using sudo.
Arch x64 on Thinkpad X200s/W530
Offline
It is recommended not to install and maintain a texlive install as root.
This is one excellent reason you might prefer to use the texlive install route than the repo. Maybe it is possible to do something such that the latter handles things as a non-privileged user but it is definitely straightforward using the former method.
[Doesn't seem this *is* why people are installing this way, mind. Just that it is one good reason to do so.]
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Are you using KDE?
I got the same problem, and using 'kdesu' instead of 'sudo' fixed it.
Offline