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

[foam-extend.org] Having trouble following the installation instructions for foam-extend 3.1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 3, 2015, 10:02
Default Having trouble following the installation instructions for foam-extend 3.1
  #1
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Another question. while installing extend 3.1 there is a command saying "
# Create a prefs.sh file
cp etc/prefs.sh-EXAMPLE etc/prefs.sh
i dont know what to do with it ,how to make a prefs.sh file and in which directory.
cliff is offline   Reply With Quote

Old   February 3, 2015, 14:52
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
Quick question: Which specific installation instructions are you following?

Quick suggestion: If you're not yet familiar with the command line (shell), then please study this wiki page: http://openfoamwiki.net/index.php/In...with_the_Shell
wyldckat is offline   Reply With Quote

Old   February 4, 2015, 05:48
Default Error during the installation of foam-extend 3.1 ubuntu 14.04
  #3
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Hi. i followed the instruction in http://www.tfd.chalmers.se/~hani/kur...OwnLaptop.html but when i type "f31" this error shows up
Code:
bash: /opt/foam-extend-3.1/bin/foamGetSystemInfo: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/etc/settings.sh: No such file or directory
bash: /opt/foam-extend-3.1/etc/aliases.sh: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory

Last edited by wyldckat; February 4, 2015 at 15:01. Reason: Added [CODE][/CODE]
cliff is offline   Reply With Quote

Old   February 4, 2015, 10:23
Default
  #4
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: Install foam-extend 3.1, which is the latest version. Instructions available here: http://openfoamwiki.net/index.php/In...oam-extend-3.1
Hi bruno. i have followed the instruction you adressed but when typing fe31 in terminal this error shows up
Code:
bash: /opt/foam-extend-3.1/bin/foamGetSystemInfo: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/etc/settings.sh: No such file or directory
bash: /opt/foam-extend-3.1/etc/aliases.sh: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
could you please help me?
note that in the second step i skiped this error
Code:
root@sepinood-Inspiron-N5010:~# sudo apt-get install git-core build-essential binutils-dev cmake flex \
> bison zlib1g-dev qt4-dev-tools libqt4-dev libncurses5-dev libiberty-dev\
> libxt-dev rpm mercurial graphviz
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libiberty-devlibxt-dev
maybe its because of that

Last edited by wyldckat; February 4, 2015 at 15:02. Reason: Added [CODE][/CODE]
cliff is offline   Reply With Quote

Old   February 4, 2015, 10:44
Default foam-extend 3.1
  #5
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
I am using ubuntu 14.04LTS and in second step of foam-extend 3.1 instruction when typing
Code:
sudo apt-get install git-core build-essential binutils-dev cmake flex \ bison zlib1g-dev qt4-dev-tools libqt4-dev libncurses5-dev libiberty-dev\ libxt-dev rpm mercurial graphviz
this error shows up!

Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libiberty-devlibxt-dev

Last edited by wyldckat; February 4, 2015 at 15:03. Reason: Added [CODE][/CODE]
cliff is offline   Reply With Quote

Old   February 4, 2015, 15:17
Default
  #6
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 mojtaba,

The first problem is because you has not properly studied these instructions: http://openfoamwiki.net/index.php/In...nFOAM_versions
In other words, the idea is that you need to:
  1. Edit the file "~/.bashrc" with a text editor.
  2. Find the lines where you have OpenFOAM and foam-extend versions listed. For example:
    Code:
    source /opt/openfoam231/etc/bashrc
  3. For example, replace that line with this:
    Code:
    alias of231='source /opt/openfoam231/etc/bashrc'
    alias fe31='source $HOME/foam/foam-extend-3.1/etc/bashrc'
  4. Start a new terminal window or a new separator (also known as a "tab").
  5. Only run commands as "root" if and only if you need to install system packages. If you need to install OpenFOAM or foam-extend from source code, please follow the instructions in normal user mode, not in "root" mode.

Sorry, the second problem is because the wiki had an error, where it was missing a space near the end of the second line. Please try running the following command:
Code:
sudo apt-get install git-core build-essential binutils-dev cmake flex \
bison zlib1g-dev qt4-dev-tools libqt4-dev libncurses5-dev libiberty-dev \
libxt-dev rpm mercurial graphviz
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 5, 2015, 06:05
Default foam-extend 3.1
  #7
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings mojtaba,

The first problem is because you has not properly studied these instructions: http://openfoamwiki.net/index.php/In...nFOAM_versions
In other words, the idea is that you need to:
  1. Edit the file "~/.bashrc" with a text editor.
  2. Find the lines where you have OpenFOAM and foam-extend versions listed. For example:
    Code:
    source /opt/openfoam231/etc/bashrc
  3. For example, replace that line with this:
    Code:
    alias of231='source /opt/openfoam231/etc/bashrc'
    alias fe31='source $HOME/foam/foam-extend-3.1/etc/bashrc'
  4. Start a new terminal window or a new separator (also known as a "tab").
  5. Only run commands as "root" if and only if you need to install system packages. If you need to install OpenFOAM or foam-extend from source code, please follow the instructions in normal user mode, not in "root" mode.

Sorry, the second problem is because the wiki had an error, where it was missing a space near the end of the second line. Please try running the following command:
Code:
sudo apt-get install git-core build-essential binutils-dev cmake flex \
bison zlib1g-dev qt4-dev-tools libqt4-dev libncurses5-dev libiberty-dev \
libxt-dev rpm mercurial graphviz
Best regards,
Bruno
Hi bruno thanks for your answer. i followed what you said but at the last step when typing
./Allwmake.firstInstal

in the process of compiling i saw some errors but compiling was done. is it
okay or not?
As its been said in wiki when i start a new terminal i type f31, but running
tutorials is my problem. in step 4 after typing
mkdir -p
$FOAM_RUN
this error appears
mkdir: missing operand
Try 'mkdir --help' for more information.
what am i missing?
cliff is offline   Reply With Quote

Old   February 5, 2015, 15:24
Default
  #8
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
Please run the following command:
Code:
tail $HOME/.bashrc
and show us what the command has given you.
wyldckat is offline   Reply With Quote

Old   February 5, 2015, 16:12
Default foam-extend 3.1
  #9
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Please run the following command:
Code:
tail $HOME/.bashrc
and show us what the command has given you.
I typed what you said and this was the result;

alias fe31='source $HOME/foam/foam-extend-3.1/etc/bashrc'
alias fe31='source $HOME/foam/foam-extend-3.1/etc/bashrc'
alias OF23x='. /home/sepinood/OpenFOAM/OpenFOAM-2.3.x/etc/bashrc'
alias fe31='source $HOME/foam/foam-extend-3.1/etc/bashrc'
alias f31='. $HOME/foam/foam-extend-3.1/etc/bashrc'
alias fe31='source $HOME/foam/foam-extend-3.1/etc/bashrc'
alias fe31='source $HOME/foam/foam-extend-3.1/etc/bashrc'
alias fe31='source $HOME/foam/foam-extend-3.1/etc/bashrc'
alias fe31='source $HOME/foam/foam-extend-3.1/etc/bashrc'
cliff is offline   Reply With Quote

Old   February 6, 2015, 08:49
Default
  #10
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
Start a new terminal window. Then what do these 2 commands give you?
Code:
source $HOME/foam/foam-extend-3.1/etc/bashrc

which foamJob
wyldckat is offline   Reply With Quote

Old   February 6, 2015, 09:37
Default foam-extend 3.1
  #11
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Start a new terminal window. Then what do these 2 commands give you?
Code:
source $HOME/foam/foam-extend-3.1/etc/bashrc

which foamJob
The first command gives no error, it seems OK
sepinood@sepinood-Inspiron-N5010:~$ source $HOME/foam/foam-extend-3.1/etc/bashrc
sepinood@sepinood-Inspiron-N5010:~$
The second command :
sepinood@sepinood-Inspiron-N5010:~$ which foamJob
/home/sepinood/foam/foam-extend-3.1/bin/foamJob
sepinood@sepinood-Inspiron-N5010:~$
cliff is offline   Reply With Quote

Old   February 7, 2015, 05:35
Default
  #12
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
OK, then try to follow these steps:
Code:
source $HOME/foam/foam-extend-3.1/etc/bashrc 
foam
./Allwmake.firstInstall > log.make 2>&1

source $HOME/foam/foam-extend-3.1/etc/bashrc 
which icoFoam
which paraview
and if all goes well, please indicate what the last 2 lines give you.
wyldckat is offline   Reply With Quote

Old   February 7, 2015, 10:16
Default foam-extend 3.1
  #13
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
OK, then try to follow these steps:
Code:
source $HOME/foam/foam-extend-3.1/etc/bashrc 
foam
./Allwmake.firstInstall > log.make 2>&1

source $HOME/foam/foam-extend-3.1/etc/bashrc 
which icoFoam
which paraview
and if all goes well, please indicate what the last 2 lines give you.
First and second command seem OK but after typing
./Allwmake.firstInstall > log.make 2>&1
it shows Permission denied error.
This is my terminal window:

sepinood@sepinood-Inspiron-N5010:~$ source $HOME/foam/foam-extend-3.1/etc/bashrc
sepinood@sepinood-Inspiron-N5010:~$ foam
sepinood@sepinood-Inspiron-N5010:~/foam/foam-extend-3.1$ ./Allwmake.firstInstall > log.make 2>&1
bash: log.make: Permission denied
sepinood@sepinood-Inspiron-N5010:~/foam/foam-extend-3.1$
cliff is offline   Reply With Quote

Old   February 7, 2015, 10:28
Default
  #14
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
That's what happens when you do too many commands with root powers. To revert the folder for your own user to be able to make the installation, run:
Code:
sudo chown -R $USER:$USER $HOME/foam
Then run again the commands I indicated in the previous post.
wyldckat is offline   Reply With Quote

Old   February 7, 2015, 16:51
Default
  #15
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
That's what happens when you do too many commands with root powers. To revert the folder for your own user to be able to make the installation, run:
Code:
sudo chown -R $USER:$USER $HOME/foam
Then run again the commands I indicated in the previous post.
I did what you said and after typing ./Allwmake.firstInstall > log.make 2>&1 it took a long time but nothing compiled i mean like the other "/.Allwmake" commands that run some installations or unpacking some sort of the OF packages. and the last two commands gave nothing.
This is my terminal:


sepinood@sepinood-Inspiron-N5010:~/foam/foam-extend-3.1$ ./Allwmake.firstInstall > log.make 2>&1
sepinood@sepinood-Inspiron-N5010:~/foam/foam-extend-3.1$ source $HOME/foam/foam-extend-3.1/etc/bashrc
sepinood@sepinood-Inspiron-N5010:~/foam/foam-extend-3.1$ which icoFoam
sepinood@sepinood-Inspiron-N5010:~/foam/foam-extend-3.1$ which paraview
sepinood@sepinood-Inspiron-N5010:~/foam/foam-extend-3.1$
cliff is offline   Reply With Quote

Old   February 7, 2015, 17:12
Default
  #16
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
OK, now we've reached a stage where we can begin diagnosing what's going on wrong with the build process. If possible, please compress the file "log.make" and attach it to your next post.
If you do not know how to compress a file, then run the following command:
Code:
tar -czf log.make.tar.gz log.make
The resulting file "log.make.tar.gz" is the one that I need so that I can see what went wrong.
If the file is larger than 100kB, then please use a file sharing service to provide said file.
wyldckat is offline   Reply With Quote

Old   February 7, 2015, 17:37
Default
  #17
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
OK, now we've reached a stage where we can begin diagnosing what's going on wrong with the build process. If possible, please compress the file "log.make" and attach it to your next post.
If you do not know how to compress a file, then run the following command:
Code:
tar -czf log.make.tar.gz log.make
The resulting file "log.make.tar.gz" is the one that I need so that I can see what went wrong.
If the file is larger than 100kB, then please use a file sharing service to provide said file.
there is just a line on a gedit file saying:
bash: ./Allwmake: No such file or directorylog.make.tar.gz
cliff is offline   Reply With Quote

Old   February 7, 2015, 17:43
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
That is very strange.
Then run the following commands:
Code:
source $HOME/foam/foam-extend-3.1/etc/bashrc
foam
pwd
ls -l
and let me know what they gave you.
wyldckat is offline   Reply With Quote

Old   February 7, 2015, 18:00
Default foam-extend 3.1
  #19
Member
 
mojtaba
Join Date: Dec 2014
Location: iran
Posts: 41
Rep Power: 11
cliff is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
That is very strange.
Then run the following commands:
Code:
source $HOME/foam/foam-extend-3.1/etc/bashrc
foam
pwd
ls -l
and let me know what they gave you.
Here are the results:
Code:
sepinood@sepinood-Inspiron-N5010:~$ source $HOME/foam/foam-extend-3.1/etc/bashrc
sepinood@sepinood-Inspiron-N5010:~$ foam
sepinood@sepinood-Inspiron-N5010:~/foam/foam-extend-3.1$ pwd
/home/sepinood/foam/foam-extend-3.1
sepinood@sepinood-Inspiron-N5010:~/foam/foam-extend-3.1$ ls -l
total 4584
-rwxr-xr-x  1 sepinood sepinood      40 فوریه  3 00:37 Allclean
-rwxr-xr-x  1 sepinood sepinood     831 فوریه  3 00:37 Allwmake
-rwxr-xr-x  1 sepinood sepinood    2498 فوریه  3 00:37 Allwmake.firstInstall
drwxr-xr-x  5 sepinood sepinood    4096 فوریه  7 22:29 applications
drwxr-xr-x  4 sepinood sepinood    4096 فوریه  3 00:37 bin
-rw-r--r--  1 sepinood sepinood    6921 فوریه  3 00:37 CMakeLists.txt
-rw-r--r--  1 sepinood sepinood   35147 فوریه  3 00:37 COPYING
-rw-r--r--  1 sepinood sepinood     572 فوریه  3 00:37 CTestConfig.cmake
drwxr-xr-x  5 sepinood sepinood    4096 فوریه  3 00:37 doc
drwxr-xr-x  4 sepinood sepinood    4096 فوریه  3 21:23 etc
drwxr-xr-x  2 sepinood sepinood    4096 فوریه  3 00:37 extend-bazaar
-rw-r--r--  1 sepinood sepinood    4876 فوریه  3 00:37 ExtendProjectPreamble
drwxrwxr-x  3 sepinood sepinood    4096 فوریه  7 20:54 lib
-rw-r--r--  1 sepinood sepinood    1617 فوریه  3 00:37 ListOfContributors
-rw-r--r--  1 sepinood sepinood 4501516 فوریه  8 00:09 log.make
drwxr-xr-x  2 sepinood sepinood    4096 فوریه  3 00:37 Macros
-rw-r--r--  1 sepinood sepinood   13457 فوریه  3 00:37 ReleaseNotes
-rw-r--r--  1 sepinood sepinood   21360 فوریه  3 00:37 ReleaseNotes.html
-rw-r--r--  1 sepinood sepinood   13539 فوریه  3 00:37 ReleaseNotes.txt
drwxr-xr-x 36 sepinood sepinood    4096 فوریه  3 00:37 src
drwxr-xr-x  4 sepinood sepinood    4096 فوریه  3 00:37 testHarness
drwxr-xr-x  6 sepinood sepinood    4096 فوریه  7 20:32 ThirdParty
drwxr-xr-x 20 sepinood sepinood    4096 فوریه  3 00:38 tutorials
drwxr-xr-x  4 sepinood sepinood    4096 فوریه  3 00:38 vagrantSandbox
drwxr-xr-x  6 sepinood sepinood    4096 فوریه  7 20:31 wmake

Last edited by wyldckat; February 8, 2015 at 05:20. Reason: Added [CODE][/CODE]
cliff is offline   Reply With Quote

Old   February 8, 2015, 05:25
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
OK, so apparently you compressed and provided the wrong file.
Start a new terminal and run:
Code:
source $HOME/foam/foam-extend-3.1/etc/bashrc
foam
tar -czf log.make.tar.gz log.make
pwd
The last command will tell you the full path to the folder where the file log.make.tar.gz" is located.
wyldckat is offline   Reply With Quote

Reply


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
[foam-extend.org] A problem about installation of open foam extend 3.1 Toalchemist OpenFOAM Installation 1 May 31, 2018 08:58
[foam-extend.org] Foam extend 3.2 wrong installation directory geop OpenFOAM Installation 0 May 11, 2016 05:52
[foam-extend.org] Error during the installation of foam-extend 3.1 shipman OpenFOAM Installation 6 April 18, 2016 06:37
ParaView-4.0.1 did not compile for foam extend 3.0 installation mhkenergy OpenFOAM Installation 8 June 4, 2014 02:26
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 18:45.