|
[Sponsors] |
April 25, 2014, 01:50 |
OpenFOAM 2.3.0 on CentOS 6.5
|
#1 | |
New Member
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 15 |
Quote:
I am installing OpenFOAM-2.3.0 on centOS 6.5. I followed the instructions on http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL. I think I got the same error in the last command of step #16. I've attached my mkqt.log here. I tried to type the two commands of: Code:
sed -i -e 's/= gcc/= gcc48/' qt-everywhere-opensource-src-4.8.4/mkspecs/common/g++.conf sed -i -e 's/= g++/= g++48/' qt-everywhere-opensource-src-4.8.4/mkspecs/common/g++.conf However, one of my friends successfully install qt without any changes. What should I do? Thank you! ------------ Hello, I have a problem with installing OpenFOAM 2.3.0 on CentOS 6.5. I followed the procedures on this webpage http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL Everything is good until the last command of #16, i.e. Code:
./makeQt qt-4.8.4 > mkqt.log 2>&1 Code:
Basic XLib functionality test failed! You might need to modify the include and library search paths by editing QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /home/daily/OpenFOAM/ThirdParty-2.3.0/qt-everywhere-opensource-src-4.8.4/mkspecs/linux-g++-64. Error building: Qt-4.8.4 Thanks! Last edited by wyldckat; April 25, 2014 at 15:22. Reason: merged posts as they provide complementary information |
||
April 25, 2014, 15:29 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Qi,
I've moved your other post from the other thread http://www.cfd-online.com/Forums/ope...-2-48-a-2.html - and merged with your first post on this thread, since both posts provide some crucial information. This hack: Code:
sed -i -e 's/= gcc/= gcc48/' ... The problem is likely related to missing or skipping some specific step. If you run the following commands, what do you get? Code:
which gcc which g++ Best regards, Bruno
__________________
|
|
April 25, 2014, 15:59 |
|
#3 |
New Member
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 15 |
Hi Bruno,
I might solved this by myself. So I just skipped your question and give my solution directly. In a new terminal, I typed: Code:
sudo -s yum install qt-devel I compared the installation process of openfoam 2.2.0 on centos from http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL It seems in step #2, qt-devel needs to be installed. However, they remove this for openfoam 2.3.0 http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL Hopefully it will help others. Regards! Qi |
|
April 25, 2014, 16:15 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Qi,
The reason why installing "qt-devel" is not in the instructions for OpenFOAM 2.3.0 is because for building ParaView 4.1.0 we have to use a custom Qt 4.8.4 version, as the system's version is not compatible. Nonetheless, you raise an interesting point. When writing the installation instructions, OpenFOAM 2.2 had probably already been installed in the testing system, hence the needed X11 packages were already installed. I'll have another try with a clean installation, to ascertain which specific packages are missing. Because installing the whole Qt development package and respective dependencies is something like 400MB of files, just because only a few MB were missing . edit: So far, the missing package was "libXext-devel". Will make a new post when I've finished building ParaView4. Best regards, Bruno
__________________
Last edited by wyldckat; April 25, 2014 at 19:41. Reason: see "edit:" |
|
April 25, 2014, 17:05 |
|
#5 |
New Member
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 15 |
Thanks for your explaination. I probably will go through clean installations later on for some other machines. So keep me posted!
Thanks! |
|
April 26, 2014, 10:25 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
OK, I've finally managed to build Qt 4.8.4 and ParaView 4.1.0, without installing the "qt-devel" package. I've updated the instructions accordingly: http://openfoamwiki.net/index.php/In...HEL#CentOS_6.5
Essentially, the missing packages are pretty much all of these: Code:
libXext-devel libGLU-devel libXt-devel libXrender-devel libXinerama-devel libpng-devel libXrandr-devel libXi-devel libXft-devel libjpeg-turbo-devel libXcursor-devel Best regards, Bruno
__________________
|
|
April 26, 2014, 19:05 |
|
#7 |
New Member
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 15 |
Hi Bruno,
Thanks very much for your update! Can I ask what is this qt or qt-devel? What're its functions? Seems like it has something to do with visualization or X11. Qi |
|
April 27, 2014, 06:29 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Qi,
The "qt" package provides Qt 4.6.2. The "qt-devel" package provides the respective development files, so that we can build applications that link to the system's Qt 4.6.2. This would work just fine, if we were to build ParaView 3.12.0. But for building ParaView 4.1.0, we have to use a more recent Qt version, which is why the installation instructions indicate that a custom build of Qt has to be made. Best regards, Bruno
__________________
|
|
July 12, 2014, 05:44 |
ERROR: Package gstreamer-app-0.10 not found
|
#9 | ||
Senior Member
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18 |
Hi
For those who try to compile Qt with -python -mpi -mesa support might face the following error: Quote:
Quote:
Fabian |
|||
July 25, 2014, 07:55 |
Error building: gmp-5.1.2
|
#10 | |
Senior Member
Ashwani
Join Date: Sep 2013
Location: Hyderabad
Posts: 154
Rep Power: 13 |
Dear all,
I would like to share my experience in getting around this problem. I got the following error while executing the step 10 on http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL Quote:
Then I ran again this step, everything went well. with regards. |
||
July 26, 2014, 09:47 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Fabian: Thanks for sharing. I'll see if I can find the time in the future to update the instructions to include the options to build ParaView with Python and MPI support. @Ashwani: Thank you for sharing your experience. If I understood you correctly, the script "getGcc" was unable to get the file "gmp-5.1.2.tar.bz2" from the ftp.gnu.org server. I'll make a note to update the script to rely instead on the GNU mirror server, which assigns automatically the closest server to the user. Best regards, Bruno
__________________
|
|
July 26, 2014, 10:14 |
|
#12 |
Senior Member
Ashwani
Join Date: Sep 2013
Location: Hyderabad
Posts: 154
Rep Power: 13 |
@Bruno:The problem was what you have explained.
Last edited by AshwaniAssam; July 26, 2014 at 10:15. Reason: It was supposed to be a reply. |
|
August 11, 2014, 17:03 |
|
#13 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Thanks!
I've tested and updated a few minutes ago the git repository that has the getGcc script - https://github.com/wyldckat/scripts4OpenFOAM3rdParty/ - so that it now downloads by using the generic mirror address for all GNU source code . |
|
August 12, 2014, 01:04 |
|
#14 |
Senior Member
Ashwani
Join Date: Sep 2013
Location: Hyderabad
Posts: 154
Rep Power: 13 |
Thanks for your continued support to OpenFoam community.
|
|
October 3, 2014, 22:36 |
|
#15 |
New Member
Arjan Lampe
Join Date: Oct 2014
Posts: 3
Rep Power: 12 |
Hi wyldckat,
Awesome job you did for the installation guide at http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL I however run into problems at step 17, the makeParaView4 script won't run properly, see attached log file. I run SL6. I hope you can help me. |
|
October 4, 2014, 04:20 |
|
#16 | |
Senior Member
|
Hi,
I guess this can be relevant to the case: http://www.paraview.org/Wiki/ParaVie...aView_Settings Quote:
|
||
October 4, 2014, 08:56 |
|
#17 |
New Member
Arjan Lampe
Join Date: Oct 2014
Posts: 3
Rep Power: 12 |
Actually, all I had to do is set this variable:
Code:
export MPI_INCLUDE=/usr/include/openmpi-x86_64 I also needed to install python-devel, maybe add that to step 2? When building OpenFOAM, foamyQuadMesh wouldn't build and I found out that some dep files point to $WM_THIRD_PARTY_DIR/platforms/linux64Gcc/ instead of $WM_THIRD_PARTY_DIR/platforms/linux64Gcc48 I solved it with a soft link but it may be better to change the dep files. You can find the files e.g. like this Code:
cat `find . -name '*.dep'` | grep linux64Gcc\/ |
|
October 4, 2014, 14:15 |
|
#18 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Arjan: I've moved your questions from the other thread http://www.cfd-online.com/Forums/ope...hel-5-a-2.html, because that thread was meant for CentOS/RHEL/SL 5, and you're asking about SL 6. And from your description and the build log, I believe you've mixed up the instructions that are meant for CentOS 5.10 with those for CentOS 6.5: http://openfoamwiki.net/index.php/In...HEL#CentOS_6.5 - as you can see, the instructions for 6.5 have "python-devel" in the list of packages to be installed. As for the need to explicitly run: Code:
export MPI_INCLUDE=/usr/include/openmpi-x86_64 Best regards, Bruno
__________________
|
|
October 6, 2014, 14:52 |
|
#19 |
New Member
Arjan Lampe
Join Date: Oct 2014
Posts: 3
Rep Power: 12 |
Ok, I might have messed up the two versions a bit indeed... That may also explain the wrong file references in the dep files...
I run Scientific Linux release 6.5 (Carbon), Linux version 2.6.32-431.29.2.el6.x86_64 (mockbuild@sl6.fnal.gov) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Tue Sep 9 13:45:55 CDT 2014 |
|
October 7, 2014, 16:20 |
|
#20 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: If you run the following commands:
Code:
gcc --version g++ --version |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting Started with OpenFOAM | wyldckat | OpenFOAM | 26 | June 21, 2024 07:54 |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 06:29 |
OpenFOAM course for beginners | Jibran | OpenFOAM Announcements from Other Sources | 2 | November 4, 2019 09:51 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
OpenFOAM 1.6 package - CentOS 5.3 x86_64 | linnemann | OpenFOAM Installation | 36 | September 2, 2009 13:46 |