Install Yade from Source code

Asked by LiTingting

The firest question is :I want to do the FEM×DEM multiscale simulation with Yade. So I guess I should use Source code to install Yade?
The second is :Then I read "Yade Documentation">>"Yade for user">>"installation">>"Source code". There are some words:
"The following commands have to be executed in the command line of your corresponding distribution.
Just copy&paste to the terminal. Note, to execute these commands you need root privileges.
Ubuntu 20.04, 18.04, Debian 9, 10, 11 and their derivatives:
sudo apt install cmake git freeglut3-dev libloki-dev libboost-all-dev fakeroot \
dpkg-dev build-essential g++ python3-dev python3-ipython python3-matplotlib \
libsqlite3-dev python3-numpy python3-tk gnuplot libgts-dev python3-pygraphviz \
libvtk6-dev libeigen3-dev python3-xlib python3-pyqt5 pyqt5-dev-tools python3-mpi4py \
python3-pyqt5.qtwebkit gtk2-engines-pixbuf python3-pyqt5.qtsvg libqglviewer-dev-qt5 \
python3-pil libjs-jquery python3-sphinx python3-git libxmu-dev libxi-dev libcgal-dev \
help2man libbz2-dev zlib1g-dev libopenblas-dev libsuitesparse-dev \
libmetis-dev python3-bibtexparser python3-future coinor-clp coinor-libclp-dev \
python3-mpmath libmpfr-dev libmpfrc++-dev libmpc-dev"
however, my Ubuntu version is 21.10, so what should I do ? Thanks very much!

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
LiTingting
Solved:
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hello,

> The firest question
> The second is

please be aware of our requirement to open separate questions of separate problems ([1], point 5).
Here it is acceptable to leave it merged, just have it on mind for next questions.

> I want to do the FEM×DEM multiscale simulation with Yade

please be more specific. Using [2]? something else?

> however, my Ubuntu version is 21.10, so what should I do ? Thanks very much!

you can always try and test if it works.
I **guess** that it is just outdated piece of documentation and that it would work also for newer versions of Ubunutu.

Cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask
[2] https://yade-dem.org/doc/FEMxDEM.html

Revision history for this message
LiTingting (tingtingli) said :
#2

Hello!

Thank you so much !

Right, I want to implement the [2] simulation. And I don't know whether must I install Yade from Source code. Maybe I should ask this question by oneself.

And I will try your suggestion to solve my second question.

Cheers
LiTingting
[1] https://www.yade-dem.org/wiki/Howtoask
[2] https://yade-dem.org/doc/FEMxDEM.html

---- Replied Message ----
| From | Jan Stránský<email address hidden> |
| Date | 9/6/2022 13:31 |
| To | <litingting4183@163.com> |
| Subject | Re: [Question #703066]: Install Yade from Source code |
Your question #703066 on Yade changed:
https://answers.launchpad.net/yade/+question/703066

Status: Open => Needs information

Jan Stránský requested more information:
Hello,

The firest question
The second is

please be aware of our requirement to open separate questions of separate problems ([1], point 5).
Here it is acceptable to leave it merged, just have it on mind for next questions.

I want to do the FEM×DEM multiscale simulation with Yade

please be more specific. Using [2]? something else?

however, my Ubuntu version is 21.10, so what should I do ? Thanks very
much!

you can always try and test if it works.
I **guess** that it is just outdated piece of documentation and that it would work also for newer versions of Ubunutu.

Cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask
[2] https://yade-dem.org/doc/FEMxDEM.html

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/yade/+question/703066

You received this question notification because you asked the question.

Revision history for this message
Jan Stránský (honzik) said :
#3

I **think** [2] should be possible without installing from source.
But I do not use it and do not know..
I would try with packed version first, before trying compilation from source..
Compilation from source is necessary if you want to change something in the source code, which **for me seems** not to be the case..
Cheers
Jan

Revision history for this message
LiTingting (tingtingli) said :
#4

okay, thank you! I will try it.

---- Replied Message ----
| From | Jan Stránský<email address hidden> |
| Date | 9/6/2022 14:06 |
| To | <litingting4183@163.com> |
| Subject | Re: [Question #703066]: Install Yade from Source code |
Your question #703066 on Yade changed:
https://answers.launchpad.net/yade/+question/703066

Jan Stránský posted a new comment:
I **think** [2] should be possible without installing from source.
But I do not use it and do not know..
I would try with packed version first, before trying compilation from source..
Compilation from source is necessary if you want to change something in the source code, which **for me seems** not to be the case..
Cheers
Jan

--
You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

"however, my Ubuntu version is 21.10, so what should I do ?"

Remarks from Ubuntu side (I cannot comment for Yade):

Ubuntu's support for 21.10 has already ended and the software repositories have been removed (see https://wiki.ubuntu.com/Releases)
Consequently installing Ubuntu packages with apt now fails for Ubuntu 21.10

I assume that you will receive error messages for the apt command (unless you already have all packages installed before).

Recommended solution:
upgrade to Ubuntu 22.04
Possible workaround (not recommended):
modify your package management configuration to use old-releases.ubuntu.com

Revision history for this message
LiTingting (tingtingli) said :
#6

okay, thanks for your reminding!!!

---- Replied Message ----
| From | Manfred Hampl<email address hidden> |
| Date | 9/6/2022 16:36 |
| To | <litingting4183@163.com> |
| Subject | Re: [Question #703066]: Install Yade from Source code |
Your question #703066 on Yade changed:
https://answers.launchpad.net/yade/+question/703066

Status: Open => Answered

Manfred Hampl proposed the following answer:
"however, my Ubuntu version is 21.10, so what should I do ?"

Remarks from Ubuntu side (I cannot comment for Yade):

Ubuntu's support for 21.10 has already ended and the software repositories have been removed (see https://wiki.ubuntu.com/Releases)
Consequently installing Ubuntu packages with apt now fails for Ubuntu 21.10

I assume that you will receive error messages for the apt command
(unless you already have all packages installed before).

Recommended solution:
upgrade to Ubuntu 22.04
Possible workaround (not recommended):
modify your package management configuration to use old-releases.ubuntu.com

--
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/703066/+confirm?answer_id=4

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/703066

You received this question notification because you asked the question.

Revision history for this message
LiTingting (tingtingli) said :
#7

According to Manfred's remind:
"Ubuntu's support for 21.10 has already ended and the software repositories have been removed"
 I changed Ubuntu version to 20.04.1LTS. typed the code to download those software package mentioned in my question. These codes have been done without errors.