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

[OpenFOAM.org] Compiling OpenFOAM-2.3.x

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By JPManning

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 6, 2014, 12:01
Default Compiling OpenFOAM-2.3.x
  #1
New Member
 
Outside USA or Canada
Join Date: Oct 2014
Posts: 3
Rep Power: 11
JPManning is on a distinguished road
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!
JPManning is offline   Reply With Quote

Old   October 7, 2014, 15:16
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
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 JPManning and welcome to the forum!

Quick questions:
  1. Which Linux Distribution (and respective version) are you using?
  2. How exactly did you install OpenFOAM 2.3.0? From source code or from Deb/RPM?
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   October 8, 2014, 10:21
Default
  #3
New Member
 
Outside USA or Canada
Join Date: Oct 2014
Posts: 3
Rep Power: 11
JPManning is on a distinguished road
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
Attached Files
File Type: txt porousSimpleFoamLog.txt (8.6 KB, 6 views)
JPManning is offline   Reply With Quote

Old   October 11, 2014, 15:34
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
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 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:
  1. Study this page: http://openfoamwiki.net/index.php/In...with_the_Shell - there is a lot of very useful information there and it should cover some of the basic know-how that it's not yet present in the OpenFOAM User Guide and official installation instructions.
  2. Then try following these instructions for installing OpenFOAM 2.3.0 on Ubuntu 12.04: http://openfoamwiki.net/index.php/In...M-2.3.0/Ubuntu - notice that there you'll find dedicated instructions for installing from source code in Ubuntu 12.04.
  3. Once you've installed OpenFOAM 2.3.0 from source code and feel more familiar with the installation procedure and double check if the installation is fully working, then try installing OpenFOAM 2.3.x, using the same installation strategy used for 2.3.0.
And please, do not build OpenFOAM with root powers. You risk damaging your current Ubuntu installation.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   October 14, 2014, 09:49
Default
  #5
New Member
 
Outside USA or Canada
Join Date: Oct 2014
Posts: 3
Rep Power: 11
JPManning is on a distinguished road
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!
wyldckat likes this.
JPManning is offline   Reply With Quote

Old   September 14, 2017, 07:10
Default
  #6
bou
New Member
 
bou
Join Date: May 2014
Posts: 10
Rep Power: 11
bou is on a distinguished road
I installed the following package and it worked fine:

apt-get install procmail
bou is offline   Reply With Quote

Reply

Tags
openfoam 2.3.x, wmake


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
[swak4Foam] Difficulties compiling with OpenFOAM v5.0 MauricioReis OpenFOAM Community Contributions 19 October 16, 2019 00:58
[OpenFOAM.org] OpenFOAM 2.3.x on Mac OS X 10.10.1 Installation Errors Petru OpenFOAM Installation 15 December 29, 2015 12:51
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 13:36
[OpenFOAM.org] OpenFOAM 2.3.x for Mac at GitHub ajmas OpenFOAM Installation 2 April 20, 2015 16:23
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix mbeaudoin OpenFOAM Installation 2 April 28, 2006 08:54


All times are GMT -4. The time now is 17:57.