Announcement

Collapse
No announcement yet.

Problems installing/using tcl::Tk on kubuntu.

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problems installing/using tcl::Tk on kubuntu.

    I installed Tcl::TK and Tcl using -Mcpan -e shell;

    Here is the result:

    root@kiosk-System-Product-Name:~# perl -MCPAN -e shell;
    Terminal does not support AddHistory.

    cpan shell -- CPAN exploration and modules installation (v1.9800)
    Enter 'h' for help.

    cpan[1]> install Tcl
    Fetching with LWP:
    ftp://cpan.mirror.iphh.net/pub/CPAN/...1mailrc.txt.gz
    Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'
    .................................................. ..........................DONE
    Fetching with LWP:
    ftp://cpan.mirror.iphh.net/pub/CPAN/...details.txt.gz
    Reading '/root/.cpan/sources/modules/02packages.details.txt.gz'
    Database was generated on Sat, 24 Dec 2011 18:10:29 GMT
    .................................................. ..........................DONE
    Fetching with LWP:
    ftp://cpan.mirror.iphh.net/pub/CPAN/...odlist.data.gz
    Reading '/root/.cpan/sources/modules/03modlist.data.gz'
    .................................................. ..........................DONE
    Writing /root/.cpan/Metadata
    Running install for module 'Tcl'
    Running make for V/VK/VKON/Tcl-1.02.tar.gz
    Fetching with LWP:
    ftp://cpan.mirror.iphh.net/pub/CPAN/...cl-1.02.tar.gz
    Fetching with LWP:
    ftp://cpan.mirror.iphh.net/pub/CPAN/...VKON/CHECKSUMS
    Checksum for /root/.cpan/sources/authors/id/V/VK/VKON/Tcl-1.02.tar.gz ok
    Scanning cache /root/.cpan/build for sizes
    DONE

    CPAN.pm: Building V/VK/VKON/Tcl-1.02.tar.gz

    LIBS = -Ltcl-core/linux-i686 -ltclstub8.4
    INC = -Itcl-core/include
    DEFINE = -DUSE_TCL_STUBS
    Checking if your kit is complete...
    Looks good
    Warning: -Ltcl-core/linux-i686 changed to -L/root/.cpan/build/Tcl-1.02-qLRxH5/tcl-core/linux-i686
    Writing Makefile for Tcl
    Writing MYMETA.yml and MYMETA.json
    cp Tcl.pm blib/lib/Tcl.pm
    /usr/bin/perl /usr/share/perl/5.12/ExtUtils/xsubpp -typemap /usr/share/perl/5.12/ExtUtils/typemap -typemap typemap Tcl.xs > Tcl.xsc && mv Tcl.xsc Tcl.c
    Please specify prototyping behavior for Tcl.xs (see perlxs manual)
    cc -c -Itcl-core/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.02\" -DXS_VERSION=\"1.02\" -fPIC "-I/usr/lib/perl/5.12/CORE" -DUSE_TCL_STUBS Tcl.c
    Tcl.xs: I funktion "NpLoadLibrary":
    Tcl.xs:216:3: varning: formatet är inte en strängliteral och inga formatargument [-Wformat-security]
    Tcl.xs: I funktion "NpInitialize":
    Tcl.xs:402:3: varning: formatet är inte en strängliteral och inga formatargument [-Wformat-security]
    Tcl.xs: I funktion "Tcl_EvalInPerl":
    Tcl.xs:788:7: varning: format "%d" förväntar sig argument av typen "int", men argument 2 har typen "I32" [-Wformat]
    Tcl.xs: I funktion "Tcl_PerlCallWrapper":
    Tcl.xs:868:7: varning: format "%d" förväntar sig argument av typen "int", men argument 2 har typen "I32" [-Wformat]
    Tcl.xs: I funktion "XS_Tcl_Eval":
    Tcl.xs:1032:6: varning: formatet är inte en strängliteral och inga formatargument [-Wformat-security]
    Tcl.xs: I funktion "XS_Tcl_EvalFile":
    Tcl.xs:1095:6: varning: formatet är inte en strängliteral och inga formatargument [-Wformat-security]
    Tcl.xs: I funktion "XS_Tcl_EvalFileHandle":
    Tcl.xs:1120:7: varning: formatet är inte en strängliteral och inga formatargument [-Wformat-security]
    Tcl.xs: I funktion "XS_Tcl_invoke":
    Tcl.xs:1254:3: varning: formatet är inte en strängliteral och inga formatargument [-Wformat-security]
    Tcl.xs: I funktion "XS_Tcl_icall":
    Tcl.xs:1321:3: varning: formatet är inte en strängliteral och inga formatargument [-Wformat-security]
    Tcl.xs: I funktion "XS_Tcl_Init":
    Tcl.xs:1396:6: varning: formatet är inte en strängliteral och inga formatargument [-Wformat-security]
    Tcl.xs: I funktion "XS_Tcl_CreateCommand":
    Tcl.xs:1497:41: varning: typkonvertering till pekare från heltal med annan storlek [-Wint-to-pointer-cast]
    Running Mkbootstrap for Tcl ()
    chmod 644 Tcl.bs
    rm -f blib/arch/auto/Tcl/Tcl.so
    cc -shared -O2 -g -L/usr/local/lib -fstack-protector Tcl.o -o blib/arch/auto/Tcl/Tcl.so \
    -L/root/.cpan/build/Tcl-1.02-qLRxH5/tcl-core/linux-i686 -ltclstub8.4 \

    chmod 755 blib/arch/auto/Tcl/Tcl.so
    cp Tcl.bs blib/arch/auto/Tcl/Tcl.bs
    chmod 644 blib/arch/auto/Tcl/Tcl.bs
    Manifying blib/man3/Tcl.3pm
    VKON/Tcl-1.02.tar.gz
    /usr/bin/make -- OK
    'YAML' not installed, will not store persistent state
    Running make test
    PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
    t/call.t ........... ok
    t/constants.t ...... ok
    t/createcmd.t ...... ok
    t/eval.t ........... ok
    t/export_to_tcl.t .. ok
    t/info.t ........... ok
    t/result.t ......... ok
    t/subclass.t ....... ok
    t/trace.t .......... ok
    t/unicode.t ........ ok
    t/var.t ............ ok
    All tests successful.
    Files=11, Tests=62, 0 wallclock secs ( 0.05 usr 0.02 sys + 0.15 cusr 0.05 csys = 0.27 CPU)
    Result: PASS
    VKON/Tcl-1.02.tar.gz
    /usr/bin/make test -- OK
    Running make install
    Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
    Installing /usr/local/lib/perl/5.12.4/auto/Tcl/Tcl.so
    Installing /usr/local/lib/perl/5.12.4/auto/Tcl/Tcl.bs
    Installing /usr/local/lib/perl/5.12.4/Tcl.pm
    Appending installation info to /usr/lib/perl/5.12/perllocal.pod
    VKON/Tcl-1.02.tar.gz
    /usr/bin/make install -- OK

    cpan[2]> install Tcl::Tk
    Running install for module 'Tcl::Tk'
    Running make for V/VK/VKON/Tcl-Tk-1.04.tar.gz
    Fetching with LWP:
    ftp://cpan.mirror.iphh.net/pub/CPAN/...Tk-1.04.tar.gz
    Checksum for /root/.cpan/sources/authors/id/V/VK/VKON/Tcl-Tk-1.04.tar.gz ok

    CPAN.pm: Building V/VK/VKON/Tcl-Tk-1.04.tar.gz

    Checking if your kit is complete...
    Warning: the following files are missing in your kit:
    demos/tcltkdb.pm
    Please inform the author.
    Writing Makefile for Tcl::Tk
    Writing MYMETA.yml and MYMETA.json
    cp lib/Tcl/Tk.pm blib/lib/Tcl/Tk.pm
    cp lib/Tcl/Tk/Widget/Text.pm blib/lib/Tcl/Tk/Widget/Text.pm
    cp lib/Tcl/Tk/Widget/Balloon.pm blib/lib/Tcl/Tk/Widget/Balloon.pm
    Manifying blib/man3/Tcl::Tk.3pm
    VKON/Tcl-Tk-1.04.tar.gz
    /usr/bin/make -- OK
    Running make test
    PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
    t/after.t ....... ok
    t/canvas.t ...... ok
    t/geomgr.t ...... ok
    t/optmenu.t ..... ok
    t/photo.t ....... skipped: no Img extension available (can't find package Img at /root/.cpan/build/Tcl-Tk-1.04-NOzTWq/blib/lib/Tcl/Tk.pm line 733.
    t/ptk-compat.t .. ok
    t/text.t ........ ok
    t/tk-mw.t ....... ok
    t/unicode.t ..... ok
    t/zzPhoto.t ..... skipped: no Img extension available
    All tests successful.
    Files=10, Tests=59, 17 wallclock secs ( 0.04 usr 0.02 sys + 1.33 cusr 0.21 csys = 1.60 CPU)
    Result: PASS
    VKON/Tcl-Tk-1.04.tar.gz
    /usr/bin/make test -- OK
    Running make install
    Manifying blib/man3/Tcl::Tk.3pm
    Installing /usr/local/share/perl/5.12.4/Tcl/Tk.pm
    Installing /usr/local/share/perl/5.12.4/Tcl/Tk/Widget/Balloon.pm
    Installing /usr/local/share/perl/5.12.4/Tcl/Tk/Widget/Text.pm
    Appending installation info to /usr/lib/perl/5.12/perllocal.pod
    VKON/Tcl-Tk-1.04.tar.gz
    /usr/bin/make install -- OK

    cpan[3]> exit
    Terminal does not support GetHistory.
    Lockfile removed.
    root@kiosk-System-Product-Name:~# perl -MTcl::Tk
    Segmenteringsfel
    root@kiosk-System-Product-Name:~#


    It succeed all testing and it even generates testing dialogboxes with canvas and such. But when everything is installed, when I try to load the module, I get a segmentation fault.

    #2
    Re: Problems installing/using tcl::Tk on kubuntu.

    Try this:
    Code:
    sudo apt-get install tcl8.5 tk8.5 perl-tk
    ASROCK Z87 Pro4 - i5 4670K - R9 270x ☞ Triple Boot: KDE NEON ★ Windows 10 ★ Windows 7

    Comment

    Working...
    X