Tk Library Source Code

View Ticket
Login
Ticket UUID: 410797
Title: missing config module
Type: Bug Version: None
Submitter: davidw Created on: 2001-03-23 13:04:20
Subsystem: None Assigned To: andreas_kupries
Priority: 4 Severity:
Status: Closed Last Modified: 2002-12-06 03:25:40
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2002-12-05 20:25:40
Description:
I checked tcllib out of CVS, and the installation is a
bit foobared. It wants a /config directory with
install-sh and mkinstalldir.  The Makefile.in file
seems to have some troubles as well...  For instance,
there is no INSTALL_DATA, amongst other things
User Comments: andreas_kupries added on 2002-12-06 03:25:40:
Logged In: YES 
user_id=75003

Fix committed to CVS.
tclpro/config is now duplicated in tcllib/config

vincentdarley added on 2002-05-17 18:26:21:
Logged In: YES 
user_id=32170

I can't believe this bug still hasn't been fixed.  Why oh 
why do we want to make things so difficult for new users.

This seems to be a recurring problem with Tcl.  I install 
Tcl.  Now I want to install package 'X'.  I download X. But 
now package X needs something else, 'Y'.  Unfortunately 
there are no instructions telling me where to get Y, and I 
wasn't informed when I downloaded X that I would also need 
to download something else.

The whole point of Tcl is to be easy and cross-platform and 
nice, but it gets held back by completely ridiculous things 
like a 'config' module being missing.

lduperval added on 2001-11-12 00:30:22:
Logged In: YES 
user_id=40456

Can this be fixed by putting an entry either in the README or the
configure.in that says *where* to find the config directory? Ideally, it 
should be part of the tcllib CVS repository then any other module
which requires it would require a checkout of tcllib/config.

I *still* don't know where to find it. Fortunately, someoen made a
"mistake" in tklib and checked in the config directory. That's where I got a copy.

dgp added on 2001-10-29 06:18:52:
Logged In: YES 
user_id=80530

updated summary to something more precise.

andreas_kupries added on 2001-09-07 00:19:37:
Logged In: YES 
user_id=75003

This is something we can fix for "releases".

But trying to fix this for plain checkouts
will get us a lot of duplication for the
stuff in the config directory.

Alternate solution: A checkout script which
retrieves all required parts ...

nobody added on 2001-07-18 07:52:34:
Logged In: NO 

I've had the same problems since I started playing with the 
TclLib CVS about a month ago.
I used a standard linux box, tho with tcl8.4a3 installed in 
my shell's root vs. the default install locations.
It took me a while, but I finally got past this by opening 
the configure file and removing the /config part of the 
path call that was tripping it up.  After that mess, it 
errored on looking for a mkinstalldirs file, which I fixed 
by digging up a copy and sticking it in the src dir.

At any rate, maybe it's just me, but there seems to be an 
enormous lack of simple documentation with tcllib.  I 
understand of course that it's still under development and 
docs are not going to be complete for some time, but I am 
refering to even the most basic of instructions as far as 
installation and using the mkIndex & mkInstallScripts 
files.  Obviously every machine is going to be a little 
different, but it might not be a bad idea to put a hint or 
two in the readme file next time you have 5-10 minutes 
available.
Aside from that, my only gripe is that the struct module 
makes me painfully aware of my need to learn higher level 
scripting/programming formats.  But alas, that's one "bug" 
I KNOW won't ever make it on your "TODO" lists.  ;)

das added on 2001-06-29 15:08:52:
Logged In: YES 
user_id=90580

on a linux box I managed to install from a cvs checkout by 
doing the following in tcllib/

ln -s . config

and adding this mkinstalldirs script to tcllib/

#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <[email protected]>
# Created: 1993-05-16
# Public domain

# $Id: mkinstalldirs,v 1.1.2.1 2001/02/15 18:32:31 dgoddeau 
Exp $

errstatus=0

for file
do
   set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// 
/g;s/^#/\//;p'`
   shift

   pathcomp=
   for d
   do
     pathcomp="$pathcomp$d"
     case "$pathcomp" in
       -* ) pathcomp=./$pathcomp ;;
     esac

     if test ! -d "$pathcomp"; then
        echo "mkdir $pathcomp"

        mkdir "$pathcomp" || lasterr=$?

        if test ! -d "$pathcomp"; then
          errstatus=$lasterr
        fi
     fi

     pathcomp="$pathcomp/"
   done
done

exit $errstatus

# mkinstalldirs ends here

vincentdarley added on 2001-03-28 23:29:44:
Logged In: YES 
user_id=32170

I see the same problem -- a clean download of tcllib fails 
to do anything with './configure' on Cygwin.  This seems to 
be the usual issue where TEA is supposed to help everyone, 
but instead fails miserably.  Can't we have a simple .tcl 
file to install 'tcllib'.  It could easily list the set of 
all packages included with a simple 'glob' and we'd never 
have to mess with makefiles and configure scripts again.