CFDEM Installation

Submitted by katterfe on Fri, 01/21/2011 - 15:04

Hi Christoph,

I'm trying to install CFDEM on a Fedora 14 system. I have installed liggghts and openFoam. Both work well.
Unfortunately I get the following error message when I try to compile it via "wmake libso" in the mycfdem/cfdemParticle directory:

options:10:12: warning: backslash-newline at end of file
linuxGccDPOpt/options:6: *** missing separator. Stop.
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created

I have not touched the options file. It looks like:

EXE_INC = \
-I ./cfdemParticle \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/turbulenceModels/RAS/incompressible/RASModel \
-I$(LIB_SRC)/turbulenceModels/incompressible/turbulenceModel \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/lagrangian/basic/lnInclude \

LIB_LIBS = \
-lfiniteVolume \
-lincompressibleRASModels \
-lmeshTools \
-llagrangian \

What do I do wrong?
Thanks for your support in advance!
Andre

cgoniva's picture

cgoniva | Fri, 01/21/2011 - 16:20

Hi Andre,

Nice to "see" you in the CFD-DEM forum!

I guess yu did all theses steps ?
#- to compile the src type:
rmdepall
wclean
wmake libso

I had a look at the cdOnline forum - there seems to be an issue with some Fedora versions and gcc.

probaly this can help...:

http://www.cfd-online.com/Forums/openfoam/77554-openfoam-1-7-opensuse-11...

http://www.cfd-online.com/Forums/openfoam-bugs/71540-openfoam-1-5-dev-sv...

http://www.cfd-online.com/Forums/openfoam-installation/70318-wmake-error...

please let us know if this "-p" options solved your problem!

Cheers,
Chris

cgoniva's picture

cgoniva | Fri, 01/21/2011 - 16:42

Hi Andre!

Please check if the standard solvers (or sources) can be compiled:

copy a solver to your andre-1.7.1/applications/solvers/

change the name of the executable in /Make/options (in order not to overwrite the original solver)

wclean

wmake

I guess this gives the same error?

Cheers,
Chris

katterfe | Fri, 01/21/2011 - 17:15

It worked with the -P !!!

Thanks Christoph!

Now I'm fighting with octave which do not like the (older?) openfoam libaries:

octave: /home/dem/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/octave-3.2.4/liboctinterp.so)

I guess you should link something but I'm a linux newbie and I cant remember the command...

The rest works very nicely!!! Thanks for the lot of work!!!
Cheers,
Andre

cgoniva's picture

cgoniva | Fri, 01/21/2011 - 17:46

Hi!

Does the octave command normally work?

probably not?
Seems like octave cannot find the libstdc++.so.6.

Here: https://bbs.archlinux.org/viewtopic.php?pid=754881
someone encountered similar problems.

So there is no file: /home/dem/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/lib/libstdc++.so.6 ?
Check if you got some libstdc++.so.6.WHATEVER
and make a soft link: ln -s {libstdc++.so.6.WHATEVER} {libstdc++.so.6}

hope that helps?

Cheers,
Chris

katterfe | Sun, 01/23/2011 - 14:12

Doesn't work!

Sorry Christoph, but I have even more problems with this libary.

After restarting the computer, I cant run the file explorer nautilus anymore. The problem is the same lib than for octave:

[dem@dem ~]$ octave
octave: /home/dem/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/octave-3.2.4/liboctinterp.so)
[dem@dem ~]$ nautilus
nautilus: /home/dem/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libexempi.so.3)

Even Firefox don't want to start anymore...

I looked for other versions of this libstdc++.so.6 file. Here my result:

[dem@dem ~]$ file /usr/lib/libstdc++*
/usr/lib/libstdc++.so.6: symbolic link to `libstdc++.so.6.0.14'
/usr/lib/libstdc++.so.6.0.14: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped

Than I tried different links, but nothing worked (I tried to start nautilus after the link):
[dem@dem ~]$ ln -s /usr/lib/libstdc++.so.6.0.14 /usr/lib/libstdc++.so.6
ln: creating symbolic link `/usr/lib/libstdc++.so.6': File exists
[dem@dem ~]$ nautilus
nautilus: /home/dem/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libexempi.so.3)

[dem@dem ~]$ ln -s /usr/lib/libstdc++.so.6.0.14 /home/dem/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/lib/libstdc++.so.6
ln: creating symbolic link `/home/dem/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/lib/libstdc++.so.6': File exists
[dem@dem ~]$ nautilus
nautilus: /home/dem/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libexempi.so.3)

[dem@dem ~]$ ln -s libstdc++.so.6.0.14 libstdc++.so.6
[dem@dem ~]$ nautilus
nautilus: /home/dem/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libexempi.so.3)

What should I do?
Thanks for any advises and have a nice Sunday!
Andre

cgoniva's picture

cgoniva | Mon, 01/24/2011 - 09:33

Hi Andre,

when OpenFOAM(R) is sourced - some things are added to the path -
then other programs might not find things any more.

do the programs work if OpenFOAM is not sourced?
try to uncomment the statement in the bashrc, open new terminal and try octave and nautilus.

I encountered similar problems once...

IMHO this might be OK?
ln -s /usr/lib/libstdc++.so.6.0.14 /home/dem/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/lib/libstdc++.so.6

"File exists" means that he did not create the link (!), as the file already exists.

You could try to remove that file (probably make a backup first!) and try again to create the link.

Hope you get that fixed - I know how annoying these things are.

Cheers
Chris