Error using env.csh

Hi folks:

I downloaded Opencascade 6.3.0 for Linux, I was able to configure, make and make install on my Debian OS. I get this error when I use env.csh. My default shell is bash. In bash I get this error

env.csh: line 3: setenv: command not found
env.csh: line 50: syntax error: unexpected end of file

In csh when I use csh env.csh, I get this error.
setenv: Too many arguments.

How do I set the ennvironment right.

I am difficulty reading the ONline Manual, ie,

file://localhost/home/DebianBox/OpenCASCADE6.3.0/doc/Overview/index.htm

Is this where I start?

Please help me get started on OpenCASCADE?

Thanks,
Regards,
SK

Attachments: 
Dennis G.'s picture

Hello

If you're using bash you should use 'export' instead of 'setenv' in the env.csh. I altered the file but you definately have to define CASROOT in the 3rd line. Just change line 3 to:
export CASROOT=/path/to/you/OCC/installation
Then everything should work just fine. (Hope I didn't introduce any errors.)

Regards,

Dennis

Attachments: 
Arthur Magill's picture

As Dennis says, env.csh is intended for use with the c-shell (csh). The default shell on most Linux's these days is bash. Ksh is pretty much identical to bash, so try using env.ksh instead. I changed the first line from "#!/bin/ksh -f" to "#!/bin/bash -f" and renamed it env.sh, and it worked straight away.

(OCC people - perhaps this would be a useful change to make in the next version, given that bash is more common the korn these days?)

satchit's picture

Hi Dennis and Magill:

I used Ksh yesterday, and it seems to have worked. I get these two errors in using env.csh written by Dennis

env.csh: line 40: export: `/home/hilbert/OpenCASCADE6.3.0/ros/../3rdparty/Linux/tcltk/lib/itk3.2': not a valid identifier
env.csh: line 41: export: `/home/hilbert/OpenCASCADE6.3.0/ros/../3rdparty/Linux/tcltk/lib/itcl3.2': not a valid identifier

Where do I start off on OpenCASCADE documentation

file://localhost/home/hilbert/OpenCASCADE6.3.0/doc/Overview/index.htm

Is the right webpage OR do I have to download Documentation.exe?

Thanks for your help,

Regards,
Satchit

Attachments: 
Arthur Magill's picture

Hi Satchit,

I just noticed you're using Debian. There is a package (libopencascade-dev) already in the repository for Squeeze. If you install that one, the documentation will be in /usr/share/doc/opencascade-doc. I'm not sure where it will be if you have installed the direct download from this site - but ~/OpenCASCADE6.3.0/doc/ sounds about right. Look for tutorial.pdf to get started.

You should also have a look at Roman Lygin's blog (http://opencascade.blogspot.com/) - he writes lots of good introductory material about OpenCascade.

Arthur

satchit's picture

Hi Arthur:

I installed these packages from Debian Squeeze

libopencascade-foundation-6.3.0 libopencascade-foundation-dev libopencascade-modeling-6.3.0 libopencascade-modeling-dev libopencascade-ocaf-6.3.0 libopencascade-ocaf-dev libopencascade-ocaf-lite-6.3.0 libopencascade-ocaf-lite-dev libopencascade-visualization-6.3.0 libopencascade-visualization-dev

These seem to be only the source files, these are not binaries. opencascade-doc folder is meant for Opencascade 6.2, and states nothing about the compilation. Do you have experience with libopencascade-dev for Debian.

Thanks,

Regards,
Satchit

Denis Barbier's picture

The Debian packages are modified to not require setting any environment variables, everything should just work. So you do not have to worry about sourcing env.csh or env.ksh.

satchit's picture

Hi Denis:

I dont find DRAWEXE in the installation. All I have is a lot *.hxx files in /usr/include/opencascade/ directory and a few *.so files in /usr/lib directory. Where are the executable files? If I need to compile, I dont find the configure and MAke files.

Thanks much for your help,

Regards,
Satchit

satchit's picture

Hi:

I was able to install opencascade-tools and opencascade-examples. I am able to use DRAWEXE. But I get this error when I use pload -ALL command

An exception was caught 0x56d033 : Draw_Failure: Could not open: TKTopTest; reason: libTKTopTest.so: cannot open shared object file: No such file or directory
** Exception ** 0x56d033 : Draw_Failure: Could not open: TKTopTest; reason: libTKTopTest.so: cannot open shared object file: No such file or directory

and when I use a basic box b -10 -10 -10 20 20 20

>> invalid command name "box"

What is in /usr/share/opencascade/ is 6.2/src

Thanks for your help,

I will google nwo.

Regards,
Satchit

satchit's picture

Hi:

I installed opencascade-draw instead of opecascade-tools, I am now able to use pload with the following debug error

Cannot load Debug Browser library. DFBrowser command is not attached

I am able to use the Draw Harness. Does any one share their opencascade code to help me get started.

Thanks,

Regards,
Satchit