|
[Sponsors] |
October 6, 2014, 13:01 |
Compiling OpenFOAM-2.3.x
|
#1 |
New Member
Outside USA or Canada
Join Date: Oct 2014
Posts: 3
Rep Power: 12 |
Hi,
I am attempting to compile OpenFOAM-2.3.x. Version 2.3.0 is currently completely installed and running on my machine so I am confident that all environment variables are correctly setup for this version... However when attempting to compile the code using '.Allwmake' within $WM_PROJECT_DIR I am receiving multiple messages stating: Could not find executable 'lockfile' Extensive searching has produced no results. Can anyone help me with this? Thanks in advance! |
|
October 7, 2014, 16:16 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings JPManning and welcome to the forum!
Quick questions:
Bruno
__________________
|
|
October 8, 2014, 11:21 |
|
#3 |
New Member
Outside USA or Canada
Join Date: Oct 2014
Posts: 3
Rep Power: 12 |
Hi Bruno,
Thanks for picking this up and thanks for the welcome! In answer to your questions: 1. Ubuntu 12.04 (Precise) 2. OpenFOAM 2.3.0 was built from source. I have been looking into this issue since posting my enquiry and found that the 'lockfile' binary was part of something called the procmail project. Re-installing this via apt-get solved the problem! However I do not understand what happened here! Any light you could shed on this would be great. Is this an issue you have encountered before? However I am still having issues that are preventing me from having a working version of OpenFOAM. 1. In 2.3.x I cannot build some custom modules which build without any issue in 2.3.0. Are there any changes between these versions which could create this problem? 2. As I cannot build 2.3.x I have attempted to revert to 2.3.0 but can no longer run simulations! An attempt to run porousSimpleFoam results in the errors seen in the attached log. Can you help me to solve this? Apologies if I should be creating a new thread for these additional questions. Please let me know if you would prefer that I do that and I will do it asap. Once again any help you can provide would be very much appreciated! All the best |
|
October 11, 2014, 16:34 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi JPManning,
OK, my guess is that the lockfile application got broken somehow, either during installation or if you installed other stuff while using the root account. For example, if you tried to build OpenFOAM as root (aka super-user), this could risk your installation, since one small wrong move could damage the system. I suspect that you're dealing with more than one problem here. My advice would be to take a few steps back and uninstall all OpenFOAM versions. If by any chance you can, a clean installation of Ubuntu would make sure that there wasn't anything bad from a previous installation that might have gone wrong. But before you do either one of these steps, BACKUP YOUR DATA/WORK FIRST! Sorry for the upper case letters, but it's that important that you make sure you backup your files, otherwise you risk loosing all of your work so far... Then, after at least uninstalling the OpenFOAM versions, I suggest the following steps:
Best regards, Bruno |
|
October 14, 2014, 10:49 |
|
#5 |
New Member
Outside USA or Canada
Join Date: Oct 2014
Posts: 3
Rep Power: 12 |
Hi Bruno,
Many many thanks for your reply. Although I am still not sure what I did wrong on my first attempt your pertinent and timely advice has enabled me to solve these problems and I know have an install of 2.3.x up and running happily alongside 2.3.0. Thanks again! |
|
September 14, 2017, 08:10 |
|
#6 |
New Member
bou
Join Date: May 2014
Posts: 11
Rep Power: 12 |
I installed the following package and it worked fine:
apt-get install procmail |
|
Tags |
openfoam 2.3.x, wmake |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] Difficulties compiling with OpenFOAM v5.0 | MauricioReis | OpenFOAM Community Contributions | 19 | October 16, 2019 01:58 |
[OpenFOAM.org] OpenFOAM 2.3.x on Mac OS X 10.10.1 Installation Errors | Petru | OpenFOAM Installation | 15 | December 29, 2015 13:51 |
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 | cfd.direct | OpenFOAM Announcements from Other Sources | 2 | August 31, 2015 14:36 |
[OpenFOAM.org] OpenFOAM 2.3.x for Mac at GitHub | ajmas | OpenFOAM Installation | 2 | April 20, 2015 17:23 |
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix | mbeaudoin | OpenFOAM Installation | 2 | April 28, 2006 09:54 |