From: Alan W. I. <ir...@be...> - 2001-10-03 17:22:39
|
That configure logic is complicated so this is just a suggestion of what might work. But if I understand it properly, it is designed so you can set environment variables to force trying particular install locations. For example, I think you can setenv (with tcsh) or export (with the bash shell) the following environment variables to specify any arbitrary install location for TCL and TK: TCLINCDIR, TCLLIBDIR, TKINCDIR, and TKLIBDIR. I don't have the expertise to help you with your specific itcl question, but it does sound like we have a configuration inconsistency there. One workaround for now until this gets fixed might be to install itcl then configure with environment variables set for ITCLINCDIR and ITCLLIBDIR. Alan email: ir...@be... phone: 250-727-2902 FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ Linux-powered astrophysics __________________________ On Wed, 3 Oct 2001 hv...@i-... wrote: > Hello. I am trying to install PLPlot on a fairly vanilla linux node > in a cluster but am having a problem I can't correctly interpret. > > First, I have installed PLPlot successfully on other linux and unix > (SunOS) boxes without fault. On those machines, I had tcl/tk 8.3.3 > but NO access to itcl. > > On the problem machine, I am not allowed to install code 'in the normal > places' so I have to run everything out of my home directory. Let's say > that is directory foo, so foo/tcl8.3.3 and foo/tk8.3.3 and foo/plplot5.0.4 > all live there. > > Tcl and Tk installed just fine. If I invoke any code 'there' I run > 8.3 code, and NOT 8.0.5 code that is also hosted in default paths > on said host. > > When I ./configure in plplot directory, I hang up because the script > thinks that it is running on a machine with 8.0.5 code. So I took > a look in configure script under tcl and tk sections. There, I found > incdirs_default and libdirs_default variables. So I added: > /foo/tcl8.3.3/generic \ > /foo/tcltk/include \ > > to top of list for incdirs_default and: > foo/tcltk/lib to top of > libdirs_default list. Now when configure runs, it plays nice and says it > finds 8.3.3 of tcl and tk. I have run configure with both (default) > and --disable-itcl, but in either case, the subsequent make runs fine > until I see this: > > gcc pltcl.o -L. -lplplot -ltclmatrix -o pltcl \ > -L/home/hcvidal/tcltk/lib -ltk8.3 -ltcl8.3 -L/usr/X11R6/lib -lX11 > -ldl -lm -Wl,-rpath -Wl,/home/hcvidal/plplot-5.0.4/tmp no value given for > parameter "body" to "_%@fake_itcl_class" > invoked from within "_%@fake_itcl_class $args" > ("eval" body line 1) > invoked from within "_%@eval _%@fake_itcl_class {$args}" > (procedure "itcl::class" line 1) > invoked from within "itcl::class Pltkwin { > inherit PLWin > constructor {args} {} > protected method plwin {} { return \$itk_interior.plwin } > > public metho..." > invoked from within "$parser eval $contents" > (procedure "auto_mkindex_parser::mkindex" line 25) > invoked from within "auto_mkindex_parser::mkindex $file" > (procedure "auto_mkindex" line 21) > invoked from within "auto_mkindex . *.tcl *.itcl *.itk *.ith *.itm" > (file "/home/hcvidal/plplot-5.0.4/scripts/mktclIndex" line 23) > make[1]: *** [tclIndex] Error 1 make[1]: Leaving directory > `/home/hcvidal/plplot-5.0.4/tmp' make: *** [all] Error 2 > > this sure looks like itcl is being 'pulled in' but I still have not > figured out why, Yes, I see this happening from mktclIndex, > but just out of curiousity, why the hell is itcl being invoked if > I spec --disable-itcl? > > btw, is there an easier way to spec that myu plplot build should > use a tcl and tk install 'over here' and not in default places, > maybe via command line? That would be a lot easier. > > Any helpful thoughts or solutions to be suggested? Thanks. > > hv > > > > _______________________________________________ > Plplot-general mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-general > |