yade installation in redhat

Asked by Zixuan Xu

Hi, all

I'm trying to install yade in redhat. I tried to compile it from source, and I installed all the necessary prerequisites (not optional). But there was an error when I tried to compile it. Please help. Thanks in advance.

[root@node01 build]# cmake -DINSTALL_PREFIX=/root/Yade/Yade/install /root/Yade/Yade/trunk
-- The C compiler identification is GNU 4.4.6
-- The CXX compiler identification is GNU 4.4.6
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonLibs: /usr/local/lib/libpython2.7.a (found version "2.7.8")
-- Found PythonInterp: /usr/local/bin/python (found version "2.7.8")
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake-qt4 (found version "4.5.3")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.23")
-- Version is set to 2014-07-28.git-f4a1f2b
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Found OpenGL: /usr/lib64/libGL.so
-- GSL using pkgconfig
-- WARNING: you are using the obsolete 'PKGCONFIG' macro, use FindPkgConfig
-- PKGCONFIG() indicates that gts is not installed (install the package which contains gts.pc if you want to support this feature)
FindGTS.cmake: gts-config/pkg-config gts not found. Please set it manually. GTS_CONFIG=GTS_CONFIG-NOTFOUND
-- ERROR: GTS was not found.
-- Could NOT find GL2PS (missing: GL2PS_LIBRARY GL2PS_INCLUDE_DIR)
-- CGAL not found.
-- Found NumPy: version "1.8.1" /usr/local/lib/python2.7/site-packages/numpy/core/include
-- Found Loki: /usr/include
-- Boost version: 1.56.0
-- Found the following Boost libraries:
-- python
-- thread
-- filesystem
-- iostreams
-- regex
-- serialization
-- system
-- date_time
-- Boost_VERSION: 105600
-- Boost_LIB_VERSION: 1_56
-- Boost_INCLUDE_DIRS: /usr/local/include
-- Boost_LIBRARIES: /usr/local/lib/libboost_python.so/usr/local/lib/libboost_thread.so/usr/local/lib/libboost_filesystem.so/usr/local/lib/libboost_iostreams.so/usr/local/lib/libboost_regex.so/usr/local/lib/libboost_serialization.so/usr/local/lib/libboost_system.so/usr/local/lib/libboost_date_time.so
-- Found Eigen3: /usr/local/include/eigen3 (Required is at least version "2.91.0")
-- Found BZip2: /usr/lib64/libbz2.so (found version "1.0.5")
-- Looking for BZ2_bzCompressInit in /usr/lib64/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib64/libbz2.so - found
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3")
-- Found Eigen3, version: 3.2.1
-- Disable vectorization
-- Found VTK
-- Found OpenMP
-- GSL using pkgconfig
-- WARNING: you are using the obsolete 'PKGCONFIG' macro, use FindPkgConfig
-- PKGCONFIG() indicates that gts is not installed (install the package which contains gts.pc if you want to support this feature)
FindGTS.cmake: gts-config/pkg-config gts not found. Please set it manually. GTS_CONFIG=GTS_CONFIG-NOTFOUND
-- ERROR: GTS was not found.
-- checking for one of the modules 'glib-2.0'
-- Found GLib2: glib-2.0 /usr/include/glib-2.0;/usr/lib64/glib-2.0/include
-- Looking for include file glib/gregex.h
-- Looking for include file glib/gregex.h - found
-- GTS NOT found
-- Found Qt4: /usr/bin/qmake-qt4 (found version "4.5.3")
-- Found GLUT: /usr/local/lib/libglut.so
-- Found QGLViewer: /usr/lib/libQGLViewer.so
-- Found GUI-LIBS
-- GMP libs: /usr/lib64/libgmp.so /usr/lib64/libgmpxx.so
-- Found GMP: /usr/include
-- CGAL not found.
-- GMP libs: /usr/lib64/libgmp.so /usr/lib64/libgmpxx.so
-- CGAL NOT found
-- CGAL NOT found: PFVFLOW disabled
-- Could NOT find Cholmod (missing: CHOLMOD_LIBRARIES CHOLMOD_INCLUDE_DIR AMD_LIBRARY CAMD_LIBRARY COLAMD_LIBRARY CCOLAMD_LIBRARY)
-- Could NOT find OpenBlas (missing: OPENBLAS_LIBRARY)
-- Could NOT find Metis (missing: METIS_INCLUDE_DIR METIS_LIBRARY)
-- Missing dependency for LINSOLV, disabled
-- Could NOT find GL2PS (missing: GL2PS_LIBRARY GL2PS_INCLUDE_DIR)
-- GL2PS NOT found
LBMFLOW is still experimental, building and running LBM engine are at your own risk!
Yade will be installed to /root/Yade/Yade/install
-- Suffix is set to -2014-07-28.git-f4a1f2b
-- LIBRARY_OUTPUT_PATH is set to lib64
-- runtimePREFIX is set to /root/Yade/Yade/install
Traceback (most recent call last):
  File "/usr/bin/pyuic4", line 6, in <module>
    from PyQt4 import QtCore
ImportError: No module named PyQt4
-- Could NOT find minieigen (missing: PY_minieigen)
-- Use embedded version of minieigen. Please, consider installing the corresponding package
-- Found Tkinter: /usr/local/lib/python2.7/lib-tk/Tkinter.pyc
-- VTK version 6 is found
-- ===========================================================
-- Yade configured with following features: Odeint VTK OpenMP GUI LBMFLOW
-- Disabled features: GTS CGAL PFVFLOW LINSOLV SPH LIQMIGRATION GL2PS MASK_ARBITRARY
-- Optimized build
-- ===========================================================
-- Configuring done
-- Generating done
-- Build files have been written to: /root/Yade/Yade/build

[root@node01 build]# make
[ 1%] Generating qt4/moc_OpenGLManager.cxx
[ 2%] Generating qt4/moc_GLViewer.cxx
Scanning dependencies of target _GLViewer
[ 3%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/GLViewer.cpp.o
[ 3%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/_GLViewer.cpp.o
[ 4%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/OpenGLManager.cpp.o
[ 5%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/GLViewerDisplay.cpp.o
[ 6%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/GLViewerMouse.cpp.o
[ 6%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/moc_GLViewer.cxx.o
[ 7%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/moc_OpenGLManager.cxx.o
Linking CXX shared library lib64/_GLViewer.so
/usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython2.7.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [gui/lib64/_GLViewer.so] Error 1
make[1]: *** [gui/CMakeFiles/_GLViewer.dir/all] Error 2
make: *** [all] Error 2

Zixuan Xu

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Anton Gladky (gladky-anton) said :
#1

> /usr/local/lib/libpython2.7.a

It looks like you are trying to use static linkage and self-compiled python. Never tried it before.
It seems to be a conflict between static and shared libs.

Sorry, I do not know how to solve such situation. Try to avoid static libraries, if it is possible.
Try to compile Yade without GUI.

Anton

Can you help with this problem?

Provide an answer of your own, or ask Zixuan Xu for more information if necessary.

To post a message you must log in.