有时候换电脑或重新装系统了,一些常用的软件安装整理一下,方便以后快速安装吧。所用系统是ubuntu.
#Install gfortran, gcc, g++
sudo apt-get install gfortran
sudo apt-get install gcc
sudo apt-get install g++
## Note: openmpi and lapack can be intalled in a simple way,
##see: https://cms.mpi.univie.ac.at/wiki/index.php/A_Ubuntu_based_installation_of_VASP
#Install openmpi, use gfortran for computing
# Refer to the link: http://butka.me/linux/how-to-install-openmpi-on-ubuntu-14-04/
## Fistst, install libibnetdisc-dev
sudo apt-get install libibnetdisc-dev
## Then, download openmpi and install
./configure --prefix=/opt/openmpi/ CC=gcc CXX=g++ FC=gfortran F77=gfortran
sudo make all install
#Install fftw3
./configure --enable-threads --enable-openmp
make
sudo make install
#Install lapack
cd lapack-3.7.1
cp make.inc.example make.inc
make
# If the error "make[1]: *** [znep.out] Error 139" still exits, try install using:
ulimit -s unlimited
sudo make
cd LAPACKE
sudo make
cd ..
cp *.a /usr/local/Include/
### Another way
sudo apt-get install libscalapack-mpi-dev
#Install gnuplot
sudo apt-get install gnuplot
# Install texlive for latest ubuntu
sudo apt-get install texlive-full
#Install texworks
sudo apt-get install -f texworks
#Enable spell check:press 'Edit--Spelling--**'
#Compile:press to run-'pdfLatex';run-'BibTex';run-'pdfLatex';run-'pdfLatex'
#preference setting: Edit-preference
#Install dropbox
#https://www.dropbox.com/install-linux
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
#Next, run the Dropbox daemon from the newly created .dropbox-dist folder.
~/.dropbox-dist/dropboxd
# It still doesn't seems to be installed properly. One more command makes it ok.
sudo apt install nautilus-dropbox
# Perhaps we just need 'sudo apt install nautilus-dropbox'