How to Install Open Cascade in Ubuntu from a downloaded tgz file.

Kind of yucky out today. To messy to do yard work 😉 I’m trying to convince the family to go for a walk but doesn’t look like it’s going to happen… Just me and the dogs. I’m doing some re-thinking about the end goal… If I wan’t to get drawexe working first, I shouldn’t have to worry about gnu C++ compiler at this time. I guess there’s a small movement to bust up the Opencascade library into smaller components. I’m not sure what the rational is, but it seems to make sense to a bunch of people. They’re looking for testers…. I’m thinking that perhaps, I might want to try on a clean install on the next version of Ubuntu, along with the latest version of the compiler. In the mean time, I think I found magic set of instructions that should get drawexec to fire up. Apparently, someone from this sight found some on a french site. (On the remote chance that some deletes the post. I copied and clean it up below. Something for me to try and see if works when I get back from the walk.

Here’s the link:http://ubuntuforums.org/archive/index.php/t-556314.html
which got the info the french ubuntu site:http://doc.ubuntu-fr.org/opencascade
(1) Install c shell
sudo apt-get install csh
(2) Install Sun Java 6
sudo apt-get install sun-java6-jdk
(3) Make sure, Sun Java 6 is used:
sudo update-alternatives –config java
Set as default the one entry that contains this string:
java-6-sun
(4) Untar the tar.gz file
tar xfvz /path/to/file.tar.gz
(5) Run the installer
sudo java -cp /path/to/untarred/Linux/setup.jar run
6) Getting the test suite to run:
6.1)setting up the enviroment variables
The test suite was meant to be started with two commands:
. /opt/OpenCASCADE6.2.0/ros/env.ksh #set up the environment variables
/opt/OpenCASCADE6.2.0/ros/lin/bin/DRAWEXE
7.1) Linking the tcl and Tk libraries
After this it was searching for tcl and tk libraries, so I had to create some symbolic links:
sudo ln -s /usr/lib/libtk8.4.so.0 /usr/lib/libtk.so
sudo ln -s /usr/lib/libtcl8.4.so.0 /usr/lib/libtcl.so
Adjust the version and the path to which is valid on your system.

Leave a Reply

You must be logged in to post a comment.