A memorandum for Linux beginners. The tool called MBDyn seems to be a minor, and I could not find any Japanese installation explanation site. Perhaps it's obvious to anyone familiar with a tool called Linux, but I'll write it down for myself. (Because it's hard to forget and remember later)
First, if you look at the Software Installation section of the official website (https://www.mbdyn.org/?Software_Installation), it will be explained in detail, so please refer to that.
I will list the necessary commands. Please refer to the official website for details.
apt update apt install make gcc g++ gfortran
apt update apt install libltdl-dev liblapack-dev libsuitesparse-dev libnetcdf-dev libnetcdf-cxx-dev
wget https://www.mbdyn.org/userfiles/downloads/mbdyn-1.7.3.tar.gz (Please replace the part of mbdyn-1.7.3 with the version you want)
tar xzvf mbdyn-1.7.3.tar.gz cd mbdyn-1.7.3/
Next, duplicate the repository locally (your work environment) from the official website. There are two methods, but here we will use git clone.
First, create a directory. mkdir -p ~/mbdyn-1.7.3/git cd ~/mbdyn-1.7.3/git git init
here git clone https://public.gitlab.polimi.it/DAER/mbdyn.git cd mbdyn git checkout develop (Honestly, if you don't understand why you're making a brunch, please let me know.)
sh bootstrap.sh
Now go back to the source tree and run configure cd ~/mbdyn-1.7.3 ./configure make
sudo make install (If you do make install, do you need the above make?)
that's all.
It would be greatly appreciated if you could point out any mistakes.
Recommended Posts