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

[foam-extend.org] Ubuntu 14.04, Foam-extend 3.1: "command not found"

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 6, 2015, 03:19
Unhappy Ubuntu 14.04, Foam-extend 3.1: "command not found"
  #1
New Member
 
LOU Lida
Join Date: Mar 2015
Posts: 18
Rep Power: 11
KangX1 is on a distinguished road
Dear foamers,

I try to install the foam-extend-3.1 on ubuntu 14.04 besides of231.
After compiling the foam extend with "Allwmake.firstInstall", I'm trying to run some test case. However, it always shows like "blockMesh: command not found".

So, what's the problem?

Thanks,

KangX1
KangX1 is offline   Reply With Quote

Old   August 8, 2015, 00:21
Default
  #2
New Member
 
LOU Lida
Join Date: Mar 2015
Posts: 18
Rep Power: 11
KangX1 is on a distinguished road
can anyone help...?
KangX1 is offline   Reply With Quote

Old   August 8, 2015, 05:53
Default
  #3
Senior Member
 
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 12
ssss is on a distinguished road
Did you include the alias for foamextend in your .bashrc file?
ssss is offline   Reply With Quote

Old   August 10, 2015, 05:25
Default
  #4
New Member
 
LOU Lida
Join Date: Mar 2015
Posts: 18
Rep Power: 11
KangX1 is on a distinguished road
Quote:
Originally Posted by ssss View Post
Did you include the alias for foamextend in your .bashrc file?
yes, I just follow tthe instruction of the foam extend installation guide. And source the bashrc in /etc. However, not any command can be found.
KangX1 is offline   Reply With Quote

Old   August 10, 2015, 14:58
Default
  #5
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 to all!

@KangX1: Then something very wrong happened while building foam-extend 3.1.

Please do the following steps, for diagnosing the problem:
  1. Start a new terminal.
  2. Run this command:
    Code:
    echo $WM_PROJECT_DIR
    • If the command gave you nothing, then it's what we want.
    • If the command gave you something, then it probably will lead to confusion between the two versions. You will need to edit the file "~/.bashrc" and comment out any explicit lines that refer to OpenFOAM or foam-extend and that start with "source" or ".".
  3. If the command gave you nothing, now run:
    Code:
    fe31
    Then run the previous command again:
    Code:
    echo $WM_PROJECT_DIR
    It should tell you the path to where foam-extend 3.1 is located.
  4. If everything is going well so far, run:
    Code:
    foam
    ./Allwmake.firstInstall > log.make 2>&1
  5. Now run:
    Code:
    which blockMesh
    • If it gives nothing or tells you that it can't find the file, then run:
      Code:
      gzip < log.make > log.make.gz
      And attach the file "log.make.gz" to your next post.
    • If it tells you where blockMesh is located, then it's all OK.
As soon as we can see the contents of the file "log.make", it's possible to diagnose the problem.


Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 10, 2015, 15:12
Default
  #6
New Member
 
LOU Lida
Join Date: Mar 2015
Posts: 18
Rep Power: 11
KangX1 is on a distinguished road
I've tried the method above. Here's the log file.
Many Thanks,
Attached Files
File Type: gz log.make.gz (21.9 KB, 58 views)
KangX1 is offline   Reply With Quote

Old   August 10, 2015, 16:15
Default
  #7
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
Thanks, that makes it a lot easier to diagnose!

OK, first problem is that rpm is not installed. Did you install the suggested packages, as listed here: http://openfoamwiki.net/index.php/In...u#Ubuntu_14.04 - namely as explained in section "2.3 Ubuntu 14.04"?

The other errors are mostly related to the missing rpm installation, but the error related to blockMesh is because the package "libiberty-dev" is also not installed on your system.

Therefore, all indicates that the problem is that the necessary packages for building foam-extend are not yet installed in your system, as instructed in http://openfoamwiki.net/index.php/In...u#Ubuntu_14.04
wyldckat is offline   Reply With Quote

Old   August 10, 2015, 22:27
Default
  #8
New Member
 
LOU Lida
Join Date: Mar 2015
Posts: 18
Rep Power: 11
KangX1 is on a distinguished road
It works!!!!!!!
Thannnnnnnks!!!
KangX1 is offline   Reply With Quote

Old   September 22, 2015, 14:24
Default
  #9
New Member
 
Wojciech Gołąbek
Join Date: Dec 2013
Posts: 29
Rep Power: 12
Woj3x is on a distinguished road
I have a similar problem as KangX1 so I tryed to use your solution but when I tryed to run Allwmake.firstInstall the terminal begins to run script but but it takes more than 2 hours and still I can only see is this:


I suppose that It shouldn't be the problem but I got also openfoam 2.4.
I include the alias for both programs like this:


So I totally do not know what's happening
Thank you in advance for your help
Woj3x is offline   Reply With Quote

Old   September 22, 2015, 14:28
Default
  #10
New Member
 
LOU Lida
Join Date: Mar 2015
Posts: 18
Rep Power: 11
KangX1 is on a distinguished road
Quote:
Originally Posted by Woj3x View Post
I have a similar problem as KangX1 so I tryed to use your solution but when I tryed to run Allwmake.firstInstall the terminal begins to run script but but it takes more than 2 hours and still I can only see is this:


I suppose that It shouldn't be the problem but I got also openfoam 2.4.
I include the alias for both programs like this:


So I totally do not know what's happening
Thank you in advance for your help
Dear Woj3x,

Have installed the "rpm" package before you compile for the first time?
As @wyldckat said, missing that part will cause that problem as I did.

Thanks.
Lida
KangX1 is offline   Reply With Quote

Old   September 22, 2015, 14:51
Default
  #11
New Member
 
Wojciech Gołąbek
Join Date: Dec 2013
Posts: 29
Rep Power: 12
Woj3x is on a distinguished road
Yes I did and when I tryed to use it again I received the following massage:
Quote:
Reading package lists ... Done
Building dependency tree
Reading state information ... Done
Bison is already the newest version.
build-essential is already the newest version.
cmake is already the newest version.
flex is already the newest version.
libiberty-dev is already the newest version.
libncurses5-dev is already the newest version.
libXt-dev is already the newest version.
zlib1g-dev is already the newest version.
binutils-dev is already the newest version.
git-core is already the newest version.
graphviz is already the newest version.
libqt4-dev is already the newest version.
qt4-dev-tools is already the newest version.
rpm is already the newest version.
Mercurial is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-3.19.0-25 linux-headers-3.19.0-25-generic
linux-image-3.19.0-25-generic linux-image-extra-3.19.0-25-generic
To remove them, use the "apt-get autoremove".
So I suppose that I did it correct

Best regards,
W. Gołąbek
Woj3x is offline   Reply With Quote

Old   September 22, 2015, 14:54
Default
  #12
New Member
 
LOU Lida
Join Date: Mar 2015
Posts: 18
Rep Power: 11
KangX1 is on a distinguished road
Quote:
Originally Posted by Woj3x View Post
Yes I did and when I tryed to use it again I received the following massage:
So I suppose that I did it correct

Best regards,
W. Gołąbek

It seems rpm package is not the one. Maybe u can try compile it again with the log, and upload the log so that everyone can help u to find out where it goes wrong.

BR,
Lida
KangX1 is offline   Reply With Quote

Old   September 22, 2015, 15:03
Default
  #13
New Member
 
Wojciech Gołąbek
Join Date: Dec 2013
Posts: 29
Rep Power: 12
Woj3x is on a distinguished road
But problem is that I can't use this script:
Code:
foam
./Allwmake.firstInstall > log.make 2>&1
and I suppose that I need to use it to get this log (I am not sure becouse I am new in linux)
how long did it take in your case to run it? As I wrote before in my case after 2 hours script still has not executed.

Best regards,
W. Gołąbek
Woj3x is offline   Reply With Quote

Old   September 22, 2015, 15:08
Default
  #14
New Member
 
LOU Lida
Join Date: Mar 2015
Posts: 18
Rep Power: 11
KangX1 is on a distinguished road
only input this

"./Allwmake.firstInstall > log.make 2>&1"
in the terminal

In my case, my laptop used 3 hours or more to run it. It's normal to use hours to do it.
Take it easy and get some coffee : )

Lida
KangX1 is offline   Reply With Quote

Old   September 23, 2015, 07:38
Default
  #15
New Member
 
Wojciech Gołąbek
Join Date: Dec 2013
Posts: 29
Rep Power: 12
Woj3x is on a distinguished road
Ok I found way to solve my problem.
First of all I leaved my PC for all night and I supposed that it definitely should be done after this time but I was wrong. Terminal still perform something in the background (I mean I didn't see any action in terminal window) .
I decided to check foam-extend folder and I saw new file log.make when I opend it I saw question from script file 'Proceed without compiling ParaView [Y/n]' so I wrote Y in terminal and after less than an hour the script was finally executed.
I hope this will help sb with same problem. Thank you for your help KangX1

Best regards,
W. Gołąbek
Woj3x is offline   Reply With Quote

Old   September 23, 2015, 10:34
Default
  #16
New Member
 
LOU Lida
Join Date: Mar 2015
Posts: 18
Rep Power: 11
KangX1 is on a distinguished road
You are welcome.
KangX1 is offline   Reply With Quote

Old   October 21, 2015, 22:31
Default command not found
  #17
New Member
 
heidi
Join Date: Mar 2015
Posts: 6
Rep Power: 11
wendy987 is on a distinguished road
Dear fomers
I also try to install the foam-extend-3.1 on ubuntu 14.04 besides of240. I add

alias of240=’source $HOME/OpenFOAM/OpenFOAM-2.4.0/ect/bashrc’
alias fe31=’source $HOME/foam/foam-extend-3.1/ect/bashrc’

in $HOME/.bashrc

When I startup a new terminal, run of240, it success!
But when I startup a new terminal, run fe31, it show “command not found”.
Then I run env, the WM_PROJECT_DIR=/home/zhhy/foam/foam-extend-3.1

I don’t know why?
Who can help me, thank you!!
wendy987 is offline   Reply With Quote

Old   October 22, 2015, 16:14
Default
  #18
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
Quick answer:
Quote:
Originally Posted by wendy987 View Post
alias of240=’source $HOME/OpenFOAM/OpenFOAM-2.4.0/ect/bashrc’
alias fe31=’source $HOME/foam/foam-extend-3.1/ect/bashrc’
If looks like you manually wrote these lines here, because the correct lines are as follows:
Code:
alias of240='source $HOME/OpenFOAM/OpenFOAM-2.4.0/etc/bashrc'
alias fe31='source $HOME/foam/foam-extend-3.1/etc/bashrc'
Notice the 2 very small details:
  1. The correct quote character is ' and not
  2. The folder is named "etc", not "ect"
In addition, try running these commands:
Code:
ls $HOME/foam/foam-extend-3.1/etc/bashrc

source $HOME/foam/foam-extend-3.1/etc/bashrc
Does any of the two give you error messages?
wyldckat is offline   Reply With Quote

Old   October 24, 2015, 21:31
Default
  #19
New Member
 
heidi
Join Date: Mar 2015
Posts: 6
Rep Power: 11
wendy987 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer:

If looks like you manually wrote these lines here, because the correct lines are as follows:
Code:
alias of240='source $HOME/OpenFOAM/OpenFOAM-2.4.0/etc/bashrc'
alias fe31='source $HOME/foam/foam-extend-3.1/etc/bashrc'
Notice the 2 very small details:
  1. The correct quote character is ' and not
  2. The folder is named "etc", not "ect"
In addition, try running these commands:
Code:
ls $HOME/foam/foam-extend-3.1/etc/bashrc

source $HOME/foam/foam-extend-3.1/etc/bashrc
Does any of the two give you error messages?

This shows:

zhhy@zhhy:~$ ls $HOME/foam/foam-extend-3.1/etc/bashrc
/home/zhhy/foam/foam-extend-3.1/etc/bashrc
zhhy@zhhy:~$ source $HOME/foam/foam-extend-3.1/etc/bashrc
bash: /home/zhhy/foam/foam-extend-3.1/bin/foamGetSystemInfo: Permission Denied
bash: /home/zhhy/foam/foam-extend-3.1/bin/foamCleanPath:
Permission Denied
bash: /home/zhhy/foam/foam-extend-3.1/bin/foamCleanPath: Permission Denied
bash: /home/zhhy/foam/foam-extend-3.1/bin/foamCleanPath: Permission Denied
bash: /home/zhhy/foam/foam-extend-3.1/bin/foamCleanPath: Permission Denied
bash: /home/zhhy/foam/foam-extend-3.1/bin/foamCleanPath: Permission Denied
bash: /home/zhhy/foam/foam-extend-3.1/bin/foamCleanPath: Permission Denied
zhhy@zhhy:~$ sudo source $HOME/foam/foam-extend-3.1/etc/bashrc
[sudo] password for zhhy:
sudo:source: command not found

what can i do next?
wendy987 is offline   Reply With Quote

Old   October 25, 2015, 08:01
Default
  #20
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
Quick questions:
  1. What where the exact steps you took for downloading and unpacking foam-extend 3.1?
    • Or in other words, what steps did you take for getting the files into the folder "/home/zhhy/foam/foam-extend-3.1/"?
  2. What does this command give you?
    Code:
    ls -l /home/zhhy/foam/foam-extend-3.1/bin/foamCleanPath
wyldckat is offline   Reply With Quote

Reply

Tags
foam extend 3.1

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
[CGNS] CGNS converters available mbeaudoin OpenFOAM Meshing & Mesh Conversion 137 December 14, 2018 04:20
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 04:26
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19


All times are GMT -4. The time now is 09:27.