CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] Trying to build and install OpenFOAM 2.4.0 on Lubuntu 14.04 ARM7

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 26, 2015, 16:58
Default Trying to build and install OpenFOAM 2.4.0 on Lubuntu 14.04 ARM7
  #1
New Member
 
Tanneru Hemanth Kumar
Join Date: Jun 2015
Location: India
Posts: 8
Rep Power: 7
Hemanth is on a distinguished road
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.

Last edited by wyldckat; June 28, 2015 at 16:00. Reason: Added [CODE][/CODE] markers
Hemanth is offline   Reply With Quote

Old   June 27, 2015, 14:03
Default Problem in open foam installation through ubuntu deb method
  #2
New Member
 
Tanneru Hemanth Kumar
Join Date: Jun 2015
Location: India
Posts: 8
Rep Power: 7
Hemanth is on a distinguished road
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 .
Hemanth is offline   Reply With Quote

Old   June 28, 2015, 16:06
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,956
Blog Entries: 43
Rep Power: 122
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________

Last edited by wyldckat; July 19, 2015 at 13:09. Reason: added a 3rd and a 4th link to the list - repaired 4th
wyldckat is offline   Reply With Quote

Old   June 29, 2015, 02:11
Default
  #4
New Member
 
Tanneru Hemanth Kumar
Join Date: Jun 2015
Location: India
Posts: 8
Rep Power: 7
Hemanth is on a distinguished road
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.
Attached Files
File Type: txt errorfile.txt (3.4 KB, 6 views)
Hemanth is offline   Reply With Quote

Old   July 5, 2015, 15:12
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,956
Blog Entries: 43
Rep Power: 122
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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.
wyldckat is offline   Reply With Quote

Old   July 6, 2015, 01:32
Default
  #6
New Member
 
Tanneru Hemanth Kumar
Join Date: Jun 2015
Location: India
Posts: 8
Rep Power: 7
Hemanth is on a distinguished road
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.
Attached Files
File Type: gz log.make.gz (64 Bytes, 2 views)
Hemanth is offline   Reply With Quote

Old   July 19, 2015, 13:24
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,956
Blog Entries: 43
Rep Power: 122
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   July 19, 2015, 13:34
Default
  #8
New Member
 
Tanneru Hemanth Kumar
Join Date: Jun 2015
Location: India
Posts: 8
Rep Power: 7
Hemanth is on a distinguished road
Thanks Bruno,
Will try and let you the progress next weekend. How to whether system is rasberry pi or not ?
Hemanth is offline   Reply With Quote

Old   July 19, 2015, 13:43
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,956
Blog Entries: 43
Rep Power: 122
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by Hemanth View Post
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.
wyldckat is offline   Reply With Quote

Old   July 19, 2015, 14:42
Default Raspberry Pi
  #10
New Member
 
daniel
Join Date: Jun 2015
Posts: 22
Rep Power: 7
leinad is on a distinguished road
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
wyldckat and Hemanth like this.
leinad is offline   Reply With Quote

Old   July 19, 2015, 23:13
Default
  #11
New Member
 
Tanneru Hemanth Kumar
Join Date: Jun 2015
Location: India
Posts: 8
Rep Power: 7
Hemanth is on a distinguished road
Hi Linead,
Can you post a step by step post for installing Openfoam2.4 on ARM architecture if possible.
Hemanth is offline   Reply With Quote

Old   July 20, 2015, 02:59
Default
  #12
New Member
 
daniel
Join Date: Jun 2015
Posts: 22
Rep Power: 7
leinad is on a distinguished road
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 is offline   Reply With Quote

Old   July 20, 2015, 16:05
Default OpenFoam For Raspberry Pi
  #13
New Member
 
daniel
Join Date: Jun 2015
Posts: 22
Rep Power: 7
leinad is on a distinguished road
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
Attached Files
File Type: pdf OpenFoam_Raspberry_Pi_.compressed.pdf (83.1 KB, 129 views)
7islands, Taataa, mvbakker and 1 others like this.
leinad is offline   Reply With Quote

Old   July 21, 2015, 02:52
Default
  #14
New Member
 
Tanneru Hemanth Kumar
Join Date: Jun 2015
Location: India
Posts: 8
Rep Power: 7
Hemanth is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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 ?
Attached Files
File Type: gz make.log.gz (55.3 KB, 3 views)
Hemanth is offline   Reply With Quote

Old   July 21, 2015, 03:00
Default
  #15
New Member
 
daniel
Join Date: Jun 2015
Posts: 22
Rep Power: 7
leinad is on a distinguished road
Hemanth
Try the instructions in the pdf I posted yesterday
leinad is offline   Reply With Quote

Old   July 21, 2015, 07:17
Default
  #16
New Member
 
Tanneru Hemanth Kumar
Join Date: Jun 2015
Location: India
Posts: 8
Rep Power: 7
Hemanth is on a distinguished road
Quote:
Originally Posted by leinad View Post
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.
Hemanth is offline   Reply With Quote

Old   July 21, 2015, 08:35
Default
  #17
New Member
 
daniel
Join Date: Jun 2015
Posts: 22
Rep Power: 7
leinad is on a distinguished road
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
leinad is offline   Reply With Quote

Old   November 2, 2015, 15:22
Default
  #18
New Member
 
Michiel Bakker
Join Date: Sep 2015
Posts: 5
Rep Power: 6
mvbakker is on a distinguished road
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?
mvbakker is offline   Reply With Quote

Old   November 2, 2015, 16:01
Default
  #19
New Member
 
daniel
Join Date: Jun 2015
Posts: 22
Rep Power: 7
leinad is on a distinguished road
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 likes this.
leinad is offline   Reply With Quote

Old   November 5, 2015, 06:58
Default
  #20
New Member
 
Michiel Bakker
Join Date: Sep 2015
Posts: 5
Rep Power: 6
mvbakker is on a distinguished road
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?
mvbakker is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SU2 Parallel Build Install Issue jclegg SU2 1 December 10, 2018 05:16
[OpenFOAM.org] Build and install OpenFOAM Dev 64 bits echin OpenFOAM Installation 8 June 24, 2016 03:54
Install openFOAM from with proxy server Dhruval OpenFOAM Installation 3 October 18, 2014 15:38
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 14:43
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 16:13.