Code: Select all
###
sudo apt-get update && sudo apt-get install gcc-4.7 tcl8.5-dev
sudo curl -L http://cpanmin.us | perl - --sudo App::cpanminus
wget http://www.cpan.org/authors/id/V/VK/VKON/Tcl-1.02.tar.gz
tar xvf Tcl-1.02.tar.gz
cd Tcl-1.02/
perl Makefile.PL
sed -i 's|#include <tcl.h>|#include "tcl-core/include/tcl.h"|' Tcl.xs
make
sudo make install
sudo cpanm Tkx # <-- Installs successfully with windows in #
# the self-test. #
cd ..
rm -rf Tcl-1.02
perl -MTkx -e 'print Tkx::info("patchlevel");' # <-- Fails with #
# segmentation fault. #
###
Example Perl-program from http://www.tkdocs.com/tutorial/install.html:
Code: Select all
use Tkx;
Tkx::grid( Tkx::ttk__button(".b", -text => "Hello, world" ) );
Tkx::MainLoop();Code: Select all
perl hello.pl # Causes segmentation fault.Code: Select all
python3 hello.py
wish hello.tclCode: Select all
ruby hello.rb