How install Perl Tkx

Questions about applications and software
Forum rules
Before you post please read how to get help

How install Perl Tkx

Postby mitakataka on Thu Jan 12, 2012 9:11 am

Hi I want to make gui perl script, but there is no Perl::Tkx module installed on my perl :(. What can I do. And why it is not there by default :(
mitakataka
Level 1
Level 1
 
Posts: 7
Joined: Mon Nov 21, 2011 10:27 am

Linux Mint is funded by ads and donations.
 

Re: How install Perl Tkx

Postby xenopeek on Thu Jan 12, 2012 4:04 pm

It is on CPAN, you need to install it through CPAN. http://search.cpan.org/~gaas/Tkx-1.07/Tkx.pm

If you are unfamiliar with CPAN, there is a guide here how to install software through CPAN on Ubuntu (which should work on Linux Mint): http://sudobash.net/bash-how-to-install ... -ubuntu-2/

If you are unsure of any steps, as always I recommend trying it out in VirtualBox or from the Live CD as experiment.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 15445
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: How install Perl Tkx

Postby mitakataka on Fri Jan 13, 2012 10:34 am

I Tried the guide. I executed the commands from the guide and after that I wrote 'install Tkx'. The result was:
Code: Select all
install Tkx
Reading '/root/.cpan/Metadata'
  Database was generated on Fri, 13 Jan 2012 12:11:37 GMT
Running install for module 'Tkx'
Running make for G/GA/GAAS/Tkx-1.09.tar.gz
Checksum for /root/.cpan/sources/authors/id/G/GA/GAAS/Tkx-1.09.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE

  CPAN.pm: Building G/GA/GAAS/Tkx-1.09.tar.gz

Checking if your kit is complete...
Looks good
Warning: prerequisite Tcl 1 not found.
Writing Makefile for Tkx
Writing MYMETA.yml and MYMETA.json
---- Unsatisfied dependencies detected during ----
----           GAAS/Tkx-1.09.tar.gz           ----
    Tcl [requires]
Running make test
  Delayed until after prerequisites
Running make install
  Delayed until after prerequisites
Running install for module 'Tcl'
Running make for V/VK/VKON/Tcl-1.02.tar.gz
Checksum for /root/.cpan/sources/authors/id/V/VK/VKON/Tcl-1.02.tar.gz ok

  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-pXpoEt/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: In function ‘XS_Tcl_CreateCommand’:
Tcl.xs:1497:41: warning: cast to pointer from integer of different size [-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-pXpoEt/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 ........... NpLoadLibrary: could not find Tcl dll
Failed to load Tcl dll! at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Unable to initialize Tcl at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Compilation failed in require at t/call.t line 6.
BEGIN failed--compilation aborted at t/call.t line 6.
t/call.t ........... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/constants.t ...... NpLoadLibrary: could not find Tcl dll
Failed to load Tcl dll! at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Unable to initialize Tcl at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Compilation failed in require at t/constants.t line 8.
BEGIN failed--compilation aborted at t/constants.t line 8.
t/constants.t ...... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/createcmd.t ...... NpLoadLibrary: could not find Tcl dll
Failed to load Tcl dll! at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Unable to initialize Tcl at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Compilation failed in require at t/createcmd.t line 1.
BEGIN failed--compilation aborted at t/createcmd.t line 1.
t/createcmd.t ...... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/eval.t ........... NpLoadLibrary: could not find Tcl dll
Failed to load Tcl dll! at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Unable to initialize Tcl at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Compilation failed in require at t/eval.t line 1.
BEGIN failed--compilation aborted at t/eval.t line 1.
t/eval.t ........... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/export_to_tcl.t .. NpLoadLibrary: could not find Tcl dll
Failed to load Tcl dll! at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Unable to initialize Tcl at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Compilation failed in require at t/export_to_tcl.t line 5.
BEGIN failed--compilation aborted at t/export_to_tcl.t line 5.
t/export_to_tcl.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 4/4 subtests
t/info.t ........... NpLoadLibrary: could not find Tcl dll
Failed to load Tcl dll! at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Unable to initialize Tcl at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Compilation failed in require at t/info.t line 8.
BEGIN failed--compilation aborted at t/info.t line 8.
t/info.t ........... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/result.t ......... NpLoadLibrary: could not find Tcl dll
Failed to load Tcl dll! at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Unable to initialize Tcl at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Compilation failed in require at t/result.t line 1.
BEGIN failed--compilation aborted at t/result.t line 1.
t/result.t ......... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/subclass.t ....... NpLoadLibrary: could not find Tcl dll
Failed to load Tcl dll! at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Unable to initialize Tcl at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Compilation failed in require at t/subclass.t line 10.
t/subclass.t ....... Dubious, test returned 2 (wstat 512, 0x200)
Failed 4/4 subtests
t/trace.t .......... NpLoadLibrary: could not find Tcl dll
Failed to load Tcl dll! at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Unable to initialize Tcl at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Compilation failed in require at t/trace.t line 1.
BEGIN failed--compilation aborted at t/trace.t line 1.
t/trace.t .......... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/unicode.t ........ NpLoadLibrary: could not find Tcl dll
Failed to load Tcl dll! at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Unable to initialize Tcl at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Compilation failed in require at t/unicode.t line 14.
BEGIN failed--compilation aborted at t/unicode.t line 14.
t/unicode.t ........ Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/var.t ............ NpLoadLibrary: could not find Tcl dll
Failed to load Tcl dll! at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Unable to initialize Tcl at /usr/lib/perl/5.12/DynaLoader.pm line 215.
Compilation failed in require at t/var.t line 1.
BEGIN failed--compilation aborted at t/var.t line 1.
t/var.t ............ Dubious, test returned 2 (wstat 512, 0x200)
No subtests run

Test Summary Report
-------------------
t/call.t         (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/constants.t    (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/createcmd.t    (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/eval.t         (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/export_to_tcl.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 4 tests but ran 0.
t/info.t         (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/result.t       (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/subclass.t     (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 4 tests but ran 0.
t/trace.t        (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/unicode.t      (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/var.t          (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=11, Tests=0,  1 wallclock secs ( 0.07 usr  0.02 sys +  0.18 cusr  0.05 csys =  0.32 CPU)
Result: FAIL
Failed 11/11 test programs. 0/0 subtests failed.
make: *** [test_dynamic] Error 2
  VKON/Tcl-1.02.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports VKON/Tcl-1.02.tar.gz
Running make install
  make test had returned bad status, won't install without force
Running make for G/GA/GAAS/Tkx-1.09.tar.gz
  Has already been unwrapped into directory /root/.cpan/build/Tkx-1.09-6FYNIj

  CPAN.pm: Building G/GA/GAAS/Tkx-1.09.tar.gz

Warning: Prerequisite 'Tcl => 1' for 'GAAS/Tkx-1.09.tar.gz' failed when processing 'VKON/Tcl-1.02.tar.gz' with 'make_test => NO'. Continuing, but chances to succeed are limited.
cp lib/Tkx/Tutorial.pod blib/lib/Tkx/Tutorial.pod
cp lib/Tkx/MegaConfig.pm blib/lib/Tkx/MegaConfig.pm
cp lib/Tkx.pm blib/lib/Tkx.pm
cp lib/Tkx/LabEntry.pm blib/lib/Tkx/LabEntry.pm
cp tkx-ed blib/script/tkx-ed
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/tkx-ed
cp tkx-prove blib/script/tkx-prove
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/tkx-prove
Manifying blib/man1/tkx-ed.1p
Manifying blib/man3/Tkx::MegaConfig.3pm
Manifying blib/man3/Tkx::Tutorial.3pm
Manifying blib/man3/Tkx::LabEntry.3pm
Manifying blib/man3/Tkx.3pm
  GAAS/Tkx-1.09.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/LabEntry.t ...... Can't locate Tcl.pm in @INC (@INC contains: /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib /root/.cpan/build/Tkx-1.09-6FYNIj/blib/arch /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl .) at /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib/Tkx.pm line 215.
BEGIN failed--compilation aborted at /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib/Tkx.pm line 215.
Compilation failed in require at t/LabEntry.t line 8.
BEGIN failed--compilation aborted at t/LabEntry.t line 8.
t/LabEntry.t ...... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/mega-config.t ... Can't locate Tcl.pm in @INC (@INC contains: /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib /root/.cpan/build/Tkx-1.09-6FYNIj/blib/arch /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl .) at /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib/Tkx.pm line 215.
BEGIN failed--compilation aborted at /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib/Tkx.pm line 215.
Compilation failed in require at t/mega-config.t line 8.
BEGIN failed--compilation aborted at t/mega-config.t line 8.
t/mega-config.t ... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/mega.t .......... Can't locate Tcl.pm in @INC (@INC contains: /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib /root/.cpan/build/Tkx-1.09-6FYNIj/blib/arch /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl .) at /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib/Tkx.pm line 215.
BEGIN failed--compilation aborted at /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib/Tkx.pm line 215.
Compilation failed in require at t/mega.t line 8.
BEGIN failed--compilation aborted at t/mega.t line 8.
t/mega.t .......... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/nul-char.t ...... Can't locate Tcl.pm in @INC (@INC contains: /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib /root/.cpan/build/Tkx-1.09-6FYNIj/blib/arch /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl .) at /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib/Tkx.pm line 215.
BEGIN failed--compilation aborted at /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib/Tkx.pm line 215.
Compilation failed in require at t/nul-char.t line 15.
BEGIN failed--compilation aborted at t/nul-char.t line 15.
t/nul-char.t ...... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/tcl-callback.t .. Can't locate Tcl.pm in @INC (@INC contains: /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib /root/.cpan/build/Tkx-1.09-6FYNIj/blib/arch /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl .) at /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib/Tkx.pm line 215.
BEGIN failed--compilation aborted at /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib/Tkx.pm line 215.
Compilation failed in require at t/tcl-callback.t line 8.
BEGIN failed--compilation aborted at t/tcl-callback.t line 8.
t/tcl-callback.t .. Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/tcl.t ........... Can't locate Tcl.pm in @INC (@INC contains: /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib /root/.cpan/build/Tkx-1.09-6FYNIj/blib/arch /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl .) at /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib/Tkx.pm line 215.
BEGIN failed--compilation aborted at /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib/Tkx.pm line 215.
Compilation failed in require at t/tcl.t line 8.
BEGIN failed--compilation aborted at t/tcl.t line 8.
t/tcl.t ........... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/tk.t ............ Can't locate Tcl.pm in @INC (@INC contains: /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib /root/.cpan/build/Tkx-1.09-6FYNIj/blib/arch /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl .) at /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib/Tkx.pm line 215.
BEGIN failed--compilation aborted at /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib/Tkx.pm line 215.
Compilation failed in require at t/tk.t line 8.
BEGIN failed--compilation aborted at t/tk.t line 8.
t/tk.t ............ Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/utf8.t .......... Can't locate Tcl.pm in @INC (@INC contains: /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib /root/.cpan/build/Tkx-1.09-6FYNIj/blib/arch /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl .) at /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib/Tkx.pm line 215.
BEGIN failed--compilation aborted at /root/.cpan/build/Tkx-1.09-6FYNIj/blib/lib/Tkx.pm line 215.
Compilation failed in require at t/utf8.t line 15.
BEGIN failed--compilation aborted at t/utf8.t line 15.
t/utf8.t .......... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run

Test Summary Report
-------------------
t/LabEntry.t    (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/mega-config.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/mega.t        (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/nul-char.t    (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/tcl-callback.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/tcl.t         (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/tk.t          (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/utf8.t        (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=8, Tests=0,  0 wallclock secs ( 0.05 usr  0.02 sys +  0.09 cusr  0.03 csys =  0.19 CPU)
Result: FAIL
Failed 8/8 test programs. 0/0 subtests failed.
make: *** [test_dynamic] Error 2
  GAAS/Tkx-1.09.tar.gz
one dependency not OK (Tcl); additionally test harness failed
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports GAAS/Tkx-1.09.tar.gz
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 VKON/Tcl-1.02.tar.gz                         : make_test NO
 GAAS/Tkx-1.09.tar.gz                         : make_test NO one dependency not OK (Tcl); additionally test harness failed


What's wrong? Why I can't add Tkx???
mitakataka
Level 1
Level 1
 
Posts: 7
Joined: Mon Nov 21, 2011 10:27 am

Re: How install Perl Tkx

Postby xenopeek on Fri Jan 13, 2012 11:21 am

I think you need to install the package tclx first. Look in Synaptic for it.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 15445
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: How install Perl Tkx

Postby mitakataka on Sun Jan 15, 2012 5:54 am

No luck at all :(. I had tclx installed, but no luck ;(. For me it's not normal to put so much energy just to install some module and not to have success :(
mitakataka
Level 1
Level 1
 
Posts: 7
Joined: Mon Nov 21, 2011 10:27 am


Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 5 guests