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)

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 20:36.