#14 Symbolic link missing in 0.45 Fedora 13

open
Unix build (3)
5
2012-04-16
2010-12-28
m1xram
No

In order for /usr/lib/TclImage0.45/pkgIndex.tcl to load a symbolic link should be created in a directory like /usr/lib/tcl8.5/. For Fedora 13 I did a link with...

ln -s /usr/lib/TclMagick0.45/ /usr/lib/tcl8.5/

The build was accomplished with...

./configure --with-tcl=/usr/lib/ --with-tk=/usr/lib/ --with-magick=/usr/bin/MagickWand-config

...because Fedora puts 'tclConfig.sh' and 'tkConfig.sh' in /usr/lib/. It would be difficult to construct a symbolic link from the above command as the actual tcl directory is not listed. Fedora does put a symbolic link in /usr/lib/tcl8.5/ to the config file in the parent directory but no link exists in /usr/lib/tk8.5/ so you could not specify the tcl and tk directories consistently. This has the side effect of causing TCL_PREFIX and TCL_EXEC_PREFIX to default to /usr/ which is incorrect but doesn't seem to cause a problem.

Recommendations
1) Add the above to the README so people will have a shot at fixing this on their own.
2) Fix configure script to test for tclsh, run it with a tcl program to output tcl_version, and then locate the place for the symbolic link.

I would be willing to help with item 2 if you wish. Let me know. I can test on Fedora and Ubuntu.

Mark

Discussion

  • Can you please try TclMagick 0.46 from the GraphicsMagick 1.3.14 release and report what still needs to be fixed? TclMagick is no longer independently maintained from GraphicsMagick. I am able to build and install it under Ubuntu with Tcl 8.5. The only part that I am aware of which is not working is the TkMagick functionality because it depends on a TclMagick symbol being resolvable and Ubuntu Linux does not make symbols from one module available to the other.

     
    • assigned_to: davidw --> bfriesen
     
  • m1xram
    m1xram
    2012-04-16

    It's been over a year and the latest version of Fedora didn't work with this laptop. It now runs Xubuntu. Someone gave me a desktop so I'll see if Fedora will run on it. If it does will try the latest code. Could be a while though.

    Mark

     
  • m1xram
    m1xram
    2012-04-19

    Built a Fedora 13 system, updated it, loaded all the developement headers, tools, libraries. Put the new versions of GraphicsMagick-1.3.14 and TclMagick-0.46 on it, built them, installed them.

    Does the same thing. But if I add the symbolic link, it works fine. /usr/share/tcltk doesn't exist on Fedora and it is not listed in TCL_PACKAGE_PATH found in file tclConfig.sh.

    Xubuntu TCL_PACKAGE_PATH='/usr/local/lib/tcltk /usr/local/share/tcltk /usr/lib/tcltk /usr/share/tcltk /usr/lib'

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

    So now the problem is obvious, the information in tclConfig.sh is ignored or not updated.

     
  • i cannot say the my fantastic outcome is since the 2day diet pills http://hi.baidu.com/2daydiet, because i normally doing exercise and have fantastic diet program , but i do really feel differnce following taking the pill. and weight be decreased more rapidly than usual, and also it offers me additional power. i definitely like it.