1 / 18

系统安装

天文数据与归档培训. 系统安装. 何勃亮 国家天文台,中国虚拟天文台 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)

rufus
Download Presentation

系统安装

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 天文数据与归档培训 系统安装 何勃亮 国家天文台,中国虚拟天文台 hebl@nao.cas.cn

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

  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

  4. 开发包 yum -y install openssh-clients vim gccgcc-c++ gcc-gfortrangitwgetredhat-lsb-core asciidocxmlto make cmakeautoconf unzip gdb bison

  5. 开发库 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

  6. 计算与天文库 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

  7. 安装Python环境 tar xjvf Python-2.7.6.tar.bz2 ./configure --prefix=/usr/local --enable-shared make –j11 && make install software/python

  8. CDSClient tar xzvfcdsclient.tar.gz ./configure --prefix=/usr/local make && make install software/astro

  9. Funtools tar xzvffuntools.tar.gz ./configure --prefix=/usr/local make && make install software/astro

  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

  11. Ubuntu • 参看手册

  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

  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 Furtherhelp: man brew brew home

  14. 安装软件 • wget • gfortran • python • postgresql • gnuplotcfitsiocdsclientgsl

  15. Python • 软件包管理软件 pip • Distribute • pip tar xzvf distribute-0.6.49.tar.gz python setup.py install python get-pip.py software/python

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

  17. iPython • pip install tornado • pip install pyzmq • pip install ipython

  18. Aladin & Topcat • 安装Java • CentOS rpm • Mac OS dmg • Aladin • Topcat software/vo

More Related