CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   foam-extend-3.0 installed error in Ubuntu about ThirdParty AllMake.stage3 (http://www.cfd-online.com/Forums/openfoam-installation/129312-foam-extend-3-0-installed-error-ubuntu-about-thirdparty-allmake-stage3.html)

chery1986 February 2, 2014 23:15

foam-extend-3.0 installed error in Ubuntu about ThirdParty AllMake.stage3
 
I tried to install FOAM-ext-3.0 on Ubuntu 12.04 LTS 32bit and follow the installation instruction on http://openfoamwiki.net/index.php/Installation/Linux/foam-extend-3.0/Ubuntu#Ubuntu_12.04
But I met some error when stage3 libccmio of Thidparty:
Code:

Package name      : libccmio-2.6.1
Package URL      : http://portal.nersc.gov/svn/visit/ta...o-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
RPM file name    : /opt/foam-extend-3.0/ThirdParty/rpmBuild/RPMS/i386/libccmio-2.6.1-linuxGcc46DPOpt.i386.rpm
Making package libccmio-2.6.1 using RPM.
Building package libccmio-2.6.1 using SPEC file : libccmio-2.6.1.spec. Optional args:
Executing(%prep): /bin/sh -e /opt/foam-extend-3.0/ThirdParty/rpmBuild/tmp/rpm-tmp.BpdaUg
+ umask 022
+ cd /opt/foam-extend-3.0/ThirdParty/rpmBuild/BUILD
+ cd /opt/foam-extend-3.0/ThirdParty/rpmBuild/BUILD
+ rm -rf libccmio-2.6.1
+ /bin/gzip -dc /opt/foam-extend-3.0/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 /opt/foam-extend-3.0/ThirdParty/rpmBuild/SOURCES/libccmio-2.6.1.patch_0
+ /usr/bin/patch -s -p1 --fuzz=0
+ exit 0
Executing(%build): /bin/sh -e /opt/foam-extend-3.0/ThirdParty/rpmBuild/tmp/rpm-tmp.SwAurs
+ umask 022
+ cd /opt/foam-extend-3.0/ThirdParty/rpmBuild/BUILD
+ cd libccmio-2.6.1
+ [ -n gcc ]
+ export CC=gcc
+ [ -n  ]
+ [ -n g++ ]
+ export CXX=g++
+ [ -n  ]
+ [ -n  ]
+ [ -n  ]
+ [ -n  ]
+ [ -z 4 ]
+ 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: /opt/foam-extend-3.0/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1/libadf/..//config/unknown/qmake: No such file or directory
make[1]: Entering directory `/opt/foam-extend-3.0/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 `/opt/foam-extend-3.0/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1/libadf'
make: *** [all] Error 2
error: Bad exit status from /opt/foam-extend-3.0/ThirdParty/rpmBuild/tmp/rpm-tmp.SwAurs (%build)


RPM build errors:
    Bad exit status from /opt/foam-extend-3.0/ThirdParty/rpmBuild/tmp/rpm-tmp.SwAurs (%build)
Installing package: libccmio-2.6.1
  Uninstalling libccmio-2.6.1 using RPM: libccmio-2.6.1-linuxGcc46DPOpt.i386
  Installing libccmio-2.6.1 using RPM file: /opt/foam-extend-3.0/ThirdParty/rpmBuild/RPMS/i386/libccmio-2.6.1-linuxGcc46DPOpt.i386.rpm
error: open of /opt/foam-extend-3.0/ThirdParty/rpmBuild/RPMS/i386/libccmio-2.6.1-linuxGcc46DPOpt.i386.rpm failed: No such file or directory
Done installing package

It seems that it cannot regnize the system and configure the installation of libccmio. Anyone have idea how to fix this problem. Thanks a lot.

wyldckat February 4, 2014 16:24

Greetings Chen Yu and welcome to the forum!

I have a feeling that you did not follow only one set of instructions, which lead to the confusion in the build process.
I say this because:
  1. The link you provided points to here: http://openfoamwiki.net/index.php/In...u#Ubuntu_12.04
  2. But you meant to give this link: http://openfoamwiki.net/index.php/In...u#Ubuntu_12.04
  3. Then there is the detail that the build script is trying to build at "/opt/foam-extend-3.0/", which implies that something strange is going on, since the instructions do not tell you to install in "/opt".
Therefore, in order to be able to help you, I need to know:
  1. Do you have any other version of OpenFOAM already installed in your machine?
    1. If you do, have you tried following these instructions: Using aliases to help manage multiple OpenFOAM versions
  2. Did you do anything differently from the instructions provided here: http://openfoamwiki.net/index.php/In...u#Ubuntu_12.04 :confused: And if you did, what exactly was it?
Best regards,
Bruno

chery1986 February 4, 2014 21:25

Thank you for the reply.

I have another version of OpenFoam2.1.1 in /opt, so I put extend-3.0 in /opt. And I also changed etc/bashrc respectively and used alias to manage different version of OF.

You are right that I mistaken the installation instruction for different versions (1.6ext and extend3.0). After I realized it, I also tried to repeat the steps, the error still exits.

I also installed extend-3.0 on another computer with Ubuntu_x86_64, but everything looks well. This post showed similar problem http://www.cfd-online.com/Forums/ope...m-1-6-ext.html, and the author solved the problem with upgrade OS to x86_64 version.

Shall I clean all the installation of extend-3.0 and restart from the very beginning follow the instructions? Or shall I upgrade the OS to X86_64?


Quote:

Originally Posted by wyldckat (Post 473425)
Greetings Chen Yu and welcome to the forum!

I have a feeling that you did not follow only one set of instructions, which lead to the confusion in the build process.
I say this because:
  1. The link you provided points to here: http://openfoamwiki.net/index.php/In...u#Ubuntu_12.04
  2. But you meant to give this link: http://openfoamwiki.net/index.php/In...u#Ubuntu_12.04
  3. Then there is the detail that the build script is trying to build at "/opt/foam-extend-3.0/", which implies that something strange is going on, since the instructions do not tell you to install in "/opt".
Therefore, in order to be able to help you, I need to know:
  1. Do you have any other version of OpenFOAM already installed in your machine?
    1. If you do, have you tried following these instructions: Using aliases to help manage multiple OpenFOAM versions
  2. Did you do anything differently from the instructions provided here: http://openfoamwiki.net/index.php/In...u#Ubuntu_12.04 :confused: And if you did, what exactly was it?
Best regards,
Bruno


wyldckat February 6, 2014 18:04

Hi Chen,

Yesterday I spent some time trying to figure out how to patch "libccmio" for building in 32bit, but I didn't have any success :(

If you're in a hurry, I believe you have at least two quick solutions:
  1. Ignore this error, since "libccmio" is not important for foam-extend 3.0 to work as intended. You would only need it if you need to convert CCM meshes to OpenFOAM.
  2. You might want to install a 64 bit (x86_64) Linux Distribution, since it allows you to work with more than 2GB of RAM per application.
Best regards,
Bruno

chery1986 February 6, 2014 22:33

Quote:

Originally Posted by wyldckat (Post 473822)
Hi Chen,

Yesterday I spent some time trying to figure out how to patch "libccmio" for building in 32bit, but I didn't have any success :(

If you're in a hurry, I believe you have at least two quick solutions:
  1. Ignore this error, since "libccmio" is not important for foam-extend 3.0 to work as intended. You would only need it if you need to convert CCM meshes to OpenFOAM.
  2. You might want to install a 64 bit (x86_64) Linux Distribution, since it allows you to work with more than 2GB of RAM per application.
Best regards,
Bruno

Thank you very much.


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