系统安装

18
系系 系系系 系系系系系 系系系系系系系 [email protected] 天天天天天天天天天

description

天文数据与归档培训. 系统安装. 何勃亮 国家天文台,中国虚拟天文台 [email protected]. 环境安装. CentOS 、 Fedora Ubuntu Mac OS 下载软件包 http:// code.china-vo.org / tn /astrodb2013/ software.tar.gz Python 软件. CentOS. 安装额外软件源 EPEL (Extra Packages for Enterprise Linux) - PowerPoint PPT Presentation

Transcript of 系统安装

Page 1: 系统安装

系统安装

何勃亮国家天文台,中国虚拟天文台

[email protected]

天文数据与归档培训

Page 2: 系统安装

环境安装• CentOS 、 Fedora• Ubuntu• Mac OS• 下载软件包– http://code.china-vo.org/tn/astrodb2013/software.tar.gz

• Python 软件

Page 3: 系统安装

CentOS

• 安装额外软件源EPEL(Extra Packages for Enterprise Linux)

• rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

• yum –y update

Page 4: 系统安装

开发包yum -y install openssh-clients vim gcc gcc-c++ gcc-gfortran git wget redhat-lsb-core asciidoc xmlto make cmake autoconf unzip gdb bison

Page 5: 系统安装

开发库

yum -y install zlib-devel.x86_64 libyaml-devel.x86_64 PyYAML.x86_64 libyaml.x86_64 perl-YAML.noarch libedit-devel libffi-devel readline-devel libxml2-devel libxslt-devel flex libicu-devel openssl-devel.x86_64 tk.x86_64 tix-devel.x86_64 tk-devel.x86_64 libcurl-devel.x86_64 expat-devel.x86_64 expat.x86_64 perl-Time* pam.x86_64 pam-devel.x86_64 pcre-devel.x86_64 pcre.x86_64 gd-devel sqlite-devel.x86_64 sqlite.x86_64 bzip2-devel.x86_64 db4-devel.x86_64 ImageMagick-devel.x86_64 ncurses-devel gdbm-devel

Page 6: 系统安装

计算与天文库

yum -y install octave-devel.x86_64 octave-image.x86_64 octave.x86_64 gsl-devel gsl gnuplot cfitsio-devel.x86_64 cfitsio.x86_64 funtools.x86_64 wcslib.x86_64 wcstools.x86_64

Page 7: 系统安装

安装 Python 环境

tar xjvf Python-2.7.6.tar.bz2 ./configure --prefix=/usr/local --enable-shared make –j11 && make install

software/python

Page 8: 系统安装

CDSClient

tar xzvf cdsclient.tar.gz ./configure --prefix=/usr/local make && make install

software/astro

Page 9: 系统安装

Funtools

tar xzvf funtools.tar.gz ./configure --prefix=/usr/local make && make install

software/astro

Page 10: 系统安装

数据库 PostgreSQL

tar xzvf postgresql-9.3.2.tar.gz ./configure --prefix=/usr/local make && make install cd contrib make && make install

pgSphere

tar xzvf pgsphere-1.1.1.tar.gz make USE_PGXS=1 PG_CONFIG=/usr/local/bin/pg_config make USE_PGXS=1 PG_CONFIG=/usr/local/bin/pg_config install

software/postgresql

Page 11: 系统安装

Ubuntu

• 参看手册

Page 12: 系统安装

Mac OS ,使用 Homebrew

• 安装 Xcode• 安装 Homebrew

• 更新

• 科学库 Homebrew-science

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"

brew update

brew tap homebrew/science brew update

Page 13: 系统安装

Brew 命令Example usage: brew [info | home | options ] [FORMULA...] brew install FORMULA... brew uninstall FORMULA... brew search [foo] brew list [FORMULA...] brew update brew upgrade [FORMULA...] brew pin/unpin [FORMULA...]

Troubleshooting: brew doctor brew install -vd FORMULA brew [--env | --config]

Brewing: brew create [URL [--no-fetch]] brew edit [FORMULA...] open https://github.com/Homebrew/homebrew/wiki/Formula-Cookbook

Further help: man brew brew home

Page 14: 系统安装

安装软件• wget• gfortran• python• postgresql• gnuplot cfitsio cdsclient gsl

Page 15: 系统安装

Python

• 软件包管理软件 pip– Distribute

– pip

tar xzvf distribute-0.6.49.tar.gz python setup.py install

python get-pip.py

software/python

Page 16: 系统安装

科学计算库• numpy• scipy• matplotlab• pyfits• astropy• astroquery• psycopg2• pandas• requests

Page 17: 系统安装

iPython

• pip install tornado• pip install pyzmq• pip install ipython

Page 18: 系统安装

Aladin & Topcat

• 安装 Java– CentOS rpm– Mac OS dmg

• Aladin

• Topcat

software/vo