180 likes | 378 Views
天文数据与归档培训. 系统安装. 何勃亮 国家天文台,中国虚拟天文台 hebl@nao.cas.cn. 环境安装. CentOS 、 Fedora Ubuntu Mac OS 下载软件包 http:// code.china-vo.org / tn /astrodb2013/ software.tar.gz Python 软件. CentOS. 安装额外软件源 EPEL (Extra Packages for Enterprise Linux)
E N D
天文数据与归档培训 系统安装 何勃亮 国家天文台,中国虚拟天文台 hebl@nao.cas.cn
环境安装 • CentOS、Fedora • Ubuntu • Mac OS • 下载软件包 • http://code.china-vo.org/tn/astrodb2013/software.tar.gz • Python软件
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
开发包 yum -y install openssh-clients vim gccgcc-c++ gcc-gfortrangitwgetredhat-lsb-core asciidocxmlto make cmakeautoconf unzip gdb bison
开发库 yum -y install zlib-devel.x86_64 libyaml-devel.x86_64 PyYAML.x86_64 libyaml.x86_64 perl-YAML.noarchlibedit-devellibffi-develreadline-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-develgdbm-devel
计算与天文库 yum -y install octave-devel.x86_64 octave-image.x86_64 octave.x86_64 gsl-develgslgnuplot cfitsio-devel.x86_64 cfitsio.x86_64 funtools.x86_64 wcslib.x86_64 wcstools.x86_64
安装Python环境 tar xjvf Python-2.7.6.tar.bz2 ./configure --prefix=/usr/local --enable-shared make –j11 && make install software/python
CDSClient tar xzvfcdsclient.tar.gz ./configure --prefix=/usr/local make && make install software/astro
Funtools tar xzvffuntools.tar.gz ./configure --prefix=/usr/local make && make install software/astro
数据库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
Ubuntu • 参看手册
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
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 Furtherhelp: man brew brew home
安装软件 • wget • gfortran • python • postgresql • gnuplotcfitsiocdsclientgsl
Python • 软件包管理软件 pip • Distribute • pip tar xzvf distribute-0.6.49.tar.gz python setup.py install python get-pip.py software/python
科学计算库 • numpy • scipy • matplotlab • pyfits • astropy • astroquery • psycopg2 • pandas • requests
iPython • pip install tornado • pip install pyzmq • pip install ipython
Aladin & Topcat • 安装Java • CentOS rpm • Mac OS dmg • Aladin • Topcat software/vo