CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Trying to build and install OpenFOAM 2.4.0 on Lubuntu 14.04 ARM7 (https://www.cfd-online.com/Forums/openfoam-installation/155312-trying-build-install-openfoam-2-4-0-lubuntu-14-04-arm7.html)

Hemanth June 26, 2015 16:58

Trying to build and install OpenFOAM 2.4.0 on Lubuntu 14.04 ARM7
 
Code:

Checking basic setup...
-------------------------------------------------------------------------------
Shell:              bash
Host:              netbook
OS:                Linux version 3.4.5
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid      Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/student/OpenFOAM                  yes      yes
$WM_PROJECT_USER_DIR /home/student/OpenFOAM/student-2.4.0    yes      no
$WM_THIRD_PARTY_DIR  /home/student/OpenFOAM/ThirdParty-2.4.0  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/student/OpenFOAM/OpenFOAM-2.4.0    yes  yes  yes

$FOAM_APPBIN        ....4.0/platforms/linuxARM7GccDPOpt/bin  no        yes
$FOAM_SITE_APPBIN    ....4.0/platforms/linuxARM7GccDPOpt/bin  no        no
$FOAM_USER_APPBIN    ....4.0/platforms/linuxARM7GccDPOpt/bin  no        no
$WM_DIR              ...tudent/OpenFOAM/OpenFOAM-2.4.0/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        ....4.0/platforms/linuxARM7GccDPOpt/lib  no        yes
$FOAM_SITE_LIBBIN    ....4.0/platforms/linuxARM7GccDPOpt/lib  no        no
$FOAM_USER_LIBBIN    ....4.0/platforms/linuxARM7GccDPOpt/lib  no        no
$MPI_ARCH_PATH      /usr/lib/openmpi                        yes  yes  yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version  Location
-------------------------------------------------------------------------------
flex    2.5.35    /usr/bin/flex                                           
gcc      4.8.4    /usr/bin/gcc                                           
g++      4.8.4    /usr/bin/g++                                           
gzip    1.6      /bin/gzip                                               
tar      1.27.1    /bin/tar                                               
icoFoam         
WARNING:  Conflicting installations:
          OpenFOAM settings        : /home/student/OpenFOAM/OpenFOAM-2.4.0/platforms/linuxARM7GccDPOpt/bin/icoFoam
          current path            :
          CRITICAL ERROR

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


Summary
-------------------------------------------------------------------------------
Base configuration ok.
The foam installation contains 1 critical error(s).

Review the output for warning messages and consult
the installation guide for troubleshooting.

Done

Please help in solving this.

Hemanth June 27, 2015 14:03

Problem in open foam installation through ubuntu deb method
 
Followed installation instructions . got the following erros after sudo apt-get install

failed to faetch http://www.openfoam.org/download/ubuntu/dists trusty/main/binary-armfh/Packages 404 Not Found
uname - m gives

armv7l

Please help .

wyldckat June 28, 2015 16:06

Greetings Hemanth and welcome to the forum!

I'm sorry to say that the OpenFOAM 2.4.0 Deb packages are not available for the ARM architectures.

The closest I know about people being able to build/install OpenFOAM on ARM7 architectures have been these two:
Best regards,
Bruno

Hemanth June 29, 2015 02:11

1 Attachment(s)
Thanks Bruno for the reply. Glad to know at least there are two people who installed openfoam on armv processer.

I have goen through the first link and the conversation. I didn't clearly understand all the instructions.

I am not knowing where to start and what to do.

Pelase help me with the procedure to modify the things as per Jon Elvar Wallevik suggested.

Any ways i will try doing some thing and mean while, i tried installation from source pack I got some error for which i am attachng the log file. Please help me with this if this problem is easy to fix.

wyldckat July 5, 2015 15:12

Quick answer:
  1. Run these commands:
    Code:

    gcc --version
    g++ --version

    and let me know what each command gives you.
  2. Then run these commands:
    Code:

    foam
    ./Allwmake > log.make 2>&1
    gzip < log.make > log.make.gz

    And attach the file "log.make.gz" in your next post.

Hemanth July 6, 2015 01:32

1 Attachment(s)
gcc --version gives

gcc (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


g++ --version gives

g++ (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Here is log file. It shows the directory is not available because i deleted OpenFOAM folder. If you want me to compile again i will do that. Can you please send detailed instructions if available to install openfoam in ARM architecture.

Thanks in advance and in the rhelogical site i didnt understand which version to download and how to install.
Please help.

wyldckat July 19, 2015 13:24

Hi Hemanth,

Sorry for the late reply, but only today did I finally manage to take a quick look into this.

If you're trying to install OpenFOAM 2.4.0 on a RaspberryPi 2, then you might want to check this post: http://www.cfd-online.com/Forums/ope...tml#post556013 - post #5

If you have some other machine, then the best I can suggest is as follows:
  1. Follow the instructions given here: http://openfoamwiki.net/index.php/In...u#Ubuntu_14.04
  2. But when you reach step #6, use the option for "i686", which should also work with "armvl7".
  3. These instructions do provide the indication of what needs to be done for diagnosing problems with building OpenFOAM.
Beyond this, I have no idea what else is needed.

Best regards,
Bruno

Hemanth July 19, 2015 13:34

Thanks Bruno,
Will try and let you the progress next weekend. How to whether system is rasberry pi or not ?

wyldckat July 19, 2015 13:43

Quote:

Originally Posted by Hemanth (Post 556045)
How to whether system is rasberry pi or not ?

If you're able to look at the machine itself (the tower or box for the computer), then it's a Raspberry Pi if the contents of the box looks something like the images shown here: https://en.wikipedia.org/wiki/Raspberry_Pi - there is also a table there listing the physical dimensions of each version.

leinad July 19, 2015 14:42

Raspberry Pi
 
I have recently build a Raspberry Pi cluster, using Raspberry pi model b 2, i have Openfoam 2.4.0 running every thing works, I can put together a how to if any one is intrested

Hemanth July 19, 2015 23:13

Hi Linead,
Can you post a step by step post for installing Openfoam2.4 on ARM architecture if possible.

leinad July 20, 2015 02:59

Hi Hemanth

Yes that's not a problem I will put together a pdf as there are a few people who are interested. Depends how my workload is at work but hopefully I will get some thing on here within the next few days

leinad July 20, 2015 16:05

OpenFoam For Raspberry Pi
 
1 Attachment(s)
To Hemanth and every one else that is looking to install OpenFoam on a Raspberry Pi, see attachment.
I hope it is useful to some one, if you like this tutorial and you have any knowledge of setting up a axial fan boundary condition please let me know as that is what i need help with :)

Hemanth July 21, 2015 02:52

1 Attachment(s)
Quote:

Originally Posted by wyldckat (Post 556044)
Hi Hemanth,

Sorry for the late reply, but only today did I finally manage to take a quick look into this.

If you're trying to install OpenFOAM 2.4.0 on a RaspberryPi 2, then you might want to check this post: http://www.cfd-online.com/Forums/ope...tml#post556013 - post #5

If you have some other machine, then the best I can suggest is as follows:
  1. Follow the instructions given here: http://openfoamwiki.net/index.php/In...u#Ubuntu_14.04
  2. But when you reach step #6, use the option for "i686", which should also work with "armvl7".
  3. These instructions do provide the indication of what needs to be done for diagnosing problems with building OpenFOAM.
Beyond this, I have no idea what else is needed.

Best regards,
Bruno

I followed the procedures and here is the zip file of make.log .
Can you help from this if you can ?

leinad July 21, 2015 03:00

Hemanth
Try the instructions in the pdf I posted yesterday

Hemanth July 21, 2015 07:17

Quote:

Originally Posted by leinad (Post 556209)
To Hemanth and every one else that is looking to install OpenFoam on a Raspberry Pi, see attachment.
I hope it is useful to some one, if you like this tutorial and you have any knowledge of setting up a axial fan boundary condition please let me know as that is what i need help with :)

Hi Daniel,
When i did ./Allwmake in the path sepecified in instructions, It throws an error .

./Allwmake: 4 : ./Allwmake: wmake chkPwd : not found
Error : Current directory is not $WM_PROJECT_DIR
The environment variables are inconsistent with the installation.
Check the Open FOAM entries in your dot-files and source them.

It might be because of the previous environment variables that are set during installation through the other method by Bruno.

leinad July 21, 2015 08:35

Hi Hemanth
What os are you using ?
I would suggest you start with reinstalling your os so that every thing is default then try again

mvbakker November 2, 2015 15:22

I just followed your tutorial. I only did not take the latest version of Rasbian but I took the one from May (Wheezy) since I assumed you used that one as well (Rasbian Jessie wasn't out when you guys had this discussion).

Unfortunately I got the exact same error as Hemanth. What should I do? Try it with Rasbian Jessie?

Did you succeed eventually Hemanth?

leinad November 2, 2015 16:01

Strange that both of you are having troubbles. As two people have had the same error I will review the tutorial to make sure there are no errors and I will update. I am currently at the open foam user event and don't have the cluster to hand but I should get back to you by the end of the week

mvbakker November 5, 2015 06:58

I am not sure yet but I might have fixed it by running:

source /home/pi/OpenFOAM/OpenFOAM-2.4.0/etc/bashrc

which loaded the environment variables (I guess, I'm also new to this). Now it is doing stuff after I ran:

/.Allwmake

Does this seem like a logical solution?


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