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

[swak4Foam] swak4Foam 0.3.1 OF2.2.2 Installation Issue

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

Like Tree1Likes
  • 1 Post By scnsc

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 18, 2014, 06:40
Default swak4Foam 0.3.1 OF2.2.2 Installation Issue
  #1
New Member
 
Steve C
Join Date: Jul 2013
Posts: 6
Rep Power: 12
scnsc is on a distinguished road
Greetings

I'm having an issue installing swak4Foam 0.3.1 on OF2.2.2 & Ubuntu 12.04. During installation, I get the following in the log file:

/opt/OpenFOAM/openfoam222/src/sampling/lnInclude/sampledSet.H:47:22: fatal error: coordSet.H: No such file or directory

Second run of ./Allwmake attached (hopefully - first post here ).

I understand this was an issue with earlier versions of swak4Foam and OF2.2.x as per http://www.cfd-online.com/Forums/ope...m-2-2-0-a.html . However, I'm assuming this shouldn't be an issue with version 0.3.1 & can't see any evidence of this from a forum search.

The log file suggests I'm installing the expected version & have the right prerequisites.

I have a couple of different OF installations & am wondering if this is tangling anything up. Doing the same installation into my OF2.3.0 directory results in the same error.

Hope this is sufficient info, any clues appreciated.
Thanks Steve
Attached Files
File Type: gz make.log.gz (1.3 KB, 2 views)
scnsc is offline   Reply With Quote

Old   August 18, 2014, 16:22
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Steve and welcome (back) to the forum!

I've tested just now following the instructions from here: http://openfoamwiki.net/index.php/In...ling_On/Ubuntu - in my main machine with Ubuntu 12.04 and OpenFOAM 2.2.2, and I did not have any problems.

The first error message:
Code:
In file included from repositories/SetsRepository.H:51:0,
                 from repositories/SetsRepository.C:37:
/opt/OpenFOAM/openfoam222/src/sampling/lnInclude/sampledSet.H:47:22: fatal error: coordSet.H: No such file or directory
compilation terminated.
indicates that the file "coordSet.H" is missing. In my installation, this file is located at "$FOAM_SRC/fileFormats/lnInclude/coordSet.H".

I suggest you take a quick look at this wiki page: http://openfoamwiki.net/index.php/In...with_the_Shell - there you'll find several details on how to have more than one OpenFOAM installation in your machine.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 19, 2014, 05:53
Default
  #3
New Member
 
Steve C
Join Date: Jul 2013
Posts: 6
Rep Power: 12
scnsc is on a distinguished road
Hi Bruno

Thanks for your reply, and thank you also for your extensive posting, which has assisted me multiple times in the past.

I agree it's an environment issue, and as you might have guessed I also have an older copy of OF installed (1.6-ext), and the search location for the file during installation ($FOAM_SRC/sampling/lnInclude/) does indeed correspond to the 1.6-ext installation, not for the required 2.2.2 installation ($FOAM_SRC/fileFormats/lnInclude/) for which I am installing swak4Foam.

I use alias commands to source the different installations in the bashrc file, and during troubleshooting got rid of the alias altogether & just referenced the newer 2.2.2 installation.

There are some "ghosts in the machine" with regard environment variables, which I knew about & still have to fix, but which I considered peripheral enough to not be likely to affect the swak4Foam installation. Obviously not the case in hindsight. Env & Export output attached for completeness, but I don't expect you to trawl through them. All the basic stuff ($FOAM_SRC etc) appears correct.

What I don't have my head around yet is the best way to find the source of the offending environment variable. I would have expected that a search of the output from env or export would be likely to turn up the text string "sampling/lnInclude", but that doesn't appear to be the case.

Not asking a specific question at this point - I obviously have some work to do & just wanted to thank you for your response.

Regards
Steve
Attached Files
File Type: gz log.env.gz (2.4 KB, 0 views)
File Type: gz log.export.gz (2.4 KB, 0 views)
scnsc is offline   Reply With Quote

Old   August 20, 2014, 07:59
Default
  #4
New Member
 
Steve C
Join Date: Jul 2013
Posts: 6
Rep Power: 12
scnsc is on a distinguished road
Ha - OK, sorted it out in the end. I had my different OF installations nicely sorted out via alias commands at the end of the .bashrc file. I couldn't understand how I was getting cross-contamination between different version environment variables despite this.

I finally had a closer look at the entire .bashrc file, only to find a sneaky little source command as the FIRST line of the file, referring to the original installation. Obviously put there during my earliest stumblings around with OF & going unnoticed until the new OF installation.

Pretty funny now, but I wasn't laughing earlier...
wyldckat likes this.
scnsc 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
[OpenFOAM.com] Multiple Installation Issue: Parallel Processing No Longer Works dancfd OpenFOAM Installation 11 November 20, 2018 16:08
Engrid 1.4 installation issue on Fedora 20 - VTK? eaglemckenna enGrid 7 June 15, 2014 08:24
OpenFOAM 2.2.2 source pack installation on Xubuntu 13.10 zordiack OpenFOAM Installation 1 October 26, 2013 13:08
Issue installation OpenFOAM - libopen-rte.so.0 Voyage_gui OpenFOAM 1 August 12, 2011 03:46
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56


All times are GMT -4. The time now is 01:37.