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

[OpenFOAM.org] Problem for OF-dev on linuxMint 18.2 Sonya

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 7, 2017, 17:23
Default Problem for OF-dev on linuxMint 18.2 Sonya
  #1
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 286
Blog Entries: 6
Rep Power: 17
student666 is on a distinguished road
Hi,

it's first time I'm using Mint, but I thought it was quite straight forward to install, just like Ubuntu, but...
when I follow instruction at
https://openfoam.org/download/dev-ubuntu/

I got the following message when I try to install
Code:
Unable to locate package openfoam-dev
If I follow this instruction

https://openfoam.org/download/4-1-ubuntu/

I have no problem.

Why? What can I do?

I would like to have -dev branch

thanks
student666 is offline   Reply With Quote

Old   July 8, 2017, 21:15
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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: Run the following commands:
Code:
echo "deb http://dl.openfoam.org/ubuntu xenial dev" | sudo tee -a /etc/apt/sources.list.d/openfoam.list
sudo sh -c "wget -O - http://dl.openfoam.org/gpg.key | apt-key add -"
sudo apt-get update
sudo apt-get -y install openfoam-dev
The reason is that Mint uses other names and therefore it doesn't have straight forward support. The trick shown above relies on adding the repository as if it were Ubuntu 16.04 "Xenial".


edit: I didn't notice before that it had worked for you to add the repository for OpenFOAM 4.1. Did you really use:
Code:
sudo add-apt-repository http://dl.openfoam.org/ubuntu
and it worked without problems?
If it did, I guess that the problem was the name of the sub-repository? Because the default is "main", but for OpenFOAM-dev, it needs to use the "dev" sub-repository...
__________________

Last edited by wyldckat; July 8, 2017 at 21:19. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   July 10, 2017, 07:34
Default
  #3
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 286
Blog Entries: 6
Rep Power: 17
student666 is on a distinguished road
Thank you Bruno.
This lines
Code:
echo "deb http://dl.openfoam.org/ubuntu xenial dev" | sudo tee -a /etc/apt/sources.list.d/openfoam.list
sudo sh -c "wget -O - http://dl.openfoam.org/gpg.key | apt-key add -"
sudo apt-get update
sudo apt-get -y install openfoam-dev
worked for me, but no paraFoam have been installed.

I think any package for paraview have been downloaded.

Should I download apart and run
Code:
./Allwmake
inside?

Code:
/opt/openfoam-dev/applications/utilities/postProcessing/graphics/PVReaders
student666 is offline   Reply With Quote

Old   July 10, 2017, 08:06
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 answers:
Quote:
Originally Posted by student666 View Post
but no paraFoam have been installed.

I think any package for paraview have been downloaded.
Try running:
Code:
sudo apt-get install paraviewopenfoam50
If it fails to install, then you might need to also add the "main" repository:
Code:
echo "deb http://dl.openfoam.org/ubuntu xenial main" | sudo tee -a /etc/apt/sources.list.d/openfoam.main.list
sudo apt-get update
sudo apt-get install paraviewopenfoam50
Quote:
Originally Posted by student666 View Post
Should I download apart and run
Code:
./Allwmake
inside?

Code:
/opt/openfoam-dev/applications/utilities/postProcessing/graphics/PVReaders
Should not be necessary.
wyldckat is offline   Reply With Quote

Old   July 10, 2017, 13:21
Default
  #5
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 286
Blog Entries: 6
Rep Power: 17
student666 is on a distinguished road
Hi Bruno,

indeed it was suceffully with both instructions you provided, but then I had the same problem.

I looked for a solution on the web and I found an old post from yours.

ThirdParty-2.1.0 installation error

After
Code:
wmSet
which paraview
it started working, sorry to ask about, but what in the specific I did?!?

Thanks
student666 is offline   Reply With Quote

Old   July 10, 2017, 18:30
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Quote:
Originally Posted by student666 View Post
After
Code:
wmSet
which paraview
it started working, sorry to ask about, but what in the specific I did?!?
Quick answer: It sort-of refreshed the environment. Essentially it did the usual command for loading/sourcing the OpenFOAM environment. You can check it by running:
Code:
alias wmSet
You can see all currently loaded aliases by running:
Code:
alias
If you're curious and want to learn more, see this wiki page: http://openfoamwiki.net/index.php/In...with_the_Shell
student666 likes this.
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
[Workbench] Workbench 18.2 SpaceClaim->Mechanical geometry accuracy/tolerance problem sultzan ANSYS Meshing & Geometry 0 December 13, 2018 18:41
Ansys 18.2 graphical problem centOS 7.5 rfmendes ANSYS 0 November 27, 2018 09:01
Mesh& steptime independant: conduction-convection problem Fati1 Main CFD Forum 1 October 28, 2018 14:52
Problem diverges when exhaust valve opens swerner0711 AVL FIRE 0 September 21, 2018 08:14
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 06:59


All times are GMT -4. The time now is 06:34.