← Back to team overview

yade-users team mailing list archive

Re: [Question #432848]: yade compiled installation in a redhat cluster

 

Question #432848 on Yade changed:
https://answers.launchpad.net/yade/+question/432848

    Status: Answered => Open

hanzj is still having a problem:
Hello,all,
hello,Anton and Klaus Thoeni,
Sorry for reply so late. I have tried to install the pre-required libraries as your recommendation, I am now facing the problem is
the installation of minieigen. I have download the minieigen-0.5.3.tar.gz from http://eudoxos.github.io/minieigen
and I tried to install it using the comand python setup.py install
 but
(1) I came across the error:
  File "setup.py", line 23
    libraries=['boost_python-py3%d'%sys.version_info[1] if py3k else 'boost_python']
                                                         ^
SyntaxError: invalid syntax

(2)also ,I can not understand the command in the README.txt as follows:

To compile by hand under Linux, run something like

    g++ -ansi src/miniEigen.cpp src/double-conversion/*.cc -o
minieigen.so -shared -fPIC `pkg-config python --cflags` -lboost_python
-I/usr/include/eigen3

and the whole README.txt as follows:
This is miniEigen, small wrapper for the http://eigen.tuxfamily.org library.
Home of this project is at http://www.launchpad.net/minieigen/. The code is
licensed under the LGPLv3. The author is Václav Šmilauer <eu@xxxxxxxx>.

Documentation is uploaded to http://eudoxos.github.io/minieigen.

Run `python setup.py install` to build & install this module. You will need the
boost_python library to be installed, and Eigen (in /usr/include/eigen3, or
somewhere where the compiler finds it).

Windows is experimentally supported, but paths must be tweaked in setup.py
to match your system. Suggestions for a better way are welcome.

To compile by hand under Linux, run something like

    g++ -ansi src/miniEigen.cpp src/double-conversion/*.cc -o
minieigen.so -shared -fPIC `pkg-config python --cflags` -lboost_python
-I/usr/include/eigen3

Enjoy.

(3)If I am not going to install the minieigen, could I comply yade to
install? must I install it? I have tried without it, but complied
failed.

Any suggestions?
Thanks a lot.

Han Zhijian





At 2017-01-11 05:44:24, "Klaus Thoeni" <question432848@xxxxxxxxxxxxxxxxxxxxx> wrote:
>Your question #432848 on Yade changed:
>https://answers.launchpad.net/yade/+question/432848
>
>    Status: Open => Answered
>
>Klaus Thoeni proposed the following answer:
>Hi,
>
>we have yade running on our RH cluster. The installation/compilation is
>not as straight forward as for debian/ubuntu. As Anton mentioned you
>need to find the RPM-packages for all pre-required libraries [1]. The
>important thing here is that you have to check if the minimal required
>version is available with yum. Sometimes it will not be the case hence
>you cannot install it with yum but you need to download the sources and
>compile the package/library yourself. And yes, the make process is
>exactly the same using cmake [2]. Again, make sure you have at least
>cmake version 2.8.11 installed.
>
>I cannot remember all steps but I strongly recommend you to only install
>the packages you really need and compile yade with the corresponding
>options. For example, I did not bother installing optional packages
>(e.g., required for fluid coupling) and the graphical mode (e.g., use
>cmake option -DENABLE_GUI=0). This should make things much easier.
>
>HTH
>Klaus
>
>[1] https://yade-dem.org/doc/installation.html#prerequisites
>[2] https://yade-dem.org/doc/installation.html#compilation
>
>-- 
>If this answers your question, please go to the following page to let us
>know that it is solved:
>https://answers.launchpad.net/yade/+question/432848/+confirm?answer_id=2
>
>If you still need help, you can reply to this email or go to the
>following page to enter your feedback:
>https://answers.launchpad.net/yade/+question/432848
>
>You received this question notification because you asked the question.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.