slide1 n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
系统安装 PowerPoint Presentation
Download Presentation
系统安装

Loading in 2 Seconds...

play fullscreen
1 / 18

系统安装 - PowerPoint PPT Presentation


  • 128 Views
  • Uploaded on

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

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about '系统安装' - kamil


Download Now 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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
slide1

天文数据与归档培训

系统安装

何勃亮

国家天文台,中国虚拟天文台

hebl@nao.cas.cn

slide2
环境安装
  • CentOS、Fedora
  • Ubuntu
  • Mac OS
  • 下载软件包
    • http://code.china-vo.org/tn/astrodb2013/software.tar.gz
  • Python软件
centos
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
slide4
开发包

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

slide5
开发库

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

slide6
计算与天文库

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
安装Python环境

tar xjvf Python-2.7.6.tar.bz2

./configure --prefix=/usr/local --enable-shared

make –j11 && make install

software/python

cdsclient
CDSClient

tar xzvfcdsclient.tar.gz

./configure --prefix=/usr/local

make && make install

software/astro

funtools
Funtools

tar xzvffuntools.tar.gz

./configure --prefix=/usr/local

make && make install

software/astro

postgresql
数据库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
Ubuntu
  • 参看手册
mac os homebrew
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

slide13
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

slide14
安装软件
  • wget
  • gfortran
  • python
  • postgresql
  • gnuplotcfitsiocdsclientgsl
python1
Python
  • 软件包管理软件 pip
    • Distribute
    • pip

tar xzvf distribute-0.6.49.tar.gz

python setup.py install

python get-pip.py

software/python

slide16
科学计算库
  • numpy
  • scipy
  • matplotlab
  • pyfits
  • astropy
  • astroquery
  • psycopg2
  • pandas
  • requests
ipython
iPython
  • pip install tornado
  • pip install pyzmq
  • pip install ipython
aladin topcat
Aladin & Topcat
  • 安装Java
    • CentOS rpm
    • Mac OS dmg
  • Aladin
  • Topcat

software/vo