CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   OpenFoam 1.6-ext (https://www.cfd-online.com/Forums/openfoam/83014-openfoam-1-6-ext.html)

deepsterblue December 21, 2010 11:53

That part's actually pretty simple. The openSUSE guys have packaged gcc beautifully, such that several versions can co-exist. Find a repo that contains gcc-4.4 (if it's not installed already), and modify the sym-link in /usr/bin to point to the appropriate version:

/usr/bin/gcc -> /usr/bin/gcc-4.4
/usr/bin/cpp -> /usr/bin/cpp-4.4
/usr/bin/g++ -> /usr/bin/g++-4.4

Peter_600 December 21, 2010 13:13

Sorry, to bother u again. I don t know how to do it in Linux :(
How can I switch between those compiler. is it a softlink?
How do I change it?

deepsterblue December 21, 2010 13:40

As root, delete the /usr/bin/(gcc/cpp/g++) links, and create a symbolic link using:

ln -s [target] [linkname]

As an example:
ln -s /usr/bin/gcc-4.4 /usr/bin/gcc

Peter_600 December 22, 2010 07:07

Thx. I will give it a try.

Peter_600 December 22, 2010 16:40

Indeed. The error message after closing paraview is gone. Nevertheless, still not able to see the cavity tutorial case. Can anyone check my log file?

pcaron December 22, 2010 17:22

Hi Peter!

I had a similar problem with paraview. Have you tried setting LC_ALL=C option? I think this is an issue related with the system language. You can search the forum for an appropriate explanation.

To set the value just type in the terminal
Code:

export LC_ALL=C
If this works just add it to paraFoam script.

Regards

Pablo

Peter_600 December 23, 2010 07:43

:) :) :) This it it !!! Thank you very much you solved the problem! Now I can visualize the tutorial :)

pcaron December 23, 2010 08:10

Great! Now you can show the cavity case in Christmas Evening! ;)

I am happy I could help you!

Merry Christmas and a Happy New Year to everybody!!!!

Pablo

Peter_600 December 23, 2010 13:50

Merry christmas and a happy new year to you, too and for all of you!

gygfei January 4, 2011 03:58

error during stage4
 
Quote:

Originally Posted by pcaron (Post 287866)
Hi Peter, I agree with you the script is slightly different. I recopiled 1.6-ext yesterday using an updated git version. To enable the ThirdParty Qt, as I did before, you must set a new variable. I typed this before execute stage4 script.
Code:

export  QT_THIRD_PARTY=1
Then I could compile ThirdParty-QT. But you find out how to use the system QT, so I think this info is not relevant now ;)

Regards

Pablo

hello all :

i also met error during stage4 as following:

"CMake Error at Applications/Paraview/cmake_install.cmake:70(FILE);
fiel INSTALL can't make directory
"/home/micheal/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/Paraview-3.8.1-lunuxGccDP0pt.i386/home/micheal/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.8.1/platforms/linuxGccDP0pt/lib/paraview-3.8/paraview/testing“
Not a directory
Call stack (most recent call first)
Application/cmake_install.cmake:37(INCLUDE)
cmake_install.cmake.101(INCLUDE)

make:***{install Error 1
error:bad exit from /home/michael/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.ZEbaY5(%install)

RPM build error:
bad exit status from /home/michael/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.ZEbaY5(%install)
Installing package paraview-3.8.1
error :open of /home/michael/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/i386/Paraview-3.8.1-linuxGccDP0pt.i386.rpm :no such file or directory


how could i work this out?

pcaron January 4, 2011 07:36

Hello Yanjing,

This is a strange issue. It seems there is a problem when the script tries to create a directory.

What is your linux distro? Do you have write permission in that directory?

Regards

Pablo

gygfei January 4, 2011 20:41

yes,i think so,i can creat and write files in the openfoam installing folder.

i check my system and found Qt(version 3.6.2) and paraview (version 3.6) has already been installed ,is it enough for openfoam-1.6-ext,do i still need to run stage4 if i can't solve the error happened during stage 4 process?

and as i said,i did ignore stage 4 and compile openfoam,but i got no information to show me whether openfoam compiling is finished or not and it just went back to command line ,see below:
"
.........
-ldecompositionMethods-lmeshTools -lmeshTools -lfiniteVolume -lifinite Area -llagrangian -lfaceDecompFiniteElement -lfaceDecompositionMotionSolver -lOpenFOAM -ldl -lm -o /home/yanjing/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linuxGccDP0pt/decompsePar
yanijng@yanjing:~/OpenFOAM/OpenFOAM-1.6-ext/
"
and i checked installation by command "foamInstallationTest",it shows me a critical error:

"
WARNING:gcc version doesn't match gcc supplied with this release of OPenFOAM :
supplied version:4.3.3
User version:4.4.3
MInimu required :4.3.1

gcc 4.4.3
WARNING: conflicting installations:
Openfoam settings :/bin/gcc
current path:/usr/bin/gcc
CRITICAL ERROR

gzip 1.3.12 /bin/gzip
tar 1.22 /bin/tar
icoFoam 1.6-ext  ..openfoam-1.6-ext/application/bi n/linuxGccDP0pt/icofoam

summary
base configuration ok
the foam installation contains 1 ciritical error(s ).
review the output for warning message and consult  the installation guide for trouble shooting.
done.

can anyone give me any hint?thank you!

boger January 4, 2011 21:55

This problem has been reported before. I think the "critical error" reported by foamInstallationTest is only due to the fact that the environment variable WM_COMPILER_DIR was never set. See line 514 or so of foamInstallationTest where reportExecutable is called for gcc and note that in etc/settings.* that WM_COMPILER_DIR is only set if the choice for compilerInstall is OpenFOAM, not System. So I would try setting WM_COMPILER_DIR to /usr and then try your test again.

gygfei January 6, 2011 21:22

thanks. i have ignored stage 4 and compiled openfoam.and i run buoyantBussinesqFoam,it did run ,but just haven't  get a right results( i think maybe i didn't set th e right boundary ).and i also test my paraview(ver sion 3.6),it also works. but later my linux system (ubuntu 10.04) came up an problem: "starting commo n unix printing system:cupsd",i can't get in linux  anymore! do anyone have similar problem bef ore?

Peter_600 January 7, 2011 12:37

HI!
Can someone of you test the aachen bomb tutorial (dieselFoam) provided by OF 1.6-ext.I am not sure if I have OF-16-ext succesfully compiled. I crashes after a while with the error janaf tmperature out of range. I mean the tut is supposed to run. I would really appreciate if someone of you could tell me if you are able to run this tut to the end. i am struggling with thisproblem for while now.
Thannk you.
Peter

boger January 7, 2011 12:50

I get the same result in 1.6-ext.

Peter_600 January 7, 2011 13:13

do you think it is a bug or the boundary conditions and solver settings havent been adapted to that tutorial of the new version (OF 1.6-ext)?

SMesser May 24, 2011 18:19

So it was pointed out to me that I'd accidentally threadjacked another thread
with the problems I was encountering during installation of OpenFOAM-1.6-ext. Brief summary: I've used git to download it without error, but running AllMake from OpenFOAM-1.6-ext/ThirdParty, but there seem to be some missing files. Focusing on the lines just before and at the first few error messages:

Code:

<*SNIP*>
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires: /bin/sh libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.2) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.3) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.7) libdl.so.2 libdl.so.2(GLIBC_2.0) libdl.so.2(GLIBC_2.1) libgcc_s.so.1 libgcc_s.so.1(GCC_3.0) libgcc_s.so.1(GLIBC_2.0) libm.so.6 libncurses.so.5 libstdc++.so.6 libstdc++.so.6(CXXABI_1.3) libstdc++.so.6(GLIBCXX_3.4) libstdc++.so.6(GLIBCXX_3.4.14) libstdc++.so.6(GLIBCXX_3.4.5)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /opt/openfoam16x/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/cmake-2.8.3-linuxGccDPOpt.i386
Wrote: /opt/openfoam16x/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/i586/cmake-2.8.3-linuxGccDPOpt.i586.rpm
Executing(%clean): /bin/sh -e /opt/openfoam16x/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.C13m4K
+ umask 022
+ cd /opt/openfoam16x/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd cmake-2.8.3
+ rm -rf /opt/openfoam16x/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/cmake-2.8.3-linuxGccDPOpt.i386
+ rm -rf filelists
error: failed to stat /opt/openfoam16x/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/cmake-2.8.3: No such file or directory
<*SNIP*>
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking vtf3.h usability... no
checking vtf3.h presence... no
checking for vtf3.h... no
configure: error: no vtf3.h found; check path for VTF3 package first...
<*SNIP*>
checking for platform... linux
configure: selected timer: TIMER_CYCLE_COUNTER
checking for BSD- or MS-compatible name lister (nm)... (cached) /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... (cached) BSD nm
checking for compiler instrumentation... gnu
checking if /usr/bin/nm -B demangle option --demangle works... yes
checking if /usr/bin/nm -B line numbers option --line-numbers works... yes
checking BPatch.h usability... no
checking BPatch.h presence... no
checking for BPatch.h... no
configure: error: no BPatch.h found; check path for Dyninst package first...
<*SNIP*>

(I've used the string "<*SNIP*>" to show where I'm skipping over error-free sections of the logfile.)

Following deepsterblue's recommendation, the tail of my .bashrc looks like this:
Code:

#Use the following line when compiling / recompiling OpenFOAM 1.7.1
#source /opt/openfoam171/etc/bashrc
#Use the following line when compiling / recompiling OpenFOAM 1.6-ext
source /opt/openfoam16x/OpenFOAM-1.6-ext/etc/bashrc

(OpenFOAM 1.7.1 is installed in a central location since that was the default when I used the RPM from the OpenFOAM page. OpenFOAM 1.6-ext is in a central location since I thought it should be at the same level of the hierarchy as 1.7.1)

I tried running foamInstallationTest and got the following:
Code:

Executing /opt/openfoam16x/OpenFOAM-1.6-ext/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell:              bash
Host:              johnny5
OS:                Linux version 2.6.34.8-0.2-desktop
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid      Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /opt/openfoam16x                        yes      yes
$WM_PROJECT_USER_DIR /home/sarah/OpenFOAM/sarah-1.6-ext      yes      no
$WM_THIRD_PARTY_DIR  ...nfoam16x/OpenFOAM-1.6-ext/ThirdParty  yes      yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR      /opt/openfoam16x/OpenFOAM-1.6-ext        yes  yes  yes

$FOAM_APPBIN        ...6-ext/applications/bin/linuxGccDPOpt  no        yes
$FOAM_SITE_APPBIN    ...am16x/site/1.6-ext/bin/linuxGccDPOpt  yes  yes  no
$FOAM_USER_APPBIN    ...6-ext/applications/bin/linuxGccDPOpt  yes  yes  no
$WM_DIR              /opt/openfoam16x/OpenFOAM-1.6-ext/wmake  yes  yes  yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN        ...x/OpenFOAM-1.6-ext/lib/linuxGccDPOpt  no        yes
$FOAM_SITE_LIBBIN    ...am16x/site/1.6-ext/lib/linuxGccDPOpt  yes  yes  no
$FOAM_USER_LIBBIN    ...FOAM/sarah-1.6-ext/lib/linuxGccDPOpt  yes  yes  no
$MPI_ARCH_PATH      --------- env variable not set ---------            yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version  Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
        Supplied version: 4.3.3
        User version    : 4.5.0
        Minimum required: 4.3.1

gcc      4.5.0   
WARNING:  Conflicting installations:
          OpenFOAM settings        : /bin/gcc
          current path            : /usr/bin/gcc
          CRITICAL ERROR

gzip    1.3.13    /usr/bin/gzip                                           
tar      1.23      /bin/tar                                               
icoFoam         
WARNING:  Conflicting installations:
          OpenFOAM settings        : /opt/openfoam16x/OpenFOAM-1.6-ext/applications/bin/linuxGccDPOpt/icoFoam
          current path            :
          CRITICAL ERROR

-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.

The foam installation contains 2 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

done.

Since the "gcc" error looked manageable, I tried "ln -s /usr/bin/gcc /bin/gcc" to create a symbolic link from where I thought OpenFOAM expected gcc to be to where it actually is. (Although to be fair, /usr/bin/gcc is just another link, to /usr/bin/gcc-4.5)

I tried running /opt/openfoam16x/OpenFOAM-1.6-ext/ThirdParty/AllMake again, and got the following:

Code:

This system rpm command: rpm

========================================
Starting ThirdParty Allwmake
========================================


This system rpm command: rpm

========================================
Starting ThirdParty AllMake: Stage1
========================================

Updating the ThirdParty environment variables before building package cmake-2.8.3
Package cmake-2.8.3 is already installed
Done installing package cmake-2.8.3

========================================
Done ThirdParty AllMake: Stage1
========================================


This system rpm command: rpm

========================================
Starting ThirdParty AllMake: Stage2
========================================

Updating the ThirdParty environment variables before building package openmpi-1.4.3
Package openmpi-1.4.3 is already installed
Done installing package openmpi-1.4.3

========================================
Done ThirdParty AllMake: Stage2
========================================


This system rpm command: rpm

========================================
Starting ThirdParty AllMake: Stage3
========================================

Updating the ThirdParty environment variables before building package metis-5.0pre2
Package metis-5.0pre2 is already installed
Done installing package metis-5.0pre2

Updating the ThirdParty environment variables before building package ParMGridGen-1.0
Package ParMGridGen-1.0 is already installed
Done installing package ParMGridGen-1.0

Updating the ThirdParty environment variables before building package libccmio-2.6.1
Package libccmio-2.6.1 is already installed
Done installing package libccmio-2.6.1

Updating the ThirdParty environment variables before building package mesquite-2.1.2
Package mesquite-2.1.2 is already installed
Done installing package mesquite-2.1.2

Updating the ThirdParty environment variables before building package scotch-5.1.10b
Package scotch-5.1.10b is already installed
Done installing package scotch-5.1.10b

Updating the ThirdParty environment variables before building package ParMetis-3.1.1
Package ParMetis-3.1.1 is already installed
Done installing package ParMetis-3.1.1

========================================
Done ThirdParty AllMake: Stage3
========================================


This system rpm command: rpm

========================================
Starting ThirdParty AllMake: Stage4
========================================

Using system installed QT

WARNING:
WARNING: Skipping the installation of ParaView-3.8.1.
WARNING: Please make sure the QT_BIN_DIR environment variable properly
WARNING: initialized in the file prefs.sh or prefs.csh
WARNING: The command $QT_BIN_DIR/qmake needs to be valid
WARNING:
========================================
Done ThirdParty AllMake: Stage4
========================================

========================================
Done ThirdParty Allwmake
========================================

This is notable for the claim that cmake was already successfully installed, despite the earlier error messages and the apparent lack of activity. It might also be noteworthy that the output of foamInstallationTest wasn't altered by my soft link.

Anyone got any hints? links to relevant threads?

Thanks.

deepsterblue May 24, 2011 18:33

Sarah,

It looks like your base-configuration is okay.. What's the problem?

Looks like all you need to do is an ./Allwmake in the OpenFOAM-1.6-ext directory.

SMesser May 26, 2011 10:19

erm.... hmmm... that's odd.

I didn't realize there were two separate makefiles to run. Thanks for pointing that out. (Yes, it's mentioned in one of the README's, but what with the trouble I'd had before and the error messages cited about, I'd overlooked it.)

Anywho, running Allwmake as you suggest works fine... and afterwards I can run icoDyMFoam, which had been one of my tests, given our previous conversation. There aren't any errors from Allwmake, although foamInstallationTest does give one "critical error":

Code:

Executing /opt/openfoam16x/OpenFOAM-1.6-ext/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell:              bash
Host:              johnny5
OS:                Linux version 2.6.34.8-0.2-desktop
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid      Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /opt/openfoam16x                        yes      yes
$WM_PROJECT_USER_DIR /home/sarah/OpenFOAM/sarah-1.6-ext      yes      no
$WM_THIRD_PARTY_DIR  ...nfoam16x/OpenFOAM-1.6-ext/ThirdParty  yes      yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR      /opt/openfoam16x/OpenFOAM-1.6-ext        yes  yes  yes

$FOAM_APPBIN        ...6-ext/applications/bin/linuxGccDPOpt  yes  yes  yes
$FOAM_SITE_APPBIN    ...am16x/site/1.6-ext/bin/linuxGccDPOpt  yes  yes  no
$FOAM_USER_APPBIN    ...6-ext/applications/bin/linuxGccDPOpt  yes  yes  no
$WM_DIR              /opt/openfoam16x/OpenFOAM-1.6-ext/wmake  yes  yes  yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit                                                               
-------------------------------------------------------------------------------                                                           
$FOAM_LIBBIN        ...x/OpenFOAM-1.6-ext/lib/linuxGccDPOpt  yes  yes  yes                                                               
$FOAM_SITE_LIBBIN    ...am16x/site/1.6-ext/lib/linuxGccDPOpt  yes  yes  no                                                                 
$FOAM_USER_LIBBIN    ...FOAM/sarah-1.6-ext/lib/linuxGccDPOpt  yes  yes  no                                                                 
$MPI_ARCH_PATH      ...penmpi-1.4.3/platforms/linuxGccDPOpt  yes  yes  yes                                                               
-------------------------------------------------------------------------------                                                           
                                                                                                                                           
                                                                                                                                           
Third party software                                                                                                                       
-------------------------------------------------------------------------------                                                           
Software Version  Location                                                                                                               
-------------------------------------------------------------------------------                                                           
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM                                                             
        Supplied version: 4.3.3                                                                                                           
        User version    : 4.5.0                                                                                                           
        Minimum required: 4.3.1                                                                                                           
                                                                                                                                           
gcc      4.5.0                                                                                                                             
WARNING:  Conflicting installations:                                                                                                       
          OpenFOAM settings        : /bin/gcc                                                                                             
          current path            : /usr/bin/gcc                                                                                         
          CRITICAL ERROR                                                                                                                   
                                                                                                                                           
gzip    1.3.13    /usr/bin/gzip                                                                                                           
tar      1.23      /bin/tar                                                                                                               
icoFoam  1.6-ext  ...penFOAM-1.6-ext/applications/bin/linuxGccDPOpt/icoFoam                                                               
-------------------------------------------------------------------------------                                                           
                                                                                                                                           
                                                                                                                                           
Summary                                                                                                                                   
-------------------------------------------------------------------------------                                                           
Base configuration ok.                                                                                                                     
                                                                                                                                           
The foam installation contains 1 critical error(s).                                                                                       
                                                                                                                                           
Review the output for warning messages and consult                                                                                         
the installation guide for trouble shooting.                                                                                               
                                                                                                                                           
done.

I'm not too worried about it since it seems to be working at the moment, but I might come back to this later if problems arise. (Yes, I do still have a soft link from /bin/gcc to /usr/bin/gcc, but that doesn't seem to satisfy the test script.)

Thanks for the help.


All times are GMT -4. The time now is 00:04.