|
[Sponsors] |
[OpenFOAM.org] OpenFOAM 1.6.x Installer for Ubuntu |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 17, 2010, 10:48 |
OpenFOAM 1.6.x Installer for Ubuntu
|
#1 |
Member
Fábio César Canesin
Join Date: Mar 2010
Location: Florianópolis
Posts: 67
Rep Power: 16 |
Hi, I'm proud to announce an Installer for Ubuntu (x86 and x64) for OpenFOAM 1.6.x ... This is an automatic script that take many needed fix into account.
It has been developed as a fork of the cfd-online script by the following users of CFD-online forum: Mads Reck - Original author Anton Kidess - Revision Bruno Santos - Ubuntu 9.10 Libc fix You can find the project on: http://code.google.com/p/openfoam-ubuntu You can find alternate locations for download the original script on: http://www.hvirvel.dk/ - Mads Reck webblog Usage: $sudo chmod +x installOF $./installOF Than choose your location (or the closest one) and wait a quite bit. PLEASE USE THE TOPIC FOR ERRORS. Last edited by Canesin; March 21, 2010 at 17:05. Reason: UPDATED |
|
March 17, 2010, 12:52 |
|
#2 |
Member
Javed
Join Date: Mar 2010
Location: Mumbai,India
Posts: 32
Rep Power: 16 |
it is not working on 32bit system.
|
|
March 17, 2010, 13:30 |
|
#3 |
Member
Fábio César Canesin
Join Date: Mar 2010
Location: Florianópolis
Posts: 67
Rep Power: 16 |
||
March 19, 2010, 15:44 |
|
#4 |
New Member
Join Date: Mar 2010
Posts: 2
Rep Power: 0 |
Hello,
I tried the script too, but it failed at line 50 of the script at my 32 bit Notebook. The error message: cd: /home/Fistulator/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib64: No such file or directory But this script is a great idea, especially if you are not so fimiliar with linux like me. |
|
March 19, 2010, 15:51 |
|
#5 |
Member
Fábio César Canesin
Join Date: Mar 2010
Location: Florianópolis
Posts: 67
Rep Power: 16 |
Can you tell me what Ubuntu distribution you are using ?
|
|
March 19, 2010, 16:08 |
|
#6 |
New Member
Anon
Join Date: Mar 2010
Posts: 22
Rep Power: 16 |
I'm getting the same error and I'm using Ubuntu 9.10 x64 Bit (let me know if you need additional information)
the specific error I get is: Code:
./installOF9.10: line 50: cd: /home/vex/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib64 |
|
March 19, 2010, 16:12 |
|
#7 | |
New Member
Anon
Join Date: Mar 2010
Posts: 22
Rep Power: 16 |
It appears that the file archetecture doesn't dictate a lib64 when I go hunting for it. I see only ...linux64/lib but no lib64, what I think may need to be done is just simply alter lib64 to lib, let me double check on my system and see what happens. Will post later
Yeah, so that appears to NOT be the problem. If I alter the script to look in the lib you will get Code:
FIX up for Ubuntu 9.10 mv: cannot stat 'libstdc++.so.6': No such file or directory Quote:
Last edited by vex; March 19, 2010 at 16:45. |
||
March 19, 2010, 16:55 |
|
#8 |
New Member
Anon
Join Date: Mar 2010
Posts: 22
Rep Power: 16 |
I know this is going to get annoying but it looks like the ARCH="XXX" is not reassigned with the uname -m > $ARCH
When I echo out the $ARCH I get XXX |
|
March 19, 2010, 16:58 |
|
#9 |
Member
Fábio César Canesin
Join Date: Mar 2010
Location: Florianópolis
Posts: 67
Rep Power: 16 |
---EDITED----
http://code.google.com/p/openfoam-ubuntu Last edited by Canesin; March 25, 2010 at 12:39. |
|
March 19, 2010, 17:12 |
|
#10 | |
New Member
Anon
Join Date: Mar 2010
Posts: 22
Rep Power: 16 |
Quote:
|
||
March 20, 2010, 01:49 |
|
#11 |
New Member
Anon
Join Date: Mar 2010
Posts: 22
Rep Power: 16 |
well, I got it up and running. No errors this time around (though my computer did do some funny shut downs when it attempted to compile, but I think that's more a hardware issue than anything).
Thanks for your help! |
|
March 20, 2010, 04:36 |
|
#12 |
New Member
Join Date: Mar 2010
Posts: 2
Rep Power: 0 |
||
March 20, 2010, 08:58 |
|
#13 |
Member
Fábio César Canesin
Join Date: Mar 2010
Location: Florianópolis
Posts: 67
Rep Power: 16 |
I have done an update on the script, please try it again (from the link above).. If it doesn't work, please tell me here in the forum, here is 9 o'clock, this afternoon I will review the script, maybe do a GUI install, I still have to take another look to it.
|
|
March 20, 2010, 10:29 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Fabio,
I was waiting until I had some more results for your script, but since you'll be doing some tuning and tweaking this afternoon, here is something that can help you detect what Ubuntu version is it running on. On my Ubuntu installation, I've already got a command line ready for getting the version from the "/etc/lsb-release" file, but I'm in Windows right now and only in a couple of hours will I be switching to it edit: Here you go, the command line that gives you the Ubuntu version installed: Code:
cat /etc/lsb-release | grep DISTRIB_RELEASE= | sed s/DISTRIB_RELEASE=/$1/g So, the version identification could now be: Code:
version=`cat /etc/lsb-release | grep DISTRIB_RELEASE= | sed s/DISTRIB_RELEASE=/$1/g` Code:
if [[ "$arch" == "x86_64" ]]; then Code:
if [ "$arch" == "x86_64" ]; then Best regards, Bruno Last edited by wyldckat; March 20, 2010 at 11:57. Reason: Found the command line for retrieving the Ubuntu version. |
|
March 20, 2010, 14:15 |
|
#15 |
Member
Fábio César Canesin
Join Date: Mar 2010
Location: Florianópolis
Posts: 67
Rep Power: 16 |
Greetings Bruno,
Hi.. Thanks, I don't have VMs that can compile OF fast enough now.. and my workstation run 9.10 so part of the coding was theoretical work.. But I was thinking a little more deep, as you know better I believe will be more acurrated to make many diffs in the sources and based in the version the user is running than apply the diffs with patch.. I will also make possible installations with Paraview-pvserver only (no GUI), with MPI and python support for server installs... I have put an Google-Code page for the script: http://code.google.com/p/openfoam-ubuntu/ Please mail me for become an member and submit changes to the code. If you have ready my blog I'm building an cluster solution, that consist of 3 machines at least.. one for data serving (OpenSolaris zraid), one for visualization (ubuntu10.04 pvserver) and the last one for hosting OpenFOAM (ubuntu10.04)... The reason I choose 10.04 is because of it LTS status... Do you wanna join this offjob project ?? Last edited by Canesin; March 20, 2010 at 14:31. Reason: spell |
|
March 20, 2010, 19:53 |
|
#16 | ||||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Fabio,
Quote:
Quote:
Code:
OpenFOAM/etc/bashrc OpenFOAM/etc/settings.sh ThirdParty/makeGcc ThirdParty/makeParaview (maybe) The things I have in mind of tweaking are:
EDIT: The fix for gcc-4.3.3 that comes with the Third Party General package is available on this post. Later on that same thread, there is a fix for makeGcc, to remove some unecessary folders and a variant of makeGcc that builds gcc in x86_64 without the 32bit part. As for Paraview, building instructions for Qt, CMake and Paraview are available on this thread. Quote:
Quote:
Well, sadly I'll have to pass on joining this project At least for now. I still have lots to fix with the cross-compiled mingw32/-w64 versions (wiki page here), and have yet to fix them. Additionally, there are somethings I want to add to the wiki, but haven't had the time for them. And OpenFOAM 1.7 version will come around the end of July, so... well, I'm already worried about it, because of the things there are yet to be done Nonetheless, if you have any questions or are stumped but some compiling or scripting issue, I may be of some help! Additionally, there are at least two other people I can think of that you can talk to about your project:
Uhm, I ended up writing a long post... sorry about that As I said, as soon as I've got news for you, I'll send you an email, or at the very least post here Best regards, Bruno Last edited by wyldckat; March 28, 2010 at 18:34. Reason: see EDIT about gcc-4.3.3 |
|||||
March 21, 2010, 17:15 |
|
#17 | |
Member
Fábio César Canesin
Join Date: Mar 2010
Location: Florianópolis
Posts: 67
Rep Power: 16 |
Quote:
I my internship at POLO (www.polo.ufsc.br) I have A LOT more resources, as an SGI hack as example, but there I have much more bureaucracy ... Backing now... MANY thanks for the contributions.. I will read the topics with care. If you have seen the Google-Code page, I have setup an mercurial repository for the script, you don't need to be an very active commiter.. help as you can =) .. I'm compromising myself to make regular commits with fix and improvements in the code, but the others members of the project can help with testing and once in a while commits.. |
||
March 21, 2010, 23:54 |
|
#18 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
OK, as for the new buffed up script, is attached to this post. I've tested it only in two Ubuntu VM boxes so far:
* Compacted cookbook script multi-architecture to a single block, instead of two * Automatic search for closest sourceforge mirror * Default options set at the beginning of the script * upgrade in apt-get is now optional * interaction is optionable, but for now only via default settings * added option to build OpenFOAM code documentation, but lacks adding needed packages to apt-get * added option for using startFoam alias for OpenFOAM environment, instead of making OpenFOAM be always set * the script makes a log of its self execution * estimate (based on bogomips) and actual timing of Allwmake is also made * this script doubled in size... Yet to do / limitations: - Multi-language support, since this script has only been tested in Ubuntu's standard english - add option to build OpenFOAM's gcc, but also will need patching of 3 missing files (I've already posted the patches on this forum, somewhere ) - Add Qt 4.3.5 building, especially for Ubuntu 8.04 LTS - Add building Paraview, with or without python - Add packages to apt-get for building OpenFOAM's gcc and code documentation Stuff I've just remembered that are still to do: - Add fixes for building ccm26ToFoam and option to run it (also available somewhere on this forum) - Add command line option to run with the script's defaults - Add the possibility of compiling 32 bit on a 64 bit machine, as well as 32 bit single precision. Here the "alias startFoam" come in handy! - Ubuntu's Paraview hasn't got a "-dev" package, so it won't be possible to get the PV3FOAMReader to work with it, only using foamToVTK... sooo... scrap that possibility? More notes to users: After the comments area in the head of the script, there is a default options area. One can edit the options, and then use it for automatic installations, without the need for user interface. From my previous list of ideas, I think at least half have been implemented and the remainder are already listed in this post. Oh, and that "alias startFoam" has been added as an option too Sooo, this new script is a bit more daunting to read then the original cookbooks, but this was made with the intent of reducing the need for a copy-paste line by line execution of this script, and be more of a plug-n-play robot cooking machine :P. Finally, when one needs to update OpenFOAM to the latest git version, if I'm not mistaken, just do: Code:
cd $WM_PROJECT_DIR git pull ./Allwmake >make.log 2>&1 So, I'm signing off for now, and I hope this new script can serve as an inspiration for future upgrades to it Best regards, Bruno |
||
March 22, 2010, 00:51 |
|
#19 |
Member
Fábio César Canesin
Join Date: Mar 2010
Location: Florianópolis
Posts: 67
Rep Power: 16 |
Wow, that was a lot of changes.. =)
I have pushed the changes to the mercurial repository.. I'm reading it, I'm writing some user interface using dialog, it is nice because is cool and is command line, so it will run in server installs. Have added you to the project in googlecode, see your email, did some commit now for start the "coding goodpratice" of the guidelines below.. from now please use commit message to publish changing, this topic for users have "some kind" of support. To commit use: hg update hg diff installOF.sh hg commit installOF.sh -m "YOUR COMMIT CHANGES, PRESS ENTER TO DO MULTI LINE COMMIT MESSAGES" hg push To update local use: hg pull -u ---------------------- Guidelines to the project: - Have always the option for "Fresh Install" working in 9.10 and 9.04, is new code in that area, comment that with markup %NEW - Develop GUI (Graphical User Interface) using dialog -> NO OTHER EXTERNAL LIB - TODOS added in the header of the code, TODOS will have number priority, being 1 the highest. Again, very good job in this last changes =) ! PS: I know have only you and me pushing the code right now, but who knows the future ?? |
|
March 22, 2010, 17:44 |
|
#20 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Fantastic work guys, I'm impressed with where this script is heading!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
OpenFOAM 4.0 Released | CFDFoundation | OpenFOAM Announcements from OpenFOAM Foundation | 2 | October 6, 2017 06:40 |
OpenFOAM Training Beijing 22-26 Aug 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | May 3, 2016 05:57 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
Error compiling OpenFoam 1.6.x with intel compiler icc | mak_04 | OpenFOAM Installation | 5 | October 28, 2011 08:06 |