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

Error by OpenFOAM 2.2.1 installation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2013, 07:21
Default Error by OpenFOAM 2.2.1 installation
  #1
Member
 
Amin
Join Date: May 2013
Posts: 76
Rep Power: 12
Mirage12 is on a distinguished road
Hallo Foamers

I wanted to install the last released version of OpeFOAM (2.2.1) butafter typing :

Code:
                 sudo apt-get update
i got some error
Error :
Code:
Err http://www.openfoam.org precise Release.gpg
  Something wicked happened resolving 'www.openfoam.org:http' (-5 - No address associated with hostname)
Ign http://www.openfoam.org precise Release               
Ign http://www.openfoam.org precise/main TranslationIndex  
Err http://www.openfoam.org precise/main amd64 Packages    
  Something wicked happened resolving 'www.openfoam.org:http' (-5 - No address associated with hostname)
Err http://www.openfoam.org precise/main i386 Packages    
  Something wicked happened resolving 'www.openfoam.org:http' (-5 - No address associated with hostname)
Err http://www.openfoam.org precise/main Translation-en_IN
  Something wicked happened resolving 'www.openfoam.org:http' (-5 - No address associated with hostname)
Err http://www.openfoam.org precise/main Translation-en
  Something wicked happened resolving 'www.openfoam.org:http' (-5 - No address associated with hostname)
Hit http://sgposd03.apac.bosch.com precise Release.gpg
Hit http://sgposd03.apac.bosch.com precise-updates Release.gpg
Hit http://sgposd03.apac.bosch.com precise-security Release.gpg
Hit http://sgposd03.apac.bosch.com precise Release.gpg
Hit http://sgposd03.apac.bosch.com precise Release.gpg
Hit http://sgposd03.apac.bosch.com ./ Release.gpg
Hit http://sgposd03.apac.bosch.com precise Release.gpg
Hit http://sgposd03.apac.bosch.com precise Release.gpg
Hit http://sgposd03.apac.bosch.com precise Release
Hit http://sgposd03.apac.bosch.com precise-updates Release
Hit http://sgposd03.apac.bosch.com precise-security Release                       
Hit http://sgposd03.apac.bosch.com precise Release                                
Hit http://sgposd03.apac.bosch.com precise Release                                
Hit http://sgposd03.apac.bosch.com ./ Release                                     
Hit http://sgposd03.apac.bosch.com precise Release                                
Hit http://sgposd03.apac.bosch.com precise Release                                
Hit http://sgposd03.apac.bosch.com precise/main amd64 Packages                    
Hit http://sgposd03.apac.bosch.com precise/restricted amd64 Packages
Hit http://sgposd03.apac.bosch.com precise/universe amd64 Packages
Hit http://sgposd03.apac.bosch.com precise/main i386 Packages
Hit http://sgposd03.apac.bosch.com precise/restricted i386 Packages
Hit http://sgposd03.apac.bosch.com precise/universe i386 Packages
Ign http://sgposd03.apac.bosch.com precise/main TranslationIndex
Ign http://sgposd03.apac.bosch.com precise/restricted TranslationIndex
Ign http://sgposd03.apac.bosch.com precise/universe TranslationIndex
Hit http://sgposd03.apac.bosch.com precise-updates/main amd64 Packages
Hit http://sgposd03.apac.bosch.com precise-updates/restricted amd64 Packages
Hit http://sgposd03.apac.bosch.com precise-updates/universe amd64 Packages
Hit http://sgposd03.apac.bosch.com precise-updates/main i386 Packages
Hit http://sgposd03.apac.bosch.com precise-updates/restricted i386 Packages
Hit http://sgposd03.apac.bosch.com precise-updates/universe i386 Packages
Ign http://sgposd03.apac.bosch.com precise-updates/main TranslationIndex
Ign http://sgposd03.apac.bosch.com precise-updates/restricted TranslationIndex
Ign http://sgposd03.apac.bosch.com precise-updates/universe TranslationIndex
Hit http://sgposd03.apac.bosch.com precise-security/main amd64 Packages
Hit http://sgposd03.apac.bosch.com precise-security/restricted amd64 Packages
Hit http://sgposd03.apac.bosch.com precise-security/universe amd64 Packages
Hit http://sgposd03.apac.bosch.com precise-security/main i386 Packages
Hit http://sgposd03.apac.bosch.com precise-security/restricted i386 Packages
Hit http://sgposd03.apac.bosch.com precise-security/universe i386 Packages
Ign http://sgposd03.apac.bosch.com precise-security/main TranslationIndex
Ign http://sgposd03.apac.bosch.com precise-security/restricted TranslationIndex
Ign http://sgposd03.apac.bosch.com precise-security/universe TranslationIndex
Hit http://sgposd03.apac.bosch.com precise/multiverse amd64 Packages
Hit http://sgposd03.apac.bosch.com precise/multiverse i386 Packages
Ign http://sgposd03.apac.bosch.com precise/multiverse TranslationIndex
Hit http://sgposd03.apac.bosch.com precise/main amd64 Packages
Hit http://sgposd03.apac.bosch.com precise/main i386 Packages
Ign http://sgposd03.apac.bosch.com precise/main TranslationIndex
Hit http://sgposd03.apac.bosch.com ./ Packages             
Hit http://sgposd03.apac.bosch.com precise/main amd64 Packages
Hit http://sgposd03.apac.bosch.com precise/main i386 Packages
Ign http://sgposd03.apac.bosch.com precise/main TranslationIndex
Hit http://sgposd03.apac.bosch.com precise/partner amd64 Packages
Hit http://sgposd03.apac.bosch.com precise/partner i386 Packages
Ign http://sgposd03.apac.bosch.com precise/partner TranslationIndex
Ign http://sgposd03.apac.bosch.com ./ Translation-en_IN    
Ign http://sgposd03.apac.bosch.com ./ Translation-en
Ign http://sgposd03.apac.bosch.com precise/main Translation-en_IN
Ign http://sgposd03.apac.bosch.com precise/main Translation-en
Ign http://sgposd03.apac.bosch.com precise/restricted Translation-en_IN
Ign http://sgposd03.apac.bosch.com precise/restricted Translation-en
Ign http://sgposd03.apac.bosch.com precise/universe Translation-en_IN
Ign http://sgposd03.apac.bosch.com precise/universe Translation-en
Ign http://sgposd03.apac.bosch.com precise-updates/main Translation-en_IN
Ign http://sgposd03.apac.bosch.com precise-updates/main Translation-en
Ign http://sgposd03.apac.bosch.com precise-updates/restricted Translation-en_IN
Ign http://sgposd03.apac.bosch.com precise-updates/restricted Translation-en
Ign http://sgposd03.apac.bosch.com precise-updates/universe Translation-en_IN
Ign http://sgposd03.apac.bosch.com precise-updates/universe Translation-en
Ign http://sgposd03.apac.bosch.com precise-security/main Translation-en_IN
Ign http://sgposd03.apac.bosch.com precise-security/main Translation-en
Ign http://sgposd03.apac.bosch.com precise-security/restricted Translation-en_IN
Ign http://sgposd03.apac.bosch.com precise-security/restricted Translation-en
Ign http://sgposd03.apac.bosch.com precise-security/universe Translation-en_IN
Ign http://sgposd03.apac.bosch.com precise-security/universe Translation-en
Ign http://sgposd03.apac.bosch.com precise/multiverse Translation-en_IN
Ign http://sgposd03.apac.bosch.com precise/multiverse Translation-en
Ign http://sgposd03.apac.bosch.com precise/main Translation-en_IN
Ign http://sgposd03.apac.bosch.com precise/main Translation-en
Ign http://sgposd03.apac.bosch.com precise/main Translation-en_IN
Ign http://sgposd03.apac.bosch.com precise/main Translation-en
Ign http://sgposd03.apac.bosch.com precise/partner Translation-en_IN
Ign http://sgposd03.apac.bosch.com precise/partner Translation-en
W: Failed to fetch http://www.openfoam.org/download/ubuntu/dists/precise/Release.gpg  Something wicked happened resolving 'www.openfoam.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://www.openfoam.org/download/ubuntu/dists/precise/main/binary-amd64/Packages  Something wicked happened resolving 'www.openfoam.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://www.openfoam.org/download/ubuntu/dists/precise/main/binary-i386/Packages  Something wicked happened resolving 'www.openfoam.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://www.openfoam.org/download/ubuntu/dists/precise/main/i18n/Translation-en_IN  Something wicked happened resolving 'www.openfoam.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://www.openfoam.org/download/ubuntu/dists/precise/main/i18n/Translation-en  Something wicked happened resolving 'www.openfoam.org:http' (-5 - No address associated with hostname)

E: Some index files failed to download. They have been ignored, or old ones used instead.
so i downloaded openfoam221_0-1_i386.deb from source forge and wanted to install openFoam from the package.

after moving openfoam221_0-1_i386.deb to /var/cache/apt/archives/ i typed in the terminal
Code:
sudo dpkg --install openfoam221_0-1_i386.deb
but i got this error :
Code:
Selecting previously unselected package openfoam221:i386.
dpkg: error processing openfoam221_0-1_i386.deb (--install):
 openfoam221:i386 0-1 (Multi-Arch: no) is not co-installable with openfoam221:amd64 0-1 (Multi-Arch: no) which is currently installed
Errors were encountered while processing:
 openfoam221_0-1_i386.deb
so i tried to follow the instructions of this Link http://www.openfoam.org/download/source.php to install OF221.

but i had this problm :
Code:
No command 'setenv' found
I used this Link to solve the probleme ...but i am not able to use ./Allwmake

here what i did :

Code:
abm5kor@BMH301562:/opt/OpenFOAM$ setenv FOAM_INST_DIR /data/app/OpenFOAM 
No command 'setenv' found, did you mean:
 Command 'netenv' from package 'netenv' (universe)
setenv: command not found
abm5kor@BMH301562:/opt/OpenFOAM$ sudo apt-get install tcsh
[sudo] password for abm5kor: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
tcsh is already the newest version.
The following packages were automatically installed and are no longer required:
  python-configglue paraview-doc gir1.2-indicate-0.7 linux-headers-3.2.0-40 linux-headers-3.2.0-41 linux-headers-3.2.0-36
  firefox-globalmenu python-ubuntuone-storageprotocol libgl2ps0 python-protobuf libvtk5.8 python-vtk linux-headers-3.2.0-40-generic
  tcl8.5 python-twisted-names tk8.5 libpq5 python-support protobuf-compiler python-dirspec libprotoc7
  linux-headers-3.2.0-41-generic linux-headers-3.2.0-36-generic tcl-vtk libnetcdf6
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
abm5kor@BMH301562:/opt/OpenFOAM$ tcsh
BMH301562:/opt/OpenFOAM> setenv FOAM_INST_DIR /data/app/OpenFOAM 
BMH301562:/opt/OpenFOAM> foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.2.1/etc/cshrc 
foamDotFile=/data/app/OpenFOAM/OpenFOAM-2.2.1/etc/cshrc: Command not found.
BMH301562:/opt/OpenFOAM> if ( -f $foamDotFile ) source $foamDotFile 
foamDotFile: Undefined variable.
BMH301562:/opt/OpenFOAM> if ( -f $foamDotFile ) source $foamDotFile 
foamDotFile: Undefined variable.
BMH301562:/opt/OpenFOAM> exit
exit
abm5kor@BMH301562:/opt/OpenFOAM$ if ( -f $foamDotFile ) source $foamDotFile 
bash: syntax error near unexpected token `source'
abm5kor@BMH301562:/opt/OpenFOAM$ ./Allwmake. 
bash: ./Allwmake.: No such file or directory
abm5kor@BMH301562:/opt/OpenFOAM$ cd OpenFOAM-2.2.1/
abm5kor@BMH301562:/opt/OpenFOAM/OpenFOAM-2.2.1$ ./Allwmake
./Allwmake: 4: ./Allwmake: wmakeCheckPwd: not found
Error: Current directory is not $WM_PROJECT_DIR
    The environment variables are inconsistent with the installation.
    Check the OpenFOAM entries in your dot-files and source them.
abm5kor@BMH301562:/opt/OpenFOAM/OpenFOAM-2.2.1$ cd ..
abm5kor@BMH301562:/opt/OpenFOAM$ ls
OpenFOAM-2.2.1  OpenFOAM-2.2.1.tgz  ThirdParty-2.2.1  ThirdParty-2.2.1.tgz
i don't know what should i do ......
SOS
need ur help
Thx
Mirage12 is offline   Reply With Quote

Old   September 13, 2013, 07:37
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
It seems that you have a problem with apt sources (or DNS):

Code:
Something wicked happened resolving 'www.openfoam.org:http' (-5 - No address associated with hostname)
Don't remember exactly where Ubuntu stores it, something like /etc/apt/sources.lst or /etc/apt/sources.lst.d. Can you post its content?
alexeym is offline   Reply With Quote

Old   September 13, 2013, 07:50
Default
  #3
Member
 
Amin
Join Date: May 2013
Posts: 76
Rep Power: 12
Mirage12 is on a distinguished road
Hello alex

here :

deb http://www.openfoam.org/download/ubuntu precise main

what should i change in this file ?
Shoul i add
deb www.openfoam.org:http precise main
in the openfoam.list file ?
thx
Mirage12 is offline   Reply With Quote

Old   September 13, 2013, 09:00
Default
  #4
Member
 
Amin
Join Date: May 2013
Posts: 76
Rep Power: 12
Mirage12 is on a distinguished road
SOS
Mirage12 is offline   Reply With Quote

Old   September 13, 2013, 09:22
Default
  #5
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Quote:
Originally Posted by Mirage12 View Post
SOS
1. There's a possibility that you had temporal problem with DNS and if you run apt-get update now everything will be OK.

2. If you'd like to install OpenFOAM compiling it from sources then do the bash part (i.e. source $HOME/OpenFOAM/OpenFOAM-2.2.1/etc/bashrc). AFAIK in Ubuntu by default you'll get bash as your shell. Even if you install tcsh it will not become default shell automatically.
alexeym is offline   Reply With Quote

Old   September 13, 2013, 09:27
Default
  #6
Member
 
Amin
Join Date: May 2013
Posts: 76
Rep Power: 12
Mirage12 is on a distinguished road
what do you mean with :
Quote:
There's a possibility that you had temporal problem with DNS and if you run apt-get update now everything will be OK
Shoul i add
deb www.openfoam.org:http precise main
in the openfoam.list file ?
Mirage12 is offline   Reply With Quote

Old   September 13, 2013, 09:30
Default
  #7
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Quote:
Originally Posted by Mirage12 View Post
Shoul i add
deb www.openfoam.org:http precise main
in the openfoam.list file ?
No. The entry in the sources file is correct.
To be sure you can delete old file and create it again with something like:

Code:
$ sudo rm /etc/apt/sources.list.d/openfoam.list
$ sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu $VERS main > /etc/apt/sources.list.d/openfoam.list"
alexeym is offline   Reply With Quote

Old   September 13, 2013, 09:41
Default
  #8
Member
 
Amin
Join Date: May 2013
Posts: 76
Rep Power: 12
Mirage12 is on a distinguished road
i still have the same problem....
Mirage12 is offline   Reply With Quote

Old   September 13, 2013, 10:41
Default
  #9
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!

@Amin: To install a deb package directly, for example, run this command as root:
Code:
dpkg -i openfoam221_0-1_i386.deb
As for not accessing the outside network, it's likely that you are using VirtualBox, correct? Either that or your network connection has a constraint for not accessing outside of the internal network.

As for sourcing the "bashrc" file, here's some reading material: Advanced tips for working with the OpenFOAM shell environment

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   October 11, 2013, 09:44
Red face Ckeck if any error
  #10
Senior Member
 
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 13
Maimouna is on a distinguished road
Hi,
I just new in OpenFOAM.
I installed the latest version of OpenFOAM 2.2.1 and ParaView 3.12.0. Every thing was ok, but I am worry about running if it is working properly or not ( snapshot screen was attached). Could you please look at snapshot screen and let me know if any problem with running.

Cheers
Attached Images
File Type: jpg Screenshot from 2013-10-11 12_15_29.jpg (35.5 KB, 15 views)
Maimouna is offline   Reply With Quote

Old   October 11, 2013, 14:39
Default
  #11
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 Maimouna and welcome to the forum!

From the screen-shot you shared, it seems to be working just fine.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   October 13, 2013, 07:03
Default
  #12
Senior Member
 
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 13
Maimouna is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Maimouna and welcome to the forum!

From the screen-shot you shared, it seems to be working just fine.

Best regards,
Bruno
Dear wyldckat
many thanks for your reply. I hope everything will be fine.

Cheers
Maimouna is offline   Reply With Quote

Old   October 13, 2013, 10:35
Default
  #13
Senior Member
 
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 13
Maimouna is on a distinguished road
Quote:
Originally Posted by Maimouna View Post
Dear wyldckat
many thanks for your reply. I hope everything will be fine.

Cheers
I would like to ask about OpenFoam videos. Where I can find some?
I found some in youtube. But are there any room of OpenFoam and how to use paraFoam in this forum?

Best regards
Maimouna is offline   Reply With Quote

Old   October 13, 2013, 14:43
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
Hi Maimouna,

The main OpenFOAM is here: http://www.cfd-online.com/Forums/openfoam/
From there you can see all of the sub-forums.

These threads explain how to use the forums:
And I know there was a thread about videos made in the effort to support science and engineering by the Indian government... ah, it's this one: http://www.cfd-online.com/Forums/ope...tutorials.html

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 28, 2013, 02:48
Default
  #15
Senior Member
 
Srivathsan N
Join Date: Jan 2013
Location: India
Posts: 101
Rep Power: 13
Sherlock_1812 is on a distinguished road
Greetings Bruno,

I wanted to re-install OF2.2.2. So i uninstalled it by doing rm -rf openfoam222 (the same for paraview) in the /opt directory. When I try to install it again, it says
Code:
openfoam222 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Have I uninstalled it correctly? Did I miss something?

Do I need to change some other file?

Thanks in advance.
__________________
Regards,

Srivaths
Sherlock_1812 is offline   Reply With Quote

Old   November 29, 2013, 14:15
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
Greetings Srivaths,

Yes, you uninstalled it incorrectly . You should have used the same installation command, with the "remove" option instead of "install"
In other words:
Code:
sudo apt-get remove openfoam222 paraviewopenfoam3120
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 30, 2013, 01:53
Default
  #17
Senior Member
 
Srivathsan N
Join Date: Jan 2013
Location: India
Posts: 101
Rep Power: 13
Sherlock_1812 is on a distinguished road
Thanks Bruno. I did that and have started afresh.
__________________
Regards,

Srivaths
Sherlock_1812 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
[OpenFOAM.com] OpenFOAM 1.7.1 installation on LINUX UBUNTU 10.10 electrosin OpenFOAM Installation 40 May 31, 2016 05:11
Openfoam 2.1 installation in ubuntu 12.04 jsm OpenFOAM Installation 11 May 7, 2012 04:56
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55
Installation of OpenFOAM 1.7.1 to OprnSUSE 11.2 superfxfund OpenFOAM Installation 3 November 11, 2010 02:15
Some Query on Installation of OpenFoam lzgwhy OpenFOAM Installation 1 July 15, 2009 03:20


All times are GMT -4. The time now is 10:20.