CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [foam-extend.org] OpenFOAM-1.6-ext on Ubuntu 12.04 install errors (https://www.cfd-online.com/Forums/openfoam-installation/102792-openfoam-1-6-ext-ubuntu-12-04-install-errors.html)

benk June 2, 2012 12:28

OpenFOAM-1.6-ext on Ubuntu 12.04 install errors
 
Hi, I've been trying to install the latest git version of OpenFOAM-1.6-ext on a clean Ubuntu 12.04 distro, but I'm having some problems.

I was able to install everything in the ThirdParty (via rpm) and didn't run into any errors, but I get a bunch of errors (internal compiler errors) that I don't understand when doing ./Allwmake. Some of these errors are:

Code:

In file included from /usr/include/c++/4.6/algorithm:63:0,
                from lnInclude/UList.C:33,
                from lnInclude/UList.H:443,
                from lnInclude/List.H:44,
                from lnInclude/boolList.H:37,
                from lnInclude/PrimitivePatch.H:55,
                from lnInclude/primitivePatch.H:36,
                from lnInclude/polyPatch.H:52,
                from meshes/polyMesh/polyPatches/derived/cohesive/cohesivePolyPatch.H:41,
                from meshes/polyMesh/polyPatches/derived/cohesive/cohesivePolyPatch.C:27:
/usr/include/c++/4.6/bits/stl_algo.h: In function ‘void std::__inplace_stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int*, _Compare = Foam::UList<int>::less]’:
/usr/include/c++/4.6/bits/stl_algo.h:3488:5: internal compiler error: in dwarf2out_frame_debug_expr, at dwarf2out.c:2556
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
SOURCE=meshes/polyMesh/polyBoundaryMesh/polyBoundaryMeshEntries.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40 -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/polyBoundaryMeshEntries.o
SOURCE=meshes/ProcessorTopology/commSchedule.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40 -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/commSchedule.o
SOURCE=meshes/polyMesh/globalMeshData/globalMeshData.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40 -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/globalMeshData.o
The bug is not reproducible, so it is likely a hardware or OS problem.
make: *** [Make/linuxGccDPOpt/cohesivePolyPatch.o] Error 1
make: *** Waiting for unfinished jobs....
+ decompositionMethods/AllwmakeLnInclude
+ wmakeLnInclude decompositionMethods
+ wmakeLnInclude metisDecomp
+ wmakeLnInclude parMetisDecomp
+ wmakeLnInclude scotchDecomp
+ decompositionMethods/Allwmake
+ wmakeLnInclude decompositionMethods
+ wmake libso scotchDecomp

Code:

home/ben/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/OBJsurfaceFormatRunTime.o
/tmp/ccZVn3cW.s: Assembler messages:
/tmp/ccZVn3cW.s:36323: Error: unknown pseudo-op: `.ulebq28'
make: *** [Make/linuxGccDPOpt/GTSsurfaceFormatRunTime.o] Error 1
make: *** Waiting for unfinished jobs....
+ wmake libso meshTools
Making dependency list for source file cellClassification/cellClassification.C
Making dependency list for source file cellClassification/cellInfo.C
Making dependency list for source file cellQuality/cellQuality.C
Making dependency list for source file cellDist/cellDistFuncs.C
Making dependency list for source file cellDist/patchWave/patchWave.C

Code:

SOURCE=fields/fvPatchFields/basic/sliced/slicedFvPatchFields.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40 -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/src/triSurface/lnInclude    -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -IlnInclude -I. -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/slicedFvPatchFields.o
g++: internal compiler error: Segmentation fault (program as)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
make: *** [Make/linuxGccDPOpt/fixedValueFvPatchFields.o] Error 4
make: *** Waiting for unfinished jobs....

I'm using gcc-4.6, g++-4.6, cpp-4.6. I've also tried to install this with 4.5 and 4.4 compiler versions without any success.


Also, I haven't installed a new openfoam version in a while and I'm not too sure what to do with the etc/prefs.sh file. After renaming prefs.sh-EXAMPLE to prefs.sh and then sourcing etc/bashrc, I get a print out of some environment variables, some of which seem to be set and some of which aren't:

Code:

Environment variables defined for OpenMPI:
    OPENMPI_BIN_DIR      : /home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linuxGccDPOpt/bin
    OPENMPI_LIB_DIR      : /home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linuxGccDPOpt/lib
    OPENMPI_INCLUDE_DIR  : /home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linuxGccDPOpt/include
    OPENMPI_COMPILE_FLAGS : -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linuxGccDPOpt/include -pthread
    OPENMPI_LINK_FLAGS    : -pthread -L/home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linuxGccDPOpt/lib -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl

    MPI_HOME              : /home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linuxGccDPOpt
    MPI_ARCH_PATH        : /home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linuxGccDPOpt
    OPAL_PREFIX          : /home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linuxGccDPOpt
    PINC                  : -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linuxGccDPOpt/include -pthread
    PLIBS                : -pthread -L/home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linuxGccDPOpt/lib -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl
Sourcing: /home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linuxGccDPOpt/etc/mesquite-2.1.2.sh
    MESQUITE_DIR is initialized to: /home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linuxGccDPOpt
Sourcing: /home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/metis-5.0pre2/platforms/linuxGccDPOpt/etc/metis-5.0pre2.sh
    METIS_DIR is initialized to: /home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/metis-5.0pre2/platforms/linuxGccDPOpt
Sourcing: /home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMetis-3.1.1/platforms/linuxGccDPOpt/etc/ParMetis-3.1.1.sh
    PARMETIS_DIR is initialized to: /home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMetis-3.1.1/platforms/linuxGccDPOpt
Sourcing: /home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMGridGen-1.0/platforms/linuxGccDPOpt/etc/ParMGridGen-1.0.sh
    PARMGRIDGEN_DIR is initialized to: /home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMGridGen-1.0/platforms/linuxGccDPOpt
    LIBCCMIO_DIR is initialized to:
Sourcing: /home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/scotch-5.1.10b/platforms/linuxGccDPOpt/etc/scotch-5.1.10b.sh
    SCOTCH_DIR is initialized to: /home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/scotch-5.1.10b/platforms/linuxGccDPOpt
Sourcing: /home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/cmake-2.8.8/platforms/linuxGccDPOpt/etc/cmake-2.8.8.sh
    CMAKE_DIR is initialized to: /home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/cmake-2.8.8/platforms/linuxGccDPOpt
    M4_DIR is initialized to:
    BISON_DIR is initialized to:
    FLEX_DIR is initialized to:
    ZOLTAN_DIR is initialized to:
    PYTHON_DIR is initialized to:
    QT_DIR is initialized to:
    PARAVIEW_DIR is initialized to:

I'm not sure if this could be causing any problems or not.

Any tips would be much appreciated!

wyldckat June 6, 2012 19:28

Greetings Ben,

Well, you maybe missed the following error message on the first output box you've posted:
Quote:

Code:

Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
SOURCE=meshes/polyMesh/polyBoundaryMesh/polyBoundaryMeshEntries.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40 -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/polyBoundaryMeshEntries.o
SOURCE=meshes/ProcessorTopology/commSchedule.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40 -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/commSchedule.o
SOURCE=meshes/polyMesh/globalMeshData/globalMeshData.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40 -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/ben/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/globalMeshData.o
The bug is not reproducible, so it is likely a hardware or OS problem.
make: *** [Make/linuxGccDPOpt/cohesivePolyPatch.o] Error 1
make: *** Waiting for unfinished jobs....


Like the message (in bold) states, something veeery wrong is going on in your machine. Last time I saw this, I had one of the 4 memory sticks completely out-of-service :( Now I have my machine running with just 3 sticks...

I suggest two things:
  1. Install stressapptest and test your system's memory+CPU interoperability:
    Code:

    sudo apt-get install stressapptest
    stressapptest --cc_test -W

    You can also use the "-M" option for defining the number of MB of RAM to test with. For example, for 3000 MB:
    Code:

    stressapptest --cc_test -W -M 3000
  2. Boot a live CD/DVD with an older version of any Linux distribution and do the same test with stressapptest.
If both of these give you a report of a problem with your hardware, then it's very likely a bad memory module.

But it's also possible that's a problem with the hard-drive or that your Ubuntu installation is missing a beat somehow, either because of a bad install or because it's not fully compatible with your machine.

And it could also be because the CPU or memory is running too hot!

Good luck!
Bruno

Vault13dweller July 2, 2012 11:52

Hi everybody,

I'm trying to install OpenFOAM-1.6-ext on my computer with distribution Ubuntu 12.04 (32 bits) but I couldn't solve a problem in stage 3. I'm following these instructions :

http://openfoam-extend.git.sourcefor...3472fd1ef579fa

Here is the error I get (at the end of the code):

Code:

This system rpm command: rpm --force-debian

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

Package name      : metis-5.0pre2
Package URL      : http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/OLD/metis-5.0pre2.tar.gz
RPM spec file name: metis-5.0pre2.spec
Additional flags  :
Updating the ThirdParty environment variables before building package metis-5.0pre2
Package metis-5.0pre2 is already installed
Done installing package

Package name      : ParMGridGen-1.0
Package URL      : http://www.mgnet.org/mgnet/Codes/parmgridgen/ParMGridGen-1.0.tar.gz
RPM spec file name: ParMGridGen-1.0.spec
Additional flags  :
Updating the ThirdParty environment variables before building package ParMGridGen-1.0
Package ParMGridGen-1.0 is already installed
Done installing package

Package name      : libccmio-2.6.1
Package URL      : https://wci.llnl.gov/codes/visit/3rd_party/libccmio-2.6.1.tar.gz
RPM spec file name: libccmio-2.6.1.spec
Additional flags  :
Updating the ThirdParty environment variables before building package libccmio-2.6.1
Making package libccmio-2.6.1 using RPM.
Building package libccmio-2.6.1 using SPEC file : libccmio-2.6.1.spec. Optional args:
Exécution_de(%prep): /bin/sh -e /home/utilisateur/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.oaSIgG
+ umask 022
+ cd /home/utilisateur/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd /home/utilisateur/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ rm -rf libccmio-2.6.1
+ /bin/gzip -dc+ home/utilisateur/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/libccmio-2.6.1.tar.gz
/bin/tar -xf -
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd libccmio-2.6.1
+ echo Patch #0 (libccmio-2.6.1.patch_0):
Patch #0 (libccmio-2.6.1.patch_0):
+ /bin/cat -s -p1 --fuzz=0
+ exit 0
Exécution_de(%build): /bin/sh -e /home/utilisateur/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.JuDrlx
+ umask 022
+ cd /home/utilisateur/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd libccmio-2.6.1
+ [ -n gcc ]
+ export CC=gcc
+ [ -n g++ ]
+ export CXX=g++
+ [ -n  ]
+ [ -n  ]
+ [ -n  ]
+ [ -z 2 ]
+ unset RELEASE
+ unset DEBUG
+ unset STATIC
+ unset SHARED
+ [ -d libadf ]
+ cd libadf
+ RELEASE=1 SHARED=1 make -f Makefile.qmake all
..//config/runqmake ../ \
      -o Makefile.adf adf.pro 2>&1 | tee qmake.vars
..//config/runqmake: line 47: /home/utilisateur/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1/libadf/..//config/unknown/qmake: No such file or directory
make[1]: Entering directory `/home/utilisateur/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1/libadf'
make[1]: *** No rule to make target `/u/xeona04/people/prewett/src/libccmio/config/linux64_2.4-x86-glibc_2.2.5/qmake.conf', needed by `Makefile.adf'.  Stop.
make[1]: Leaving directory `/home/utilisateur/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1/libadf'
make: *** [all] Error 2
error: bad output status for /home/utilisateur/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.JuDrlx (%build)

Thank you in advance for any help

elvis July 3, 2012 03:57

Quote:

Originally Posted by Vault13dweller (Post 369322)
+ cd /home/utilisateur/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd libccmio-2.6.1
+ [ -n gcc ]
+ export CC=gcc
+ [ -n g++ ]
+ export CXX=g++
+ [ -n ]
+ [ -n ]
+ [ -n ]
+ [ -z 2 ]
+ unset RELEASE
+ unset DEBUG
+ unset STATIC
+ unset SHARED
+ [ -d libadf ]
+ cd libadf
+ RELEASE=1 SHARED=1 make -f Makefile.qmake all
..//config/runqmake ../ \
-o Makefile.adf adf.pro 2>&1 | tee qmake.vars
..//config/runqmake: line 47: /home/utilisateur/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1/libadf/..//config/unknown/qmake: No such file or directory
make[1]: Entering directory `/home/utilisateur/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1/libadf'
make[1]: *** No rule to make target `/u/xeona04/people/prewett/src/libccmio/config/linux64_2.4-x86-glibc_2.2.5/qmake.conf', needed by `Makefile.adf'. Stop.
make[1]: Leaving directory `/home/utilisateur/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1/libadf'
make: *** [all] Error 2
error: bad output status for /home/utilisateur/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.JuDrlx (%build)[/CODE]

Thank you in advance for any help

Hi,
do you follow http://openfoam-extend.git.sourcefor...cb6bbd;hb=HEAD

Vault13dweller July 3, 2012 12:59

Indeed, it seemed there was no difference between 64 and 32 bits in this installation process.

Vault13dweller July 19, 2012 17:45

This was solved with this new installation process :
http://openfoam-extend.git.sourcefor...02de56;hb=HEAD

spam3c July 27, 2012 04:27

errors in install openfoam 1.6 ext to ubuntu 12.04 32 bit
 
Hi everyone,

I am trying to install openfoam-1.6-ext to ubuntu 12.04 32 bit (upgraded from 11.10).

I am following the procedure given at

http://openfoam-extend.git.sourcefor...02de56;hb=HEAD

at line 86 I got the error

------------------------
bash: /opt/OpenFOAM-1.6-ext/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.6-ext/etc/settings.sh: No such file or directory
bash: /opt/OpenFOAM-1.6-ext/etc/aliases.sh: No such file or directory
bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory
------------------------

I thought that might not be so important and continued
and at line 91, I got

------------------------
bash: cd: /opt/OpenFOAM-1.6-ext/ThirdParty: No such file or directory
------------------------

before continuing further I would like to ask what to do?

I have checked the /opt/ folder but nothing exists there.
I could not copy the "OpenFOAM-1.6-ext" folder directly from
/home/spam3c/OpenFOAM/
to
/opt/

I am a new user in linux and openfoam.
Sorry for the dummy questions that i may ask :)

Thanks for the comments and help

mbeaudoin July 27, 2012 07:56

The instructions provided assume that your installation directory is located under ~/OpenFOAM.

You are obviously installing 1.6-ext under /opt, so you have to expect some adjustments.

Please check the "user editable" section of your file etc/bashrc. The variable 'foamInstall' is the one you need to adjust.

This necessary adjustment, and others, are profusely documented on this Forum and on various wikis all over the Web. Next time, just supply your error messages to Google for some magic...

Martin

Quote:

Originally Posted by spam3c (Post 373867)
Hi everyone,

I am trying to install openfoam-1.6-ext to ubuntu 12.04 32 bit (upgraded from 11.10).

I am following the procedure given at

http://openfoam-extend.git.sourcefor...02de56;hb=HEAD

at line 86 I got the error

------------------------
bash: /opt/OpenFOAM-1.6-ext/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.6-ext/etc/settings.sh: No such file or directory
bash: /opt/OpenFOAM-1.6-ext/etc/aliases.sh: No such file or directory
bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory
------------------------

I thought that might not be so important and continued
and at line 91, I got

------------------------
bash: cd: /opt/OpenFOAM-1.6-ext/ThirdParty: No such file or directory
------------------------

before continuing further I would like to ask what to do?

I have checked the /opt/ folder but nothing exists there.
I could not copy the "OpenFOAM-1.6-ext" folder directly from
/home/spam3c/OpenFOAM/
to
/opt/

I am a new user in linux and openfoam.
Sorry for the dummy questions that i may ask :)

Thanks for the comments and help


spam3c July 27, 2012 08:07

Thanks for the reply and google advice
Surely, I use a lot and it makes me lost sometimes.


After following the previous lines in the given procedure

The openfoam files are stored in this folder

/home/spam3c/OpenFOAM/OpenFOAM-1.6-ext

and the /home/spam3c/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
file has the following part which I guess it tries to install to my home directory

but not

to /opt/openfoam...

where my previous installation of openfoam-2.1.0 is there.


################################################## #############################
# USER EDITABLE PART
#
# either set $FOAM_INST_DIR before sourcing this file or set
# $foamInstall below to where OpenFOAM is installed
#
# Location of FOAM installation
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foamInstall=$HOME/$WM_PROJECT
# foamInstall=~$WM_PROJECT
# foamInstall=/usr/local/$WM_PROJECT
# foamInstall=/opt/$WM_PROJECT
# foamInstall=/usr/lib
#
# END OF (NORMAL) USER EDITABLE PART
################################################## ##############################

Still I get the same error, I am confused.
Thanks

mbeaudoin July 28, 2012 12:19

Basically, it looks like you are still sourcing your OF 2.1.0 environment prior to initializing your installation of 1.6-ext.

Since both installations are sharing some common basic environment variables, your 1.6-ext initialization file is looking for some files under your 2.1.0 installation, hence the error messages.

Make sure you are not activating OF from your $HOME configuration files, like from your ~/.profile or ~/.bashrc. This is a bad idea when you need to switch between various OF versions.

Martin

Quote:

Originally Posted by spam3c (Post 373915)
Thanks for the reply and google advice
Surely, I use a lot and it makes me lost sometimes.


After following the previous lines in the given procedure

The openfoam files are stored in this folder

/home/spam3c/OpenFOAM/OpenFOAM-1.6-ext

and the /home/spam3c/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
file has the following part which I guess it tries to install to my home directory

but not

to /opt/openfoam...

where my previous installation of openfoam-2.1.0 is there.


################################################## #############################
# USER EDITABLE PART
#
# either set $FOAM_INST_DIR before sourcing this file or set
# $foamInstall below to where OpenFOAM is installed
#
# Location of FOAM installation
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foamInstall=$HOME/$WM_PROJECT
# foamInstall=~$WM_PROJECT
# foamInstall=/usr/local/$WM_PROJECT
# foamInstall=/opt/$WM_PROJECT
# foamInstall=/usr/lib
#
# END OF (NORMAL) USER EDITABLE PART
################################################## ##############################

Still I get the same error, I am confused.
Thanks


atg July 30, 2012 02:58

Official build instructions not working for new 12.04 install
 
I am not sure why, but the script from Sourceforge does not result in a working build of 1.6-ext on a fresh 12.04 Ubuntu install. Third Party script #4 gives errors, and the final ./Allwmake appears to go very well until yPlusRAS (see below). I would appreciate a hint as I have now burned up at least a week of evenings and a weekend trying to get this working. I am hampered by not being able to understand the code enough to figure out the specific problem.

I reinstalled Ubuntu now and it will not work on either the 3.2.0.23, 3.2.0.26 or 3.2.0.27 kernels. So I suppose it has nothing to do with the kernel. I kept my old home folder but removed the OpenFOAM directory entirely and re-cloned it etc. per the instructions.

My environment variables seem OK:
karl@karl-Ubuntu-CFD:~/OpenFOAM/OpenFOAM-1.6-ext$ . ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/etc/settings.sh
Environment variables defined for OpenMPI:
OPENMPI_BIN_DIR : /usr/bin
OPENMPI_LIB_DIR : /usr/lib/openmpi/lib
OPENMPI_INCLUDE_DIR : /usr/lib/openmpi/include /usr/lib/openmpi/include/openmpi
OPENMPI_COMPILE_FLAGS : -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread
OPENMPI_LINK_FLAGS : -pthread -L/usr/lib/openmpi/lib -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl

MPI_HOME : /usr
MPI_ARCH_PATH : /usr
OPAL_PREFIX : /usr
PINC : -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread
PLIBS : -pthread -L/usr/lib/openmpi/lib -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linux64Gcc46DPOpt/etc/mesquite-2.1.2.sh
MESQUITE_DIR is initialized to: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linux64Gcc46DPOpt
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/metis-5.0pre2/platforms/linux64Gcc46DPOpt/etc/metis-5.0pre2.sh
METIS_DIR is initialized to: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/metis-5.0pre2/platforms/linux64Gcc46DPOpt
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMetis-3.1.1/platforms/linux64Gcc46DPOpt/etc/ParMetis-3.1.1.sh
PARMETIS_DIR is initialized to: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMetis-3.1.1/platforms/linux64Gcc46DPOpt
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMGridGen-1.0/platforms/linux64Gcc46DPOpt/etc/ParMGridGen-1.0.sh
PARMGRIDGEN_DIR is initialized to: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMGridGen-1.0/platforms/linux64Gcc46DPOpt
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/libccmio-2.6.1/platforms/linux64Gcc46DPOpt/etc/libccmio-2.6.1.sh
LIBCCMIO_DIR is initialized to: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/libccmio-2.6.1/platforms/linux64Gcc46DPOpt
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/scotch-5.1.10b/platforms/linux64Gcc46DPOpt/etc/scotch-5.1.10b.sh
SCOTCH_DIR is initialized to: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/scotch-5.1.10b/platforms/linux64Gcc46DPOpt
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/cmake-2.8.8/platforms/linux64Gcc46DPOpt/etc/cmake-2.8.8.sh
CMAKE_DIR is initialized to: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/cmake-2.8.8/platforms/linux64Gcc46DPOpt
M4_DIR is initialized to:
BISON_DIR is initialized to:
FLEX_DIR is initialized to:
ZOLTAN_DIR is initialized to:
PYTHON_DIR is initialized to:
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/qt-everywhere-opensource-src-4.7.4/platforms/linux64Gcc46DPOpt/etc/qt-everywhere-opensource-src-4.7.4.sh
QT_DIR is initialized to: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/qt-everywhere-opensource-src-4.7.4/platforms/linux64Gcc46DPOpt
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.12.0/platforms/linux64Gcc46DPOpt/etc/ParaView-3.12.0.sh
PARAVIEW_DIR is initialized to: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.12.0/platforms/linux64Gcc46DPOpt
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/etc/aliases.sh
karl@karl-Ubuntu-CFD:~/OpenFOAM/OpenFOAM-1.6-ext$


I looked through the third party logs and it seems that #4 is where the trouble begins. It completes, but the final ./Allwmake script hangs up reliably on the incompressible yPlusRAS:

Making dependency list for source file yPlusRAS.C
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/incompressible/LES/LESModel -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/LES/LESdeltas/lnInclude -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/transportModels -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc46DPOpt/yPlusLES.o -L/home/karl/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64Gcc46DPOpt \
-lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/karl/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64Gcc46DPOpt/yPlusLES
SOURCE=yPlusRAS.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/transportModels -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/mutWallFunctions -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/basic/lnInclude -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc46DPOpt/yPlusRAS.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/transportModels -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/mutWallFunctions -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/basic/lnInclude -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc46DPOpt/yPlusRAS.o -L/home/karl/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64Gcc46DPOpt \
-lincompressibleTransportModels -lincompressibleRASModels -lbasicThermophysicalModels -lspecie -lcompressibleRASModels -lfiniteVolume -lmeshTools -lsampling -lOpenFOAM -liberty -ldl -lm -o /home/karl/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64Gcc46DPOpt/yPlusRAS

The terminal cursor just keeps blinking indefinitely (>12 hours) at this point and there is no processor or network activity. This is an four core machine building on eight threads. I actually had 1.6-ext working on it not long ago, but a kernel update appeared to kill it.

I think the problem is in the fourth ThirdParty build script, which gives me this sort of thing for several pages (see below), even though it completes the script. Is this a problem building Qt? Any input appreciated.

Thanks in Advance; I hope I have included enough information to answer the question.
Karl

g++ -m64 -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/qt-everywhere-opensource-src-4.7.4/platforms/linux64Gcc46DPOpt/lib -Wl,-rpath,/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/qt-everywhere-opensource-src-4.7.4/platforms/linux64Gcc46DPOpt/lib -shared -Wl,-soname,libQtSvg.so.4 -o libQtSvg.so.4.7.4 .obj/release-shared/qsvggraphics.o .obj/release-shared/qsvghandler.o .obj/release-shared/qsvgnode.o .obj/release-shared/qsvgstructure.o .obj/release-shared/qsvgstyle.o .obj/release-shared/qsvgfont.o .obj/release-shared/qsvgtinydocument.o .obj/release-shared/qsvgrenderer.o .obj/release-shared/qsvgwidget.o .obj/release-shared/qgraphicssvgitem.o .obj/release-shared/qsvggenerator.o .obj/release-shared/moc_qsvgwidget.o -L/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/lib -lQtGui -L/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/lib -L/usr/X11R6/lib64 -lQtCore -lpthread -lz
ln -s libQtSvg.so.4.7.4 libQtSvg.so
ln -s libQtSvg.so.4.7.4 libQtSvg.so.4
ln -s libQtSvg.so.4.7.4 libQtSvg.so.4.7
rm -f ../../lib/libQtSvg.so.4.7.4
rm -f ../../lib/libQtSvg.so
rm -f ../../lib/libQtSvg.so.4
rm -f ../../lib/libQtSvg.so.4.7
mv -f libQtSvg.so.4.7.4 libQtSvg.so libQtSvg.so.4 libQtSvg.so.4.7 ../../lib/
make[1]: Leaving directory `/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/svg'
cd src/script/ && make -f Makefile
make[1]: Entering directory `/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/script'
/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/bin/qmake -spec ../../mkspecs/linux-g++-64 -o Makefile script.pro
make[1]: Leaving directory `/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/script'
make[1]: Entering directory `/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/script'
g++ -c -m64 -fPIC -Wall -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -fno-stack-protector -O2 -fvisibility=hidden -fvisibility-inlines-hidden -D_REENTRANT -fPIC -DQT_SHARED -DJSC=QTJSC -Djscyyparse=qtjscyyparse -Djscyylex=qtjscyylex -Djscyyerror=qtjscyyerror -DWTF=QTWTF -DQT_BUILD_SCRIPT_LIB -DQT_NO_USING_NAMESPACE -DQLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DBUILDING_QT__=1 -DWTF_USE_ACCELERATED_COMPOSITING -DNDEBUG -DBUILDING_QT__ -DBUILDING_JavaScriptCore -DBUILDING_WTF -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DNDEBUG -DJS_NO_EXPORT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++-64 -I. -I../../include/QtCore -I../../include -I../3rdparty/javascriptcore/JavaScriptCore -I../3rdparty/javascriptcore -I../3rdparty/javascriptcore/JavaScriptCore/assembler -I../3rdparty/javascriptcore/JavaScriptCore/bytecode -I../3rdparty/javascriptcore/JavaScriptCore/bytecompiler -I../3rdparty/javascriptcore/JavaScriptCore/debugger -I../3rdparty/javascriptcore/JavaScriptCore/interpreter -I../3rdparty/javascriptcore/JavaScriptCore/jit -I../3rdparty/javascriptcore/JavaScriptCore/parser -I../3rdparty/javascriptcore/JavaScriptCore/pcre -I../3rdparty/javascriptcore/JavaScriptCore/profiler -I../3rdparty/javascriptcore/JavaScriptCore/runtime -I../3rdparty/javascriptcore/JavaScriptCore/wrec -I../3rdparty/javascriptcore/JavaScriptCore/wtf -I../3rdparty/javascriptcore/JavaScriptCore/wtf/symbian -I../3rdparty/javascriptcore/JavaScriptCore/wtf/unicode -I../3rdparty/javascriptcore/JavaScriptCore/yarr -I../3rdparty/javascriptcore/JavaScriptCore/API -I../3rdparty/javascriptcore/JavaScriptCore/ForwardingHeaders -I../3rdparty/javascriptcore/JavaScriptCore/generated -I../../include/QtScript -I.rcc/release-shared -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/3rdparty/javascriptcore/WebKit/qt/Api -I../3rdparty/javascriptcore/JavaScriptCore/pcre -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/3rdparty/javascriptcore/JavaScriptCore/tmp -I../3rdparty/javascriptcore/JavaScriptCore -I../3rdparty/javascriptcore/JavaScriptCore/parser -I../3rdparty/javascriptcore/JavaScriptCore/bytecompiler -I../3rdparty/javascriptcore/JavaScriptCore/debugger -I../3rdparty/javascriptcore/JavaScriptCore/runtime -I../3rdparty/javascriptcore/JavaScriptCore/wtf -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/script/../3rdparty/javascriptcore/JavaScriptCore/unicode -I../3rdparty/javascriptcore/JavaScriptCore/interpreter -I../3rdparty/javascriptcore/JavaScriptCore/jit -I../3rdparty/javascriptcore/JavaScriptCore/profiler -I../3rdparty/javascriptcore/JavaScriptCore/wrec -I../3rdparty/javascriptcore/JavaScriptCore/API -I../3rdparty/javascriptcore/JavaScriptCore/bytecode -I../3rdparty/javascriptcore/JavaScriptCore/assembler -I../3rdparty/javascriptcore/JavaScriptCore/generated -I. -Iparser -I.moc/release-shared -o obj/release/pcre_compile.o ../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_compile.cpp
g++ -c -m64 -fPIC -Wall -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -fno-stack-protector -O2 -fvisibility=hidden -fvisibility-inlines-hidden -D_REENTRANT -fPIC -DQT_SHARED -DJSC=QTJSC -Djscyyparse=qtjscyyparse -Djscyylex=qtjscyylex -Djscyyerror=qtjscyyerror -DWTF=QTWTF -DQT_BUILD_SCRIPT_LIB -DQT_NO_USING_NAMESPACE -DQLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DBUILDING_QT__=1 -DWTF_USE_ACCELERATED_COMPOSITING -DNDEBUG -DBUILDING_QT__ -DBUILDING_JavaScriptCore -DBUILDING_WTF -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DNDEBUG -DJS_NO_EXPORT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++-64 -I. -I../../include/QtCore -I../../include -I../3rdparty/javascriptcore/JavaScriptCore -I../3rdparty/javascriptcore -I../3rdparty/javascriptcore/JavaScriptCore/assembler -I../3rdparty/javascriptcore/JavaScriptCore/bytecode -I../3rdparty/javascriptcore/JavaScriptCore/bytecompiler -I../3rdparty/javascriptcore/JavaScriptCore/debugger -I../3rdparty/javascriptcore/JavaScriptCore/interpreter -I../3rdparty/javascriptcore/JavaScriptCore/jit -I../3rdparty/javascriptcore/JavaScriptCore/parser -I../3rdparty/javascriptcore/JavaScriptCore/pcre -I../3rdparty/javascriptcore/JavaScriptCore/profiler -I../3rdparty/javascriptcore/JavaScriptCore/runtime -I../3rdparty/javascriptcore/JavaScriptCore/wrec -I../3rdparty/javascriptcore/JavaScriptCore/wtf -I../3rdparty/javascriptcore/JavaScriptCore/wtf/symbian -I../3rdparty/javascriptcore/JavaScriptCore/wtf/unicode -I../3rdparty/javascriptcore/JavaScriptCore/yarr -I../3rdparty/javascriptcore/JavaScriptCore/API -I../3rdparty/javascriptcore/JavaScriptCore/ForwardingHeaders -I../3rdparty/javascriptcore/JavaScriptCore/generated -I../../include/QtScript -I.rcc/release-shared -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/3rdparty/javascriptcore/WebKit/qt/Api -I../3rdparty/javascriptcore/JavaScriptCore/pcre -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/3rdparty/javascriptcore/JavaScriptCore/tmp -I../3rdparty/javascriptcore/JavaScriptCore -I../3rdparty/javascriptcore/JavaScriptCore/parser -I../3rdparty/javascriptcore/JavaScriptCore/bytecompiler -I../3rdparty/javascriptcore/JavaScriptCore/debugger -I../3rdparty/javascriptcore/JavaScriptCore/runtime -I../3rdparty/javascriptcore/JavaScriptCore/wtf -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/script/../3rdparty/javascriptcore/JavaScriptCore/unicode -I../3rdparty/javascriptcore/JavaScriptCore/interpreter -I../3rdparty/javascriptcore/JavaScriptCore/jit -I../3rdparty/javascriptcore/JavaScriptCore/profiler -I../3rdparty/javascriptcore/JavaScriptCore/wrec -I../3rdparty/javascriptcore/JavaScriptCore/API -I../3rdparty/javascriptcore/JavaScriptCore/bytecode -I../3rdparty/javascriptcore/JavaScriptCore/assembler -I../3rdparty/javascriptcore/JavaScriptCore/generated -I. -Iparser -I.moc/release-shared -o obj/release/pcre_exec.o ../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_exec.cpp
../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_compile.cpp: In function 'bool compileBranch(int, int*, unsigned char**, const UChar**, const UChar*, ErrorCode*, int*, int*, CompileData&)':
../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_compile.cpp:582:18: warning: variable 'tempptr' set but not used [-Wunused-but-set-variable]
g++ -c -m64 -fPIC -Wall -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -fno-stack-protector -O2 -fvisibility=hidden -fvisibility-inlines-hidden -D_REENTRANT -fPIC

...etc

spam3c July 30, 2012 09:13

1 Attachment(s)
Thanks for the comment, Martin
After that, I have used aliases for the two installations and "allwmake" worked fine except the following error.
I got this error when I ran the foamInstallationTest.
------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.3
User version : 4.6.3
Minimum required: 4.3.1

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

Somewhere, I have read that this is not an important error and will not affect my openfoam's working. Still, I would like to be sure, and that is why I ask.
I have also attached my make.log file.
Thanks a lot for your kind help.



Quote:

Originally Posted by mbeaudoin (Post 374117)
Basically, it looks like you are still sourcing your OF 2.1.0 environment prior to initializing your installation of 1.6-ext.

Since both installations are sharing some common basic environment variables, your 1.6-ext initialization file is looking for some files under your 2.1.0 installation, hence the error messages.

Make sure you are not activating OF from your $HOME configuration files, like from your ~/.profile or ~/.bashrc. This is a bad idea when you need to switch between various OF versions.

Martin


JackW August 8, 2012 06:42

Hi,

I am following the same instructions: http://openfoam-extend.git.sourcefor...cb6bbd;hb=HEAD

...and I get the same problem as atg (it hangs up on the incompressible yplusRAS)

atg, I was wondering if you have solved your issue?

...also not all of the initial downloads can be found, (lines 10-20) -> I wondered if this was a major issue?

I have had OF-2.1.1 and OF-1.7 on this machine already. I am a relative newcomer to linux and so if there was something I was supposed to do in between installations you can just about guarantee I won't have done it! (except for sudo apt-get remove).

Or anyone, I was wondering if there is something I am supposed to do prior to this installation process?

Thank you for any help you can give me!

Jack

atg August 11, 2012 23:49

Sorry Jack,

I never did resolve that issue. It's too bad, because it actually worked for me before one of the latest Ubuntu updates seemed to screw it up. One of the first instructions is to sudo apt-get update your Ubuntu installation, so it leaves the OF package vulnerable to any changes Ubuntu might implement which create problems for the installer instructions.

Fortunately there are a bunch of .iso images out there that will get you up and running in no time. I used one from the OF workshop 7 with various versions installed. It is old 10.04 Ubuntu but no matter. You can run it from the USB or install it. I think this should work:

http://sourceforge.net/projects/open...x.iso/download

Now if I can only get myself to an actual workshop somehow...

mbeaudoin August 13, 2012 12:08

You can easily forget about 'foamInstallationTest'.

Martin


Quote:

Originally Posted by spam3c (Post 374351)
Thanks for the comment, Martin
After that, I have used aliases for the two installations and "allwmake" worked fine except the following error.
I got this error when I ran the foamInstallationTest.
------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.3
User version : 4.6.3
Minimum required: 4.3.1

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

Somewhere, I have read that this is not an important error and will not affect my openfoam's working. Still, I would like to be sure, and that is why I ask.
I have also attached my make.log file.
Thanks a lot for your kind help.


mbeaudoin August 13, 2012 12:20

@yPlusRAS:
On my up-to-date Ubuntu 12.04 32-bits machine, with merely 1GB of RAM, this application compiles under 7s.

Out of curiosity, how much memory do you have on your system?

What is the value of this environment variable $WM_NCOMPPROCS ?

As for the rest of your logs, those are normal compilation output messages, not error messages.

For your information, AllMake.stage4 is for compiling QT and Paraview. This has nothing to do with yPlusRAS.

Martin

Quote:

Originally Posted by atg (Post 374281)
I am not sure why, but the script from Sourceforge does not result in a working build of 1.6-ext on a fresh 12.04 Ubuntu install. Third Party script #4 gives errors, and the final ./Allwmake appears to go very well until yPlusRAS (see below). I would appreciate a hint as I have now burned up at least a week of evenings and a weekend trying to get this working. I am hampered by not being able to understand the code enough to figure out the specific problem.

I reinstalled Ubuntu now and it will not work on either the 3.2.0.23, 3.2.0.26 or 3.2.0.27 kernels. So I suppose it has nothing to do with the kernel. I kept my old home folder but removed the OpenFOAM directory entirely and re-cloned it etc. per the instructions.

My environment variables seem OK:
karl@karl-Ubuntu-CFD:~/OpenFOAM/OpenFOAM-1.6-ext$ . ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/etc/settings.sh
Environment variables defined for OpenMPI:
OPENMPI_BIN_DIR : /usr/bin
OPENMPI_LIB_DIR : /usr/lib/openmpi/lib
OPENMPI_INCLUDE_DIR : /usr/lib/openmpi/include /usr/lib/openmpi/include/openmpi
OPENMPI_COMPILE_FLAGS : -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread
OPENMPI_LINK_FLAGS : -pthread -L/usr/lib/openmpi/lib -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl

MPI_HOME : /usr
MPI_ARCH_PATH : /usr
OPAL_PREFIX : /usr
PINC : -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread
PLIBS : -pthread -L/usr/lib/openmpi/lib -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linux64Gcc46DPOpt/etc/mesquite-2.1.2.sh
MESQUITE_DIR is initialized to: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linux64Gcc46DPOpt
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/metis-5.0pre2/platforms/linux64Gcc46DPOpt/etc/metis-5.0pre2.sh
METIS_DIR is initialized to: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/metis-5.0pre2/platforms/linux64Gcc46DPOpt
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMetis-3.1.1/platforms/linux64Gcc46DPOpt/etc/ParMetis-3.1.1.sh
PARMETIS_DIR is initialized to: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMetis-3.1.1/platforms/linux64Gcc46DPOpt
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMGridGen-1.0/platforms/linux64Gcc46DPOpt/etc/ParMGridGen-1.0.sh
PARMGRIDGEN_DIR is initialized to: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMGridGen-1.0/platforms/linux64Gcc46DPOpt
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/libccmio-2.6.1/platforms/linux64Gcc46DPOpt/etc/libccmio-2.6.1.sh
LIBCCMIO_DIR is initialized to: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/libccmio-2.6.1/platforms/linux64Gcc46DPOpt
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/scotch-5.1.10b/platforms/linux64Gcc46DPOpt/etc/scotch-5.1.10b.sh
SCOTCH_DIR is initialized to: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/scotch-5.1.10b/platforms/linux64Gcc46DPOpt
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/cmake-2.8.8/platforms/linux64Gcc46DPOpt/etc/cmake-2.8.8.sh
CMAKE_DIR is initialized to: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/cmake-2.8.8/platforms/linux64Gcc46DPOpt
M4_DIR is initialized to:
BISON_DIR is initialized to:
FLEX_DIR is initialized to:
ZOLTAN_DIR is initialized to:
PYTHON_DIR is initialized to:
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/qt-everywhere-opensource-src-4.7.4/platforms/linux64Gcc46DPOpt/etc/qt-everywhere-opensource-src-4.7.4.sh
QT_DIR is initialized to: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/qt-everywhere-opensource-src-4.7.4/platforms/linux64Gcc46DPOpt
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.12.0/platforms/linux64Gcc46DPOpt/etc/ParaView-3.12.0.sh
PARAVIEW_DIR is initialized to: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.12.0/platforms/linux64Gcc46DPOpt
Sourcing: /home/karl/OpenFOAM/OpenFOAM-1.6-ext/etc/aliases.sh
karl@karl-Ubuntu-CFD:~/OpenFOAM/OpenFOAM-1.6-ext$


I looked through the third party logs and it seems that #4 is where the trouble begins. It completes, but the final ./Allwmake script hangs up reliably on the incompressible yPlusRAS:

Making dependency list for source file yPlusRAS.C
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/incompressible/LES/LESModel -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/LES/LESdeltas/lnInclude -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/transportModels -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc46DPOpt/yPlusLES.o -L/home/karl/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64Gcc46DPOpt \
-lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/karl/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64Gcc46DPOpt/yPlusLES
SOURCE=yPlusRAS.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/transportModels -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/mutWallFunctions -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/basic/lnInclude -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc46DPOpt/yPlusRAS.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/transportModels -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/mutWallFunctions -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/basic/lnInclude -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc46DPOpt/yPlusRAS.o -L/home/karl/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64Gcc46DPOpt \
-lincompressibleTransportModels -lincompressibleRASModels -lbasicThermophysicalModels -lspecie -lcompressibleRASModels -lfiniteVolume -lmeshTools -lsampling -lOpenFOAM -liberty -ldl -lm -o /home/karl/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64Gcc46DPOpt/yPlusRAS

The terminal cursor just keeps blinking indefinitely (>12 hours) at this point and there is no processor or network activity. This is an four core machine building on eight threads. I actually had 1.6-ext working on it not long ago, but a kernel update appeared to kill it.

I think the problem is in the fourth ThirdParty build script, which gives me this sort of thing for several pages (see below), even though it completes the script. Is this a problem building Qt? Any input appreciated.

Thanks in Advance; I hope I have included enough information to answer the question.
Karl

g++ -m64 -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/qt-everywhere-opensource-src-4.7.4/platforms/linux64Gcc46DPOpt/lib -Wl,-rpath,/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/qt-everywhere-opensource-src-4.7.4/platforms/linux64Gcc46DPOpt/lib -shared -Wl,-soname,libQtSvg.so.4 -o libQtSvg.so.4.7.4 .obj/release-shared/qsvggraphics.o .obj/release-shared/qsvghandler.o .obj/release-shared/qsvgnode.o .obj/release-shared/qsvgstructure.o .obj/release-shared/qsvgstyle.o .obj/release-shared/qsvgfont.o .obj/release-shared/qsvgtinydocument.o .obj/release-shared/qsvgrenderer.o .obj/release-shared/qsvgwidget.o .obj/release-shared/qgraphicssvgitem.o .obj/release-shared/qsvggenerator.o .obj/release-shared/moc_qsvgwidget.o -L/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/lib -lQtGui -L/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/lib -L/usr/X11R6/lib64 -lQtCore -lpthread -lz
ln -s libQtSvg.so.4.7.4 libQtSvg.so
ln -s libQtSvg.so.4.7.4 libQtSvg.so.4
ln -s libQtSvg.so.4.7.4 libQtSvg.so.4.7
rm -f ../../lib/libQtSvg.so.4.7.4
rm -f ../../lib/libQtSvg.so
rm -f ../../lib/libQtSvg.so.4
rm -f ../../lib/libQtSvg.so.4.7
mv -f libQtSvg.so.4.7.4 libQtSvg.so libQtSvg.so.4 libQtSvg.so.4.7 ../../lib/
make[1]: Leaving directory `/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/svg'
cd src/script/ && make -f Makefile
make[1]: Entering directory `/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/script'
/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/bin/qmake -spec ../../mkspecs/linux-g++-64 -o Makefile script.pro
make[1]: Leaving directory `/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/script'
make[1]: Entering directory `/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/script'
g++ -c -m64 -fPIC -Wall -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -fno-stack-protector -O2 -fvisibility=hidden -fvisibility-inlines-hidden -D_REENTRANT -fPIC -DQT_SHARED -DJSC=QTJSC -Djscyyparse=qtjscyyparse -Djscyylex=qtjscyylex -Djscyyerror=qtjscyyerror -DWTF=QTWTF -DQT_BUILD_SCRIPT_LIB -DQT_NO_USING_NAMESPACE -DQLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DBUILDING_QT__=1 -DWTF_USE_ACCELERATED_COMPOSITING -DNDEBUG -DBUILDING_QT__ -DBUILDING_JavaScriptCore -DBUILDING_WTF -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DNDEBUG -DJS_NO_EXPORT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++-64 -I. -I../../include/QtCore -I../../include -I../3rdparty/javascriptcore/JavaScriptCore -I../3rdparty/javascriptcore -I../3rdparty/javascriptcore/JavaScriptCore/assembler -I../3rdparty/javascriptcore/JavaScriptCore/bytecode -I../3rdparty/javascriptcore/JavaScriptCore/bytecompiler -I../3rdparty/javascriptcore/JavaScriptCore/debugger -I../3rdparty/javascriptcore/JavaScriptCore/interpreter -I../3rdparty/javascriptcore/JavaScriptCore/jit -I../3rdparty/javascriptcore/JavaScriptCore/parser -I../3rdparty/javascriptcore/JavaScriptCore/pcre -I../3rdparty/javascriptcore/JavaScriptCore/profiler -I../3rdparty/javascriptcore/JavaScriptCore/runtime -I../3rdparty/javascriptcore/JavaScriptCore/wrec -I../3rdparty/javascriptcore/JavaScriptCore/wtf -I../3rdparty/javascriptcore/JavaScriptCore/wtf/symbian -I../3rdparty/javascriptcore/JavaScriptCore/wtf/unicode -I../3rdparty/javascriptcore/JavaScriptCore/yarr -I../3rdparty/javascriptcore/JavaScriptCore/API -I../3rdparty/javascriptcore/JavaScriptCore/ForwardingHeaders -I../3rdparty/javascriptcore/JavaScriptCore/generated -I../../include/QtScript -I.rcc/release-shared -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/3rdparty/javascriptcore/WebKit/qt/Api -I../3rdparty/javascriptcore/JavaScriptCore/pcre -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/3rdparty/javascriptcore/JavaScriptCore/tmp -I../3rdparty/javascriptcore/JavaScriptCore -I../3rdparty/javascriptcore/JavaScriptCore/parser -I../3rdparty/javascriptcore/JavaScriptCore/bytecompiler -I../3rdparty/javascriptcore/JavaScriptCore/debugger -I../3rdparty/javascriptcore/JavaScriptCore/runtime -I../3rdparty/javascriptcore/JavaScriptCore/wtf -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/script/../3rdparty/javascriptcore/JavaScriptCore/unicode -I../3rdparty/javascriptcore/JavaScriptCore/interpreter -I../3rdparty/javascriptcore/JavaScriptCore/jit -I../3rdparty/javascriptcore/JavaScriptCore/profiler -I../3rdparty/javascriptcore/JavaScriptCore/wrec -I../3rdparty/javascriptcore/JavaScriptCore/API -I../3rdparty/javascriptcore/JavaScriptCore/bytecode -I../3rdparty/javascriptcore/JavaScriptCore/assembler -I../3rdparty/javascriptcore/JavaScriptCore/generated -I. -Iparser -I.moc/release-shared -o obj/release/pcre_compile.o ../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_compile.cpp
g++ -c -m64 -fPIC -Wall -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -fno-stack-protector -O2 -fvisibility=hidden -fvisibility-inlines-hidden -D_REENTRANT -fPIC -DQT_SHARED -DJSC=QTJSC -Djscyyparse=qtjscyyparse -Djscyylex=qtjscyylex -Djscyyerror=qtjscyyerror -DWTF=QTWTF -DQT_BUILD_SCRIPT_LIB -DQT_NO_USING_NAMESPACE -DQLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DBUILDING_QT__=1 -DWTF_USE_ACCELERATED_COMPOSITING -DNDEBUG -DBUILDING_QT__ -DBUILDING_JavaScriptCore -DBUILDING_WTF -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DNDEBUG -DJS_NO_EXPORT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++-64 -I. -I../../include/QtCore -I../../include -I../3rdparty/javascriptcore/JavaScriptCore -I../3rdparty/javascriptcore -I../3rdparty/javascriptcore/JavaScriptCore/assembler -I../3rdparty/javascriptcore/JavaScriptCore/bytecode -I../3rdparty/javascriptcore/JavaScriptCore/bytecompiler -I../3rdparty/javascriptcore/JavaScriptCore/debugger -I../3rdparty/javascriptcore/JavaScriptCore/interpreter -I../3rdparty/javascriptcore/JavaScriptCore/jit -I../3rdparty/javascriptcore/JavaScriptCore/parser -I../3rdparty/javascriptcore/JavaScriptCore/pcre -I../3rdparty/javascriptcore/JavaScriptCore/profiler -I../3rdparty/javascriptcore/JavaScriptCore/runtime -I../3rdparty/javascriptcore/JavaScriptCore/wrec -I../3rdparty/javascriptcore/JavaScriptCore/wtf -I../3rdparty/javascriptcore/JavaScriptCore/wtf/symbian -I../3rdparty/javascriptcore/JavaScriptCore/wtf/unicode -I../3rdparty/javascriptcore/JavaScriptCore/yarr -I../3rdparty/javascriptcore/JavaScriptCore/API -I../3rdparty/javascriptcore/JavaScriptCore/ForwardingHeaders -I../3rdparty/javascriptcore/JavaScriptCore/generated -I../../include/QtScript -I.rcc/release-shared -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/3rdparty/javascriptcore/WebKit/qt/Api -I../3rdparty/javascriptcore/JavaScriptCore/pcre -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/3rdparty/javascriptcore/JavaScriptCore/tmp -I../3rdparty/javascriptcore/JavaScriptCore -I../3rdparty/javascriptcore/JavaScriptCore/parser -I../3rdparty/javascriptcore/JavaScriptCore/bytecompiler -I../3rdparty/javascriptcore/JavaScriptCore/debugger -I../3rdparty/javascriptcore/JavaScriptCore/runtime -I../3rdparty/javascriptcore/JavaScriptCore/wtf -I/home/karl/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/script/../3rdparty/javascriptcore/JavaScriptCore/unicode -I../3rdparty/javascriptcore/JavaScriptCore/interpreter -I../3rdparty/javascriptcore/JavaScriptCore/jit -I../3rdparty/javascriptcore/JavaScriptCore/profiler -I../3rdparty/javascriptcore/JavaScriptCore/wrec -I../3rdparty/javascriptcore/JavaScriptCore/API -I../3rdparty/javascriptcore/JavaScriptCore/bytecode -I../3rdparty/javascriptcore/JavaScriptCore/assembler -I../3rdparty/javascriptcore/JavaScriptCore/generated -I. -Iparser -I.moc/release-shared -o obj/release/pcre_exec.o ../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_exec.cpp
../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_compile.cpp: In function 'bool compileBranch(int, int*, unsigned char**, const UChar**, const UChar*, ErrorCode*, int*, int*, CompileData&)':
../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_compile.cpp:582:18: warning: variable 'tempptr' set but not used [-Wunused-but-set-variable]
g++ -c -m64 -fPIC -Wall -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -fno-stack-protector -O2 -fvisibility=hidden -fvisibility-inlines-hidden -D_REENTRANT -fPIC

...etc


mechy August 28, 2012 04:52

Quote:

Originally Posted by elvis (Post 369450)

Dear Elvis
when I run . ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
I encounter bellow error what should I do ?

bash: /home/aminiyasser/OpenFOAM/OpenFOAM-1.6-ext/bin/foamEtcFile: Permission denied
bash: /home/aminiyasser/OpenFOAM/OpenFOAM-1.6-ext/bin/foamCleanPath: Permission denied
bash: /home/aminiyasser/OpenFOAM/OpenFOAM-1.6-ext/bin/foamCleanPath: Permission denied
bash: /home/aminiyasser/OpenFOAM/OpenFOAM-1.6-ext/bin/foamCleanPath: Permission denied
bash: /home/aminiyasser/OpenFOAM/OpenFOAM-1.6-ext/bin/foamCleanPath: Permission denied
bash: /home/aminiyasser/OpenFOAM/OpenFOAM-1.6-ext/bin/foamCleanPath: Permission denied
bash: /home/aminiyasser/OpenFOAM/OpenFOAM-1.6-ext/bin/foamCleanPath: Permission denied



Best Regards

elvis August 28, 2012 05:37

Hi,

did you try to change the permission via chmod (hope you have got the rights to do so!?) user: 7=excute&read&write group: 5=excute&read other: 1=excute
sudo chmod -R 751 /home/aminiyasser/OpenFOAM/OpenFOAM-1.6-ext/bin

atg August 30, 2012 15:25

I am not certain, but I think the problem I was having may have been due to the fact that this command (from the instructions) no longer appears to work:

sudo apt-get install zlib1g-dev

So if one uses the "all in one" command:

# You can also install everything at once:
sudo apt-get install git flex bison rpm g++ zlib1g-dev binutils-dev \
openmpi-bin libopenmpi-dev libxext-dev libxt-dev libxrender-dev \
libstdc++5 libgl1-mesa-dev libglu1-mesa-dev


one can miss the fact that one package did not install properly.

I downloaded it and installed it manually: http://packages.ubuntu.com/dapper/zlib1g-dev

Now stage 4 builds again.

Of course I could be totally wrong; if I knew anything I would not be asking for help here.

Thanks for your reply.

To answer your question, I tried it twice on two different machines, one with four core Xeon E3-1280 and 16Gb RAM, and one Core 2 Duo with 4Gb Ram, set to varying numbers of compiler processors. Both were failing at the same place. Now it is working on the Core2Duo machine in 32 bit again. I am debating whether to mess with the working 10.04 installation on the faster machine, as I have cufflink working over there now and it just doesn't seem worth the trouble.

Quote:

Originally Posted by mbeaudoin (Post 376843)
@yPlusRAS:
On my up-to-date Ubuntu 12.04 32-bits machine, with merely 1GB of RAM, this application compiles under 7s.

Out of curiosity, how much memory do you have on your system?

What is the value of this environment variable $WM_NCOMPPROCS ?

As for the rest of your logs, those are normal compilation output messages, not error messages.

For your information, AllMake.stage4 is for compiling QT and Paraview. This has nothing to do with yPlusRAS.

Martin


JackW August 30, 2012 16:15

Quote:

Originally Posted by atg (Post 376631)
Sorry Jack,

I never did resolve that issue. It's too bad, because it actually worked for me before one of the latest Ubuntu updates seemed to screw it up. One of the first instructions is to sudo apt-get update your Ubuntu installation, so it leaves the OF package vulnerable to any changes Ubuntu might implement which create problems for the installer instructions.

Fortunately there are a bunch of .iso images out there that will get you up and running in no time. I used one from the OF workshop 7 with various versions installed. It is old 10.04 Ubuntu but no matter. You can run it from the USB or install it. I think this should work:

http://sourceforge.net/projects/open...x.iso/download

Now if I can only get myself to an actual workshop somehow...

Thanks for this!

mechy September 1, 2012 02:42

Quote:

Originally Posted by elvis (Post 379066)
Hi,

did you try to change the permission via chmod (hope you have got the rights to do so!?) user: 7=excute&read&write group: 5=excute&read other: 1=excute
sudo chmod -R 751 /home/aminiyasser/OpenFOAM/OpenFOAM-1.6-ext/bin

Hi
when I execute sudo chmod -R 751 /home/aminiyasser/OpenFOAM/OpenFOAM-1.6-ext/bin and then execute . ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc the following comment is shown but when I want to Compile the ThirdParty packages and execute the ./AllMake.stage1 >& log.AllMake.stage1 the linux did not ant thing
please help me to install OF-1.6ext
I have downloaded the Linux 12.04 at the Ubuntu site and boot it on flash memory and then install on my PC can you tell me why I encounter some errors which others person did not occur to them ?





aminiyasser@aminiyasser-pc:~$ . ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
Sourcing: /home/aminiyasser/OpenFOAM/OpenFOAM-1.6-ext/etc/settings.sh
Environment variables defined for OpenMPI:
OPENMPI_BIN_DIR : /usr/bin
OPENMPI_LIB_DIR : /usr/lib/openmpi/lib
OPENMPI_INCLUDE_DIR : /usr/lib/openmpi/include /usr/lib/openmpi/include/openmpi
OPENMPI_COMPILE_FLAGS : -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread
OPENMPI_LINK_FLAGS : -pthread -L/usr/lib/openmpi/lib -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl

MPI_HOME : /usr
MPI_ARCH_PATH : /usr
OPAL_PREFIX : /usr
PINC : -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread
PLIBS : -pthread -L/usr/lib/openmpi/lib -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl
MESQUITE_DIR is initialized to:
METIS_DIR is initialized to:
PARMETIS_DIR is initialized to:
PARMGRIDGEN_DIR is initialized to:
LIBCCMIO_DIR is initialized to:
SCOTCH_DIR is initialized to:
CMAKE_DIR is initialized to:
M4_DIR is initialized to:
BISON_DIR is initialized to:
FLEX_DIR is initialized to:
ZOLTAN_DIR is initialized to:
PYTHON_DIR is initialized to:
QT_DIR is initialized to:
PARAVIEW_DIR is initialized to:
Sourcing: /home/aminiyasser/OpenFOAM/OpenFOAM-1.6-ext/etc/aliases.sh
aminiyasser@aminiyasser-pc:~$ foam
aminiyasser@aminiyasser-pc:~/OpenFOAM/OpenFOAM-1.6-ext$ ./AllMake.stage1 >& log.AllMake.stage1
aminiyasser@aminiyasser-pc:~/OpenFOAM/OpenFOAM-1.6-ext$

lg88 September 15, 2012 22:47

errors in state4
 
Hello everyone
I am trying to install openfoam-1.6-ext to ubuntu 12.04 32 bit.

I am following the procedure given at

http://openfoam-extend.git.sourcefor...02de56;hb=HEAD
But I have problem at state4.The error is:
Code:

error: open /home/lg88/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/i386/ParaView-3.12.0-linuxGcc46DPOpt.i386.rpm fail:No such file or directory
So I check the 1386 folder.There is not a file name ParaView-3.12.0-linuxGcc46DPOpt.i386.rpm there.
Can you tell me what should I do?
Thank you very much!

regards!

lg88

wyldckat September 16, 2012 06:39

Hi lg88,

I tested the instructions myself on a VM with Ubuntu 12.04 i686, fully up-to-date and I was unable to trigger the same error.

Therefore, please do the following steps:
  1. Run the command once again:
    Code:

    ./AllMake.stage4 >& log.AllMake.stage4
  2. Edit the resulting log file "log.AllMake.stage4" with a text editor and search-replace sensitive data, like user names and paths.
  3. Compress the log file:
    Code:

    tar -czf log.AllMake.stage4.tar.gz log.AllMake.stage4
  4. Attach the file "log.AllMake.stage4.tar.gz" to your next post.
Best regards,
Bruno

lg88 September 16, 2012 11:09

1 Attachment(s)
Hi Bruno
I have installed Ubuntu 12.04 (64bit).But I have met the same problem.I have attached the "log.AllMake.stage4" here.But it contains some chinese.And the main error I think is
Code:

error: open /home/lg88/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-3.12.0-linuxGcc46DPOpt.i386.rpm fail:No such file or directory
There is not a file name ParaView-3.12.0-linuxGcc46DPOpt.i386.rpm in the folder: ThirdParty/rpmBuild/RPMS/x86_64

I have deleted something,because it is too large.

regards!

lg88

wyldckat September 16, 2012 16:02

Hi lg88,

Looks like this is the reason:
Code:

Could NOT find OpenGL (missing:  OPENGL_gl_LIBRARY)
Did you install the necessary packages? Namely run this long 3 line command:
Code:

sudo apt-get install git flex bison rpm g++ zlib1g-dev binutils-dev \
openmpi-bin libopenmpi-dev libxext-dev libxt-dev libxrender-dev \
libstdc++5 libgl1-mesa-dev libglu1-mesa-dev

If that doesn't work, try it in a single line like this:
Code:

sudo apt-get install git flex bison rpm g++ zlib1g-dev binutils-dev openmpi-bin libopenmpi-dev libxext-dev libxt-dev libxrender-dev libstdc++5 libgl1-mesa-dev libglu1-mesa-dev
Best regards,
Bruno

lg88 September 17, 2012 00:45

1 Attachment(s)
Hi Bruno
I have done what you tell me.Now the problem of state4 have been solved.But a new problem came up which atg have mentioned here before:
Code:

the final ./Allwmake script hangs up reliably on the incompressible yPlusRAS:
I have attached the log./Allmake here.
regards!

lg88

wyldckat September 17, 2012 03:48

Hi lg88,

Try this:
Code:

unset WM_NCOMPPROCS
./Allwmake > make.log 2>&1

This way it'll build in single core and use the command I usually use for building... which basically does the same as the official instruction on 1.6-ext.

Best regards,
Bruno

lg88 September 17, 2012 21:11

Hi Bruno
With your command:
Code:

unset WM_NCOMPPROCS
./Allwmake > make.log 2>&1

I installed OF successfully.

Thank you very much!

lg88

atheendra November 5, 2012 12:43

Quote:

Originally Posted by atg (Post 379584)
I am not certain, but I think the problem I was having may have been due to the fact that this command (from the instructions) no longer appears to work:

sudo apt-get install zlib1g-dev

So if one uses the "all in one" command:

# You can also install everything at once:
sudo apt-get install git flex bison rpm g++ zlib1g-dev binutils-dev \
openmpi-bin libopenmpi-dev libxext-dev libxt-dev libxrender-dev \
libstdc++5 libgl1-mesa-dev libglu1-mesa-dev


one can miss the fact that one package did not install properly.

I downloaded it and installed it manually: http://packages.ubuntu.com/dapper/zlib1g-dev

Now stage 4 builds again.

Of course I could be totally wrong; if I knew anything I would not be asking for help here.

Thanks for your reply.

To answer your question, I tried it twice on two different machines, one with four core Xeon E3-1280 and 16Gb RAM, and one Core 2 Duo with 4Gb Ram, set to varying numbers of compiler processors. Both were failing at the same place. Now it is working on the Core2Duo machine in 32 bit again. I am debating whether to mess with the working 10.04 installation on the faster machine, as I have cufflink working over there now and it just doesn't seem worth the trouble.

Hi Karl,
I am also installing OF 1.6-ext on ubuntu 12.04(32 bit) and have the same problem as you- the ./Allwmake script stops running after compiling yPlusRas.
the zlib1g-dev library seems to be installed fine.
Do you know what could be the problem?
Thanks!

atheendra November 5, 2012 13:07

Sorry for the spam guys,I am new to the forum and didn't check this page of the thread before posting, and I tried Bruno's method of compilation and it seems to have worked, even though the log file doesn't show "Done" or any such similar message at the end.
Thanks!

wyldckat November 5, 2012 15:00

Greetings Atheendra and welcome to the forum!

Quote:

Originally Posted by atheendra (Post 390392)
Sorry for the spam guys,I am new to the forum and didn't check this page of the thread before posting, and I tried Bruno's method of compilation and it seems to have worked, even though the log file doesn't show "Done" or any such similar message at the end.
Thanks!

Good thing you wrote back, otherwise I was probably going to recycle the same answer ;)

And indeed, the script doesn't indicate any pretty messages. Once we get use to it, it becomes second nature to simply run Allwmake it a second time to confirm if it's all done or not :)

Best regards,
Bruno

andreia November 30, 2012 11:23

Hi, I am trying to install OpenFoam-1.6-ext on Ubuntu-12.10-32bits, and I am having the same problem while running Allmake.stage4:

error: open /home/lasim/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/i386/ParaView-3.12.0-linuxGcc46DPOpt.i386.rpm fail:No such file or directory


All the necessary package mentioned in the build instructions for Ubuntu 12.04-32bits was installed. I don't know if it is necessary to install some other stuff for Ubuntu 12.10, have anyone tried?

JackW February 18, 2013 17:13

Hi atg,

I know you posted me this a while ago; but I have only just got round to downloading the link.

Is there anyway to install OF not on a Virtual Machine (that may sound like a stupid question - I am still downloading it (have realllll slow internet).. can I just mount it and run?)

behzad-cfd September 11, 2013 08:19

hi guys
im new here.im trying to instal openFOAM 1.6 on ubuntu 12.04 i did according the user guide and extract the .gtgz files but when i check the installation {
Code:

$HOME/OpenFOAM/OpenFOAM-1.6/bin/foamInstallationTest
}
i got some errors
Code:

Executing /home/behzad/OpenFOAM/OpenFOAM-1.6/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell:              bash
Host:              behzad-Dell-System-XPS-L502X
OS:                Linux version 3.2.0-23-generic
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid      Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/behzad/OpenFOAM                    yes      yes
$WM_PROJECT_USER_DIR /home/behzad/OpenFOAM/behzad-1.6        yes      no
$WM_THIRD_PARTY_DIR  /home/behzad/OpenFOAM/ThirdParty-1.6    yes      yes
-------------------------------------------------------------------------------


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

$FOAM_APPBIN        ...1.6/applications/bin/linux64GccDPOpt  no        yes
$FOAM_SITE_APPBIN    ...penFOAM/site/1.6/bin/linux64GccDPOpt  no        no
$FOAM_USER_APPBIN    ...1.6/applications/bin/linux64GccDPOpt  no        no
$WM_DIR              /home/behzad/OpenFOAM/OpenFOAM-1.6/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        ...OAM/OpenFOAM-1.6/lib/linux64GccDPOpt  no        yes
$FOAM_SITE_LIBBIN    ...penFOAM/site/1.6/lib/linux64GccDPOpt  no        no
$FOAM_USER_LIBBIN    ...nFOAM/behzad-1.6/lib/linux64GccDPOpt  no        no
$MPI_ARCH_PATH      ...nmpi-1.3.3/platforms/linux64GccDPOpt  no        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.6.3
        Minimum required: 4.3.1

gcc      4.6.3   
WARNING:  Conflicting installations:
          OpenFOAM settings        : /home/behzad/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/gcc
          current path            : /usr/bin/gcc
          CRITICAL ERROR

gzip    1.4      /bin/gzip                                               
tar      1.26      /bin/tar                                               
icoFoam         
WARNING:  Conflicting installations:
          OpenFOAM settings        : /home/behzad/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/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.

and when i try to run the openfoams first example it does not work
Code:

behzad@behzad-Dell-System-XPS-L502X:~$ cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity
behzad@behzad-Dell-System-XPS-L502X:~/OpenFOAM/behzad-1.6/run/tutorials/incompressible/icoFoam/cavity$ blockMesh
blockMesh: command not found
behzad@behzad-Dell-System-XPS-L502X:~/OpenFOAM/behzad-1.6/run/tutorials/incompressible/icoFoam/cavity$ icoFoam
icoFoam: command not found
behzad@behzad-Dell-System-XPS-L502X:~/OpenFOAM/behzad-1.6/run/tutorials/incompressible/icoFoam/cavity$ paraFoam
created temporary 'cavity.OpenFOAM'
/home/behzad/OpenFOAM/OpenFOAM-1.6/bin/paraFoam: 129: /home/behzad/OpenFOAM/OpenFOAM-1.6/bin/paraFoam: paraview: not found

what's wrong :confused:
please help me:(

wyldckat September 11, 2013 16:35

Greetings Behzad and welcome to the forum!

I think you're confusing these two:
And since you are posting on this thread, which addresses OpenFOAM 1.6-ext, then I suggest you check these instructions: http://openfoamwiki.net/index.php/In...1.6-ext/Ubuntu

Best regards,
Bruno

Manm July 27, 2016 15:06

OpenFoam 1.6-ext installation error on Ubuntu 16.04
 
1 Attachment(s)
Hi,
I am installing OpenFoam 1.6-ext on my laptop working on Ubuntu 16.04 LTS. I followed the procedure as outlined in:

https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04

However, though it runs until step 15 of the above document, when I test it to run 'icoFoam -help' as per step 16, it gives 'icoFoam: command not found. I have attached the compressed file her.
I don't think this is because of the Ubuntu versions being different. Kindly advise how do I address this issue. Thanks.

Man

wyldckat August 7, 2016 17:57

Quick answer: Use the same hack that is given for 16.04 here: https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04 - namely this command:
Code:

find src applications -name "*.L" -type f | xargs sed -i -e 's=\(YY\_FLEX\_SUBMINOR\_VERSION\)=YY_FLEX_MINOR_VERSION < 6 \&\& \1='
Then run the build command again.

Manm August 8, 2016 11:48

Thank you.
I had reinstalled Ubuntu 14.04 and then Openfoam 1.6 extend and it had started working.


All times are GMT -4. The time now is 14:21.