Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a4184b945bc9bc3614f7df1ac2d418d7a5a779e9
Ticket: 3401063fffffffffffffffffffffffffffffffff
ldconfig was not ran, so libtcl8.5.so was not found later
User & Date: joxy on 2011-09-01 05:18:24
Changes

  1. icomment:
    1. As I said, the problems seems to be solvable for everyone, in a general but probably very transitionally hard way.
    
    Combative is OK - perfect solutions are useful.
    
    "Were you assuming that only root installs? --- No such assumption. "If you ... insist on the system installation approach..." --- No, I don't insist.
    
    "If you're going to insist on the system installation approach (without relying on system-provided libraries, which would be a recommended method) then you're just going to have to do a little extra work and run 'ldconfig' with appropriate privilege elevation where necessary."
    
    This could be a switch for TCL configure script to select non-root install (a local one) or an installing process with root privileges which would include running ldconfig (updating ld.so's database with TCL installation's internal paths is TCL's responsibility somehow (why?) made the TCL user's responsibility).
    
    "Because there's just no way to completely satisfy both automatically ..." --- About automatic way --- 1) that behavior choice must be specifiable to avoid errors, and 2) some operating systems might have a way to diagnose if the user who is installing TCL has root access or not; for such OS types there could be a way to specify this diagnosis way -- I lack knowledge if modern operating systems allow for this.
    
    So, the conclusion for the current situation is: A problem of underspecification of the standard way to load libtcl*.so for a given TCL version string (provided only this information: <TCL version, and OS type>). Problem type: swamp.
    
    
    2. Underspecification of the clean and exact installation procedure.
    
    TCL_SRC_FOLDER/unix/README says: "The release should compile and run either "out of the box" or with trivial changes on any
    UNIX-like system that approximates POSIX, BSD, or System V."
    
    It does not specify running ldconfig. It should be clear at specifying what "trivial changes" should be done and when. For perfection and reducing a number of TCL users' problems.
    
    TCL_SRC_FOLDER/README doesn't specify cases to run ldconfig.
    
    README also mentions http://www.tcl.tk/doc/howto/compile.html . It doesn't specify cases to run ldconfig.
    
    (This page refers to ActiveTcl/ActiveState. I didn't try it.)
    
    This page also refers to "configure --help". It doesn't specify cases to run ldconfig.
    
    So, the conclusion for the current situation is: A problem of underspecification of the standard and complete way to install tcl from source package. Problem type: swamp.
    
    
    P.S. But TCL is extremely close to perfection --- almost everything is done and worksforme. Almost :)
    
    
  2. login: "joxy"
  3. mimetype: "text/plain"
  4. username: "joxy"