how may I do start ?

Hello all,
I'm wondering how may I start after install...
may I have to do configure ?
What about drawexe ?

Because whatever I do... i get only errors and errors !
e.g.
1) /usr/share/OpenCascade/ros/Linux/bin/woksh
/usr/share/OpenCascade/ros/Linux/bin/woksh: error while loading shared libraries: libtcl.so.0: cannot open shared objectfile: No such file or directory

2) /usr/share/OpenCascade/ros/Linux/bin/DRAWEXE
/usr/share/OpenCascade/ros/Linux/bin/DRAWEXE: error while loading shared libraries: libtcl.so.0: cannot open shared object file: No such file or directory

3) /usr/share/OpenCascade/ros/Linux/bin/wokprocess
/usr/share/OpenCascade/ros/Linux/bin/wokprocess: error while loading shared libraries: libtcl.so.0: cannot open shared object file: No such file or directory

4)------------------------------
debian-gros:/usr/share/OpenCascade/ros# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
checking for library containing strerror... none required
checking whether byte ordering is bigendian... no
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether -lc should be explicitly linked in... no
creating libtool
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking whether gcc and cc understand -c and -o together... yes
checking for gcc option to accept ANSI C... none needed
checking for function prototypes... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for gawk... (cached) mawk
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for bison... no
checking for byacc... no
checking whether make sets $(MAKE)... (cached) yes
checking for main in -le... no
checking for main in -links... no
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for ANSI C header files... (cached) yes
checking for C header files ... checking for dlfcn.h... (cached) yes
checking dl.h usability... no
checking dl.h presence... no
checking for dl.h... no
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking osfcn.h usability... no
checking osfcn.h presence... no
checking for osfcn.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking net/if.h usability... yes
checking net/if.h presence... yes
checking for net/if.h... yes
checking sys/systeminfo.h usability... no
checking sys/systeminfo.h presence... no
checking for sys/systeminfo.h... no
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking sysent.h usability... no
checking sysent.h presence... no
checking for sysent.h... no
checking for unistd.h... (cached) yes
checking sys/unistd.h usability... yes
checking sys/unistd.h presence... yes
checking for sys/unistd.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking sys/dir.h usability... yes
checking sys/dir.h presence... yes
checking for sys/dir.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/signal.h usability... yes
checking sys/signal.h presence... yes
checking for sys/signal.h... yes
checking sigfpe.h usability... no
checking sigfpe.h presence... no
checking for sigfpe.h... no
checking floatingpoint.h usability... no
checking floatingpoint.h presence... no
checking for floatingpoint.h... no
checking sys/machsig.h usability... no
checking sys/machsig.h presence... no
checking for sys/machsig.h... no
checking sys/siginfo.h usability... no
checking sys/siginfo.h presence... no
checking for sys/siginfo.h... no
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for strings.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking sys/vnode.h usability... no
checking sys/vnode.h presence... no
checking for sys/vnode.h... no
checking for C++ header files ... checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

Here is a bit of my log ...

configure:2802: checking for style of include used by make
configure:2830: result: GNU
configure:2858: checking dependency style of gcc
configure:2926: result: gcc3
configure:2955: checking how to run the C preprocessor
configure:2991: gcc -E conftest.c
configure:2997: $? = 0
configure:3029: gcc -E conftest.c
configure:3030:28: ac_nonexistent.h: No such file or directory
configure:3035: $? = 1
configure: failed program was:
| #line 3020 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "OpenCAS"
| #define VERSION "5.0DVP1"
| /* end confdefs.h. */
| #include
configure:3073: result: gcc -E
configure:3098: gcc -E conftest.c
configure:3104: $? = 0
configure:3136: gcc -E conftest.c
configure:3137:28: ac_nonexistent.h: No such file or directory
configure:3142: $? = 1
configure: failed program was:
| #line 3127 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""

...

What can I do ??

andy.petrella's picture

No matter of the configure error... i'm so stupid... i have forget that I hadn't install g++ yet... :'(

so ! now I have a warning at the end of the configure...

checking for Tcl configuration... configure: WARNING: Can't find Tcl configuration definitions

Since the tar of OCC provide Tcl libs... is it really a problem or I can get off my mind ?

Eng. Andrea Mannori's picture

I have this problem too! on Linux Mandriva 2006

" /usr/share/OpenCascade/ros/Linux/bin/DRAWEXE
/usr/share/OpenCascade/ros/Linux/bin/DRAWEXE: error while loading shared libraries: libtcl.so.0: cannot open shared object file: No such file or directory"

Please answer as soon as possible,
understand that I'm not expert of Linux OS, so I don't know how to set environment variables or something similar.

THANKS,
Best Regards

Eng. Andy Mannori

ruxandra's picture

I had some problem in mandriva 2006
and
you have to make some links:
# cd /usr/lib
# mv libtcl.so libtcl.so.txt
# ln -s libtcl8.4.so libtcl.so
# mv libtk.so libtk.so.txt
# ln -s libtk8.4.so libtk.so

I think will work.