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

有时候换电脑或重新装系统了,一些常用的软件安装整理一下,方便以后快速安装吧。所用系统是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'


 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值