ubuntu快速安装gfortran,fftw,lapack,texlive

来源:互联网 发布:旅游对大数据需求 编辑:程序博客网 时间:2024/05/20 07:52

有时候换电脑或重新装系统了,一些常用的软件安装整理一下,方便以后快速安装吧。所用系统是ubuntu.

#Install gfortran, gcc, g++
sudo apt-get install gfortran
sudo apt-get install gcc
sudo apt-get install g++

#Install openmpi, use gfortran for computing
./configure --prefix=/opt/openmpi/ CC=gcc CXX=g++ FC=gfortran F77=gfortran
sudo make all install

#Install fftw3
./configure --enable-threads --enable-openmp --enable-mpi
make
sudo make install
#cp the generated liblapack.a librefblas.a libtmglib.a file to /usr/local/lib/
cp *.a /usr/local/lib/

#Install lapack
cd lapack-3.7.1
cp make.inc.example make.inc
ulimit -s unlimited
sudo make

#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'