Archive for the ‘OpenCascade’ Category

Solving the libstdc++-libc6.1-1.so.2 issue for Opencascade for Gutsy Gibbon

Tuesday, April 8th, 2008

Ok… Researching this it seems that everyone and there uncle seems to have had this issue trying to install Opencascade on Ubuntu….
I guess this is my attempt.
Looking over the numerous threads spread across the internet this is the one it thought I pursue first:

At the bottom of the thread was this:http://www.opencascade.org/org/forum/thread_11215/
“Just FYI, this also works on Ubuntu Feisty. You also need to install libstdc++2.10-glibc2.2 then create a symbolic link from /usr/lib/libstdc++-libc6.2-2.so.3 to /usr/lib/libstdc++-libc6.1-1.so.2.
EH”
So checking stuff out.

jonas@jonas-desktop:~$ sudo updatedb
[sudo] password for jonas:
jonas@jonas-desktop:~$ locate /usr/lib/libstdc++-libc6.2-2.so.3
/usr/lib/libstdc++-libc6.2-2.so.3
jonas@jonas-desktop:~$ cd /usr/lib/libstdc++-libc6.2-2.so.3
bash: cd: /usr/lib/libstdc++-libc6.2-2.so.3: Not a directory
jonas@jonas-desktop:~$ cd /usr/lib
jonas@jonas-desktop:/usr/lib$ ls -a libstdc++-libc6.2-2.so.3
libstdc++-libc6.2-2.so.3
jonas@jonas-desktop:/usr/lib$

This has me befuddled at the moment…It appears that libstdc++-libc6.2-2.so.3 is not a folder. So what is it?? I sure there’s a way from spitting this out from the command line but using the file browser this appears to a link to a shared library( /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so to be precise) Ok so I think the command line I need to to the link is:

sudo ln -s libstdc++-libc6.2-2.so.3 /usr/lib/libstdc++-libc6.1-1.so.2

Results are:

jonas@jonas-desktop:~$ sudo ln -s libstdc++-libc6.2-2.so.3 /usr/lib/libstdc++-libc6.1-1.so.2
[sudo] password for jonas:
jonas@jonas-desktop:~$ sudo updatedb
jonas@jonas-desktop:~$ locate /usr/lib/libstdc++-libc6.1-1.so.2
/usr/lib/libstdc++-libc6.1-1.so.2
jonas@jonas-desktop:~$

It looks like it took… Know the test is to run the document installation script again and see what happens:
jonas@jonas-desktop:~$ cd Opencascade_documentation
jonas@jonas-desktop:~/Opencascade_documentation$ csh
% ls
Autorun.inf images install.bat install.csh OpenCASCADE_doc.tgz package readme.htm
% cd -x install.csh
Usage: cd [-lvn] [<dir>].
% csh -x install.csh
setenv JAVAHOME .
set OS_NAME=`uname`
uname
if ( Linux == SunOS ) then
if ( Linux == Linux ) then
./package/setupLinux.bin
InstallShield Wizard

Initializing InstallShield Wizard…

Preparing Java(tm) Virtual Machine…
……………………………..
……………………………..
……………………………..
……………………………..
……………………………..
……………………………..
……………………………..
……………………………..
……………………………..
..endif
%

I guess it took..
According to the readme.htm file in the download the documentation should have dumped into /opt/OCCTDocumentation6.2.0 directory
Well it didn’t…. I did a updatedb and tried to locate OCC and well here are the results.
jonas@jonas-desktop:~/Opencascade_documentation$ locate occ
/usr/share/pixmaps/faces/soccerball.png
/usr/share/pixmaps/pidgin/emotes/default/soccerball.png
jonas@jonas-desktop:~/Opencascade_documentation$ locate OCC
/home/jonas/Desktop/OCC50_Overview.pdf
jonas@jonas-desktop:~/Opencascade_documentation$

The pdf was something I found earlier…. Ah Heck…. It didn’t error out but it didn’t do what it was supposed to do.. Time for more research….. To quote the penguins from the movie Madagascar when they reach the Antarctic… Well… this sucks…. Time for bed..

Setting up enviroment values for C-shell

Saturday, April 5th, 2008

I feel like the guy whose been sort of lost driving and has been sort of reluctant to ask for directions. I keep thinking I’m almost there, but I at a point where I’m posting this on the ubuntu forum. A summary of how I got to where I’m at.

I managed to set the environment variables to the bash shell successfully per his instructions but got real confused trying to set this up for the C-shell.
In this guys instructions he talks about the “simple matter” about adding Java properties to the file: /etc/csh/login.d/java
In my personal logic leads me to think that the /etc/csh/login.d would have been created at install or when I fire up csh in terminal. I suppose I could brute for and create the sub-folders, but my gut tells me that will not work. Am I wrong? I guess these are the questions I have:

  • Is /etc/csh/login.d/ something that csh recognize out of the box?
    • Do I need to manually create the folder for the file /etc/csh/login.d/java?
      I found: The C shell tutor which talks about .cshrc .login .logout

    I think all I need to do is to plot the setenv stuff is .cshrc
    Is that correct?? Where is .cshrc located?

I posted this on Ubuntu forums…. See what happens http://ubuntuforums.org/showthread.php?t=745954

I suppose I should probably update the database and see if I can answer my own questions. To create a database with the file names in the terminal go sudo updatedb, and after that Locate filename

jonas@jonas-desktop:~$ sudo updatedb
[sudo] password for jonas:
jonas@jonas-desktop:~$ locate .cshrc
jonas@jonas-desktop:~$ locate cshrc
jonas@jonas-desktop:~$
It doesn’t seem to be there…..more research req’d hopefully someone takes pity on me.