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

OpenFOAM Installation on Debian-testing 64 bit

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 26, 2012, 20:05
Default OpenFOAM Installation on Debian-testing 64 bit
  #1
New Member
 
andrea facci
Join Date: Jan 2012
Posts: 3
Rep Power: 14
Afacci is on a distinguished road
Hi everybody

I found an issue compiling openFOAM (both -2.x.x and -ext version) on a Debian-testing 64 bit system.
Some application (setSet for instance) were not correctly compiled because the "liblncurses5-dev" package was missing.
If anyone experiences the same problem installing "liblncurses5-dev" from Debian repository should fix if.

Hi
Andrea.
Afacci is offline   Reply With Quote

Old   June 27, 2012, 16:25
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 Andrea,

The usual package that setSet uses and that needs to be installed on Debian and Ubuntu is either one of the following (source: http://www.openfoam.org/download/source.php ):
Code:
libreadline-dev
libreadline5-dev
libreadline6-dev
The package you mention is very likely one that also installs one of the packages above. Additionally, it's also possible that in the testing section of Debian there is a broken dependency which is only fixed by installing the package you've stated.

You should be able to ascertain if the packages I mentioned are installed or not in your system:
Code:
dpkg-query -l libreadline-dev libreadline5-dev libreadline6-dev
Additionally, I've checked online:
Maybe you've got a very old testing version of Debian?


Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 27, 2012, 17:27
Default
  #3
New Member
 
andrea facci
Join Date: Jan 2012
Posts: 3
Rep Power: 14
Afacci is on a distinguished road
Hy Wyldckat
Thank you for the feedback,

You're absolutely right the package "liblncurses5-dev" does not exist, I misspelled the name; the right package is "libncurses5-dev". I apologize about that.

All the packages You mentioned :
libreadline-dev libreadline5-dev libreadline6-devwere already installed on my system but trying to compile the setSet application gave me the following error

Found <readline/readline.h> -- enabling readline support.
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.0.1/src/meshTools/lnInclude -DHAS_READLINE -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.0.1/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.0.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/writePointSet.o Make/linux64GccDPOpt/writeFuns.o Make/linux64GccDPOpt/writePatch.o Make/linux64GccDPOpt/setSet.o -L/opt/OpenFOAM/OpenFOAM-2.0.1/platforms/linux64GccDPOpt/lib \
-lmeshTools -lreadline -lncurses -lOpenFOAM -ldl -lm -o /opt/OpenFOAM/OpenFOAM-2.0.1/platforms/linux64GccDPOpt/bin/setSet
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make: *** [/opt/OpenFOAM/OpenFOAM-2.0.1/platforms/linux64GccDPOpt/bin/setSet] Error 1


As You can see the GNU linker (ld) cannot find the lncurses. This was fixed installing the package "libncurses5-dev". I am pretty sure of this, I just double-checked on another Debian system.
Moreover the Debian-testing I'm using is the newest available and it is updated almost every day.

The list of packages You reported from http://www.openfoam.org/download/source.php is secifically designed to work for Ubuntu systems. I know that Ubuntu is based on Debian, nevertheless the dependency tree may be slightly different.
I guess, but I'm not sure that libncurses5-dev may be installed as a dependecy for one of the package You listed under Ubuntu.

Thaks
Andrea.
Afacci is offline   Reply With Quote

Old   June 27, 2012, 18:05
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 Andrea,

Mmm... interesting... I've checked the dependency list and it seems that libreadline5 doesn't need libncurses, but libreadline6 (default for Ubuntu 11.10 when using libreadline) does need libncurses5 and is installed by default along with libreadline6.

So, maybe they fixed this dependency on Debian... here we go:
I'm going to see if I remember testing this on Ubuntu 12.04 next weekend, where this is very likely will also occur!
Mmm, some preliminary checking: http://packages.ubuntu.com/precise/libreadline6 - also doesn't depend on libncurses5...
Well, on OpenFOAM's official instructions, it doesn't say it supports 12.04 ... at least not at the time of this writing : http://www.openfoam.org/download/source.php

Nonetheless, I'll see if I give it a spin and cross-check your finding on Ubuntu 12.04

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 30, 2012, 18:54
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Update: I've tested this in Ubuntu 12.04 and came to the same conclusion: the alias "libncurses-dev" or direct "libncurses5-dev" package has to be installed as well.

I've reported this here: http://www.openfoam.org/mantisbt/view.php?id=567
linch and Linse like 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
[Discussion] Restructuring the Installation page at openfoamwiki.net wyldckat OpenFOAM Installation 16 November 2, 2013 12:43
OpenFoam 2.0.0 installation Jan_Peters OpenFOAM Installation 86 April 27, 2012 06:32
OpenFoam 2.0.1 installation shailesh.nitk OpenFOAM Installation 4 October 4, 2011 09:50
OpenFOAM Installation rclprice OpenFOAM Installation 1 July 21, 2011 17:31
OpenFOAM 15 and CentOS 52 installation issues remrich OpenFOAM Bugs 9 March 20, 2009 02:48


All times are GMT -4. The time now is 23:21.