[Paraview] Tcl installation path in 2.4.2

Neil Carlson nnc at newmexico.com
Sun Jan 22 11:18:39 EST 2006


On Thu, 2005-11-10 at 08:55 -0500, Amy Squillacote wrote:
> This is a known problem, and it has been corrected on the CVS branch 
> for ParaView 2.4 (CVS tag ParaView-2-4).  (It was a problem in the 
> code, not in how you tried to install ParaView.)  If you check this 
> version out from CVS, you should be able to compile and install 
> ParaView as you did for ParaView 2.2.

I've given it a try once again with 2.4.2, and it is still a problem.

Executing with the full path (/opt/paraview/2.4.2/bin/paraview) works
fine, but adding that bin directory to my path and executing 'paraview'
gives

ParaView error: InitializeTcl failed
Tcl_Init error: Can't find a usable init.tcl in the following
directories:
    /usr/local/lib/tcl8.4 /opt/src/rpm/RPMS/lib/tcl8.4 /opt/src/rpm/lib/tcl8.4 /opt/src/rpm/RPMS/library /opt/src/rpm/library /opt/src/rpm/tcl8.4.5/library /opt/src/tcl8.4.5/library /usr/local/lib/tcl8.4
This probably means that Tcl wasn't installed properly.

I'm using the unmodified 2.4.2 distribution configured (per Brad King's
suggestion) as:

cmake -DCMAKE_BUILD_TYPE:STRING=RELEASE ..
cmake -DPV_INSTALL_BIN_DIR=/bin \
      -DPV_INSTALL_LIB_DIR=/lib \
      -DPV_INSTALL_DATA_DIR=/share \
      -DPV_INSTALL_INCLUDE_DIR=/include \
      -DCMAKE_INSTALL_PREFIX=/opt/paraview/2.4.2 ..

I'm building an rpm, so I'm installing it in a temporary root tree
for packaging:

make install DESTDIR=/var/tmp/paraview-root

> At 10:40 PM 11/9/2005, Neil Carlson wrote:
> >I am trying to build a FC3 rpm for 2.4.0 using the same procedure
> >I successfully used for 2.2.1, but I am having problems with the
> >compiled-in Tcl path that I am unable to resolve.
> >
> >I want to install each version of paraview into its own tree and
> >not scattered about like the default setup.  Building an rpm, I
> >also need to install it into a temporary root (rpm_build_root)
> >and not /.  To this end I tweaked the CMakeLists.txt file to set
> >the PV_INSTALL_{LIB,INCLUDE,DATA}_DIR variables to simply
> >${PV_INSTALL_ROOT}/{lib,include,share}.  I also set
> >TclTk_INSTALL_LIB_DIR to ${PV_INSTALL_LIB_DIR}.  (I note that the
> >2.4.0 CMakeLists.txt file included this latter change too.)  When
> >I ran cmake, I set PV_INSTALL_ROOT to /opt/paraview/2.4.0, and
> >CMAKE_INSTALL_PREFIX to /var/tmp/paraview.
> >
> >The 2.4.0 rpm installs everything where I intended, and paraview
> >runs fine if I invoke it with the full path.  But if I add the
> >bin directory to my path, and invoke it with just 'paraview' I
> >get the following error message:
> >
> >ParaView error: InitializeTcl failed
> >Tcl_Init error: Can't find a usable init.tcl in the following
> >directories:
> >     /usr/local/lib/tcl8.4 /opt/src/rpm/lib/tcl8.4 /opt/src/lib/tcl8.4 ...
> >
> >I don't know where it's picking up those directories, but none of
> >them are correct (obviously); it's in /opt/paraview/2.4.0/lib/tcl8.4
> >
> >As I said before, this same build procedure with 2.2.1 works absolutely
> >correctly.  Anyone have any suggestions?  I really don't understand
> >cmake.
> >
> >Thanks!
> >--
> >Neil Carlson <nnc at newmexico.com>
> >
> >_______________________________________________
> >ParaView mailing list
> >ParaView at paraview.org
> >http://www.paraview.org/mailman/listinfo/paraview
-- 
Neil Carlson                            email:  nnc at lanl.gov
Los Alamos National Laboratory          office: 505.665.6386
CCS-2, Continuum Dynamics               cell:   505.927.3499
P.O. Box 1663, MS D413
Los Alamos, NM 87545



More information about the ParaView mailing list