<---- template headericclude ----->
Tcl in Fedora 12 improperly configured...
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2005
    Posts
    477
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Tcl in Fedora 12 improperly configured...

    Ugggh,

    Tcl appears to be improperly config'ed in Fedora 12.

    The file tclConfig.sh defines:

    TCL_PACKAGE_PATH='/usr/lib/tcl8.5 /usr/share/tcl8.5'

    It should be:

    TCL_PACKAGE_PATH='/usr/lib/tcl8.5 /usr/share/tcl8.5 /usr/lib/tk8.5'

    The omission means that one cannot simply to a
    'package require Tk' in a tcl script because tcl cannot find
    the tk library.

    A workaround is to run tk apps via wish...bummer.

    Where would one go to file a request to fix the problem?

    Thanks,

    Jerry

  2. #2
    GallComp's Avatar
    GallComp is offline Nuke 'em Alfred! Administrator - Starring in Bill & Steve's Bogus Journey
    Join Date
    Mar 2004
    Location
    Somewhere, I think...
    Age
    47
    Posts
    2,657
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by GrayFox
    Ugggh,

    Tcl appears to be improperly config'ed in Fedora 12.

    The file tclConfig.sh defines:

    TCL_PACKAGE_PATH='/usr/lib/tcl8.5 /usr/share/tcl8.5'

    It should be:

    TCL_PACKAGE_PATH='/usr/lib/tcl8.5 /usr/share/tcl8.5 /usr/lib/tk8.5'

    The omission means that one cannot simply to a
    'package require Tk' in a tcl script because tcl cannot find
    the tk library.

    A workaround is to run tk apps via wish...bummer.

    Where would one go to file a request to fix the problem?

    Thanks,

    Jerry
    Did you tried Bugzilla: https://bugzilla.redhat.com/

    "Since when has the world of computer software design been about what people want? This is a simple question of evolution. The day is quickly coming when every knee will bow down to a silicon fist, and you will all beg your binary gods for mercy. "


    BILL GATES...

  3. #3
    Join Date
    Nov 2006
    Location
    Detroit
    Posts
    8,432
    Mentioned
    50 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by GrayFox
    one cannot simply to a
    'package require Tk' in a tcl script because tcl cannot find
    the tk library.

    A workaround is to run tk apps via wish...bummer.
    What's wrong with having your Tk script use wish instead of tclsh? That's the usual way of using Tk. In fact, I don't think I've ever seen a Tk app use tclsh as the interpreter and then do a 'package require Tk'.

  4. #4
    Join Date
    Sep 2005
    Posts
    477
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by RupertPupkin
    What's wrong with having your Tk script use wish instead of tclsh? That's the usual way of using Tk. In fact, I don't think I've ever seen a Tk app use tclsh as the interpreter and then do a 'package require Tk'.
    Nothing is wrong with using wish, but it is not needed since 'package require Tk' gives
    the same effect from tclsh... Note that in previous versions of Fedora it was possible to
    use the 'package require Tk' thingy...

    Anyway I have filed a 'bug' report with the Fedora section of the Redhat Bugzilla.

    An easy fix to the problem is to create a directory 'Tk' in /usr/lib/tcl8.5 and place
    a file named pkgIndex.tcl therein. The contents of pkgIndex.tcl is a command
    to load the Tk library:

    if {[catch {package present Tcl 8.5.0-8.6}]} { return }
    package ifneeded Tk 8.5.7 [list load [file join $dir ../.. libtk8.5.so] Tk]

    Jerry

  5. #5
    Join Date
    Dec 2008
    Location
    Vancouver, BC
    Posts
    4,333
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    you might want to note in your bug report, this is the relevant change:

    http://cvs.fedoraproject.org/viewvc/...?r1=1.1&r2=1.2

    note sure if it was intentional.
    Adam Williamson | awilliam AT redhat DOT com
    Fedora QA
    IRC: adamw | Fedora Chat: @adamwill:fedora.im
    http://www.happyassassin.net

  6. #6
    Join Date
    Dec 2008
    Location
    Vancouver, BC
    Posts
    4,333
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    note that in discussing paths, the Tcl packaging policy - https://fedoraproject.org/wiki/Packaging:Tcl - does not make any mention of /usr/lib/tk8.5 as being valid for extensions.
    Adam Williamson | awilliam AT redhat DOT com
    Fedora QA
    IRC: adamw | Fedora Chat: @adamwill:fedora.im
    http://www.happyassassin.net

Similar Threads

  1. Improperly formatted CHECKSUM for Fedora 12
    By BillGradwohl in forum Installation, Upgrades and Live Media
    Replies: 30
    Last Post: 11th January 2010, 07:47 PM
  2. Apache improperly redirecting to localhost
    By dmbyer in forum Servers & Networking
    Replies: 5
    Last Post: 23rd September 2008, 07:21 AM
  3. ConsoleKit Improperly Configured
    By jcwinnie in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 20th March 2007, 07:38 PM
  4. ipw2200 improperly recognized
    By Bachmann in forum Hardware
    Replies: 0
    Last Post: 29th January 2006, 09:58 PM
  5. Log Vol Size Improperly Reported...
    By Kommissar in forum Hardware
    Replies: 4
    Last Post: 28th March 2005, 10:53 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]