For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Installation problem - System environment

forestier's picture

Hi everybody,
New in Linux, I was looking for a program like OOC.
I installed it without problem on my Ubuntu Gutsy (7.10) but now I'm facing a problem.
The documentation says:
"To set the necessary system environment, add the contents of $CASROOT/env.csh or env.ksh file to your shell rc file."
I've found env.csh and env.ksh files in my installation folder, but what i have to do with them ? And what is my shell rc file?
Could you help me, please.
Best Regards.

Hugues Delorme's picture

Hello,

I also have a Gutsy on my laptop and have successfully installed open cascade. I don't have csh and ksh, but bash. So I wrote an equivalent initialisation script of open cascade in bash, here it is :

#!/bin/bash
export CASROOT=/opt/lib/occ6.2.0/ros
OS_NAME=`uname`
export PATH="$CASROOT/../3rdparty/$OS_NAME/tcltk/bin:$CASROOT/$OS_NAME/bin:$PATH"
export LD_LIBRARY_PATH="$CASROOT/../3rdparty/$OS_NAME/tcltk/lib:$CASROOT/$OS_NAME/lib:$LD_LIBRARY_PATH"

export CSF_MDTVFontDirectory=$CASROOT/src/FontMFT
export CSF_LANGUAGE=us
export MMGT_CLEAR=1
export CSF_EXCEPTION_PROMPT=1
export CSF_SHMessage=$CASROOT/src/SHMessage
export CSF_MDTVTexturesDirectory=$CASROOT/src/Textures
export CSF_XSMessage=$CASROOT/src/XSMessage
export CSF_StandardDefaults=$CASROOT/src/StdResource
export CSF_PluginDefaults=$CASROOT/src/StdResource
export CSF_XCAFDefaults=$CASROOT/src/StdResource
export CSF_StandardLiteDefaults=$CASROOT/src/StdResource
export CSF_GraphicShr=$CASROOT/$OS_NAME/lib/libTKOpenGl.so
export CSF_UnitsLexicon=$CASROOT/src/UnitsAPI/Lexi_Expr.dat
export CSF_UnitsDefinition=$CASROOT/src/UnitsAPI/Units.dat
export CSF_IGESDefaults=$CASROOT/src/XSTEPResource
export CSF_STEPDefaults=$CASROOT/src/XSTEPResource
export CSF_XmlOcafResource=$CASROOT/src/XmlOcafResource

export TCLHOME=$CASROOT/../3rdparty/$OS_NAME/tcltk
export TCLLIBPATH=$TCLHOME/lib
case $OS_NAME in
"SunOS")
export TIX_LIBRARY=$TCLLIBPATH/tix8.1;;
esac

export ITK_LIBRARY=$TCLLIBPATH/itk3.2
export ITCL_LIBRARY=$TCLLIBPATH/itcl3.2
export TK_LIBRARY=$TCLLIBPATH/tk8.4
export TCL_LIBRARY=$TCLLIBPATH/tcl8.4

Replace the value of the variable CASROOT with the right folder for your case.
Once done, open a terminal and type "source /yourfolder/env.bsh" then you can use open cascade for your development.
Note : add "source /yourfolder/env.bsh" to ~/.bashrc (this is your shell rc file) so open cascade is fully configured on startup.

forestier's picture

Hi Hugues,
Thanks for you reply.
Following your message, it looks working fine now.
Thanks.