From: Moisei R. <mra...@il...> - 2003-02-19 07:39:12
|
there is a global variable auto_path that contains a list of directories subdirectories of which will be checked for pkgIndex.tcl file. I.e make sure that "/usr/local/tools/lib" is prsent as one of the elements of the $::auto_path variable. If not, type following in your tclsh: lappend ::auto_path "/usr/local/tools/lib" package require xml; #if you have an error message, type immediately after this command puts $::errorInfo that will print the stack trace of the last error occured, so you will have more information about the problem that occurred due to package loading (missing library in the path or one some dependencies are missing, etc) Best Regards, Moisei "Abner Junior" <ab...@de...> To: <Ste...@zv...> Sent by: cc: <tcl...@li...> tcl...@li...urc Subject: Re: [Tclxml-users] Can't find package xml 2.4 eforge.net 02/18/2003 10:34 PM Indeed I was rather vague... It is the pure TCL installation. And our directory /usr/local/tools/lib has the following files: libtcl8.3.so libtkstub8.3.a libtclstub8.3.a libtk8.3.so tclConfig.sh tkConfig.sh And the following directories: tcl8.3 tcldom-2.3 tcllib1.3 tclxml-2.0 tk8.3 tclxml2.4 The tclxml2.4 directory has a pkgIndex.tcl file... The permissions are ok, these files are owned by myself (non-root). But the thing is, I did this installation under a Solaris machine, but our Linux machines share the same directory tree, so theoretically I should be able to use these for the Linux systems shouldn't I? I mean, there's no compilation involved, right? If so, there must be some environment variable missing or something? Enlighten me! Thanks, Abner ----- Original Message ----- From: "Steve Ball" <Ste...@zv...> To: "Abner Junior" <ab...@de...> Cc: <tcl...@li...> Sent: Tuesday, February 18, 2003 4:50 PM Subject: Re: [Tclxml-users] Can't find package xml 2.4 > Abner Junior wrote: > > I'm having problems in Linux machines where I tried to install tclxml > > 2.4. > > I had installed it in Solaris machines before, with my personal login > > (without root privileges) and it worked just fine for all our Solaris > > machines here and all our users too. > > Later we tried installing it for our Linux machines and we did so using > > root privileges. > > Bottom-line is, when we try to execute our program under the Linux > > machines we get the "Can't find package xml 2.4" error. > > Could anyone point out to me what could be wrong? Maybe a conflict in > > environment variables, maybe a conflict with installing twice under the same > > network? I can't figure it out myself, help plz!!~ > > Well, that's not alot of information to go on. > > How did you do the install? Is it a pure-Tcl installation > or did you compile the expat extension? Did the installation > create a 'tclxml-2.4' directory in the Tcl directory's 'lib' > directory? If so, is there a pkgIndex.tcl file in there? > Are the file permissions wrong? Perhaps when you did the > install with root privileges the files ended up not being > readable by non-root users? > > HTHs, > Steve Ball > > -- > Steve Ball | XSLT Standard Library | Training & Seminars > Zveno Pty Ltd | Web Tcl Complete | XML XSL Schemas > http://www.zveno.com/ | TclXML TclDOM | Tcl, Web Development > Ste...@zv... +---------------------------+--------------------- > Ph. +61 2 6242 4099 | Mobile (0413) 594 462 | Fax +61 2 6242 4099 > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Tclxml-users mailing list Tcl...@li... https://lists.sourceforge.net/lists/listinfo/tclxml-users |