個人利用CentOSのセットアップ ======================================== centosはdebianとはことなるため、いくつかのTIPSを記載する。 emacs23の導入 ----------------------- yumではepelを含め、emacs21のみが提供されています。 このため、sourceからコンパイルします。 :: # 既存のrpmをすべて削除 yum remove emacs\* # 導入 wget ftp://ftp.ring.gr.jp/pub/GNU/emacs/emacs-23.4.tar.gz tar zxfv emacs-23.4.tar.gz cd emacs-23.4 ./configure --without-x make -j 4 sudo make install sphinxの導入 -------------------- 本体の導入 ^^^^^^^^^^^^^^^^^^^^ :: sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm sudo vi /etc/yum.repos.d/epel.repo enable=1 -> 0 sudo yum -y install python26 --enablerepo=epel sudo yum -y install python26 python-pip python-setuptools --enablerepo=epel sudo yum install python26 python26-libs python26-devel python26-imaging python26-imaging-devel python26-setuptools$ sudo easy_install-2.6 sphinx blockdiag sphinxcontrib-blockdiag rst2pdf pngmathのためのlatexインストール ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ yum標準のtetexが導入されている状態では、 :: sudo yum install 'tetex*' unzip (makeすると) LaTeX Error: File `utf8x.def' not found. と怒られる。 :: http://d.hatena.ne.jp/yukichanko/20100816/1281936940 を参考に http://www.ctan.org/tex-archive/macros/latex/contrib/unicode/ から wget http://mirror.ctan.org/macros/latex/contrib/unicode.zip unzip unicode.zip /usr/share/texmf/tex/latex/baseに必要なファイルをコピー。 sudo cp -ip data/* *def *sty /usr/share/texmf/tex/latex/base sudo texhash これでOK。 そのた ----------------------- ln -s /home/kanai/usr/export/note.sphinx/build/html /home/kanai/public_html/note.sphinx