Hits:1 ... 1

環境構築2

最近,めっちゃ暑かったですわぁ.そんな中今日は比較的涼しくて過ごしやすかったですわっ!!

さーてさて, こないだのテストインストールを生かして環境構築した. まだ,中途半端なところだらけなのだが….忘れぬよう個人的メモとして箇条書き程度に記しておくことにした.

■ FedoraCore5 手元にメディアがあったのでこちらのOSにした. インストールは,ほぼ最小インストール. Cコンパイラなどからインストール(こういったいくつかはyum使用). これかったるいねっ!!

■ Mecab-0.96

wget http://downloads.sourceforge.net/mecab/mecab-0.96.tar.gz?modtime=1181487226&big_mirror=0
tar xzvf mecab-0.96.tar.gz
./configure \
--prefix=/usr/local/mecab \
--with-charset=utf8
make
make install

■ Mecab-ipadic-2.7.0

wget http://downloads.sourceforge.net/mecab/mecab-ipadic-2.7.0-20070801.tar.gz?modtime=1185895550&big_mirror=0
tar xzvf mecab-ipadic-2.7.0-20070801.tar.gz
./configure \
--prefix=/usr/local/mecab \
--with-charset=utf8 \
--with-mecab-config=/usr/local/mecab/bin/mecab-config
make
make install

■ Senna-1.0.8

wget http://keihanna.dl.sourceforge.jp/senna/26563/senna-1.0.8.tar.gz
tar xzvf senna-1.0.8.tar.gz
./configure \
--prefix=/usr/local/senna \
--with-mecab \
--with-mecab-config=/usr/local/mecab/bin/mecab-config
make
make install

■ MySQL-5.0.41(tritonn)

wget http://globalbase.dl.sourceforge.jp/tritonn/26391/mysql-5.0.41-tritonn-1.0.3.tar.gz
tar xzvf mysql-5.0.41-tritonn-1.0.3.tar.gz
./configure \
--prefix=/usr/local/mysql \
--localstatedir=/home/mysql/data \
--libexecdir=/usr/local/mysql/bin \
--with-mysqld-user=mysql \
--with-charset=utf8 \
--with-collation=utf8_general_ci \
--with-unix-socket-path=/home/mysql/data/mysql.sock \
--enable-thread-safe-client \
--enable-local-infile \
--enable-assembler \
--with-zlib-dir=bundled \
--with-big-tables \
--with-readline \
--with-innodb \
--with-senna=/usr/local/senna \
--with-mecab=/usr/local/mecab \
--with-extra-charsets=complex
make
make install

■ Apache2.2(apr, apr-util, apache)

wget http://www.meisei-u.ac.jp/mirror/apache/httpd/httpd-2.2.4.tar.gz
tar xzvf httpd-2.2.4.tar.gz

○ apr

cd /httpd-2.2.4/srclib/apr
./configure \
--prefix=/usr/local/apr \
--enable-threads
make
make install

○ apr-util

cd /httpd-2.2.4/srclib/apr-util
./configure \
--prefix=/usr/local/apr \
--with-apr=/usr/local/apr
make
make install

○ apache

./configure \
--enable-mods-shared=most \
--enable-dav \
--enable-dav-fs \
--enable-dav-lock \
--enable-cgi \
--enable-cgid \
--enable-so \
--with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr
make
make install

■ PHP-5.2.3

wget http://jp.php.net/get/php-5.2.3.tar.gz/from/this/mirror
./configure \
--prefix=/usr/local/php5 \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-config-file-path=/usr/local/php5/etc \
--with-config-file-scan-dir=/usr/local/php5/etc/php.d \
--with-layout=GNU \
--enable-mbstring \
--with-libmbfl \
--enable-mbregex (省略)
make
make install

■ Python-2.5

wget http://www.python.jp/pub/ftp.python.org/python/2.5/Python-2.5.tgz
./configure --prefix=/usr/local/python
make
make install

■ SetupTool

wget http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c6-py2.5.egg
sh ./setuptools-0.6c6-py2.5.egg

■ 色々

easy_install-2.5 -U -Z docutils
easy_install-2.5 -U -Z MySQL_Python
easy_install-2.5 -U -Z ipython
easy_install-2.5 -U -Z pysqlite
easy_install-2.5 -U -Z TracPygments

■ neon

wget http://www.webdav.org/neon/neon-0.25.5.tar.gz
./configure --prefix=/usr/local/neon
make
make install

■ swig

wget http://jaist.dl.sourceforge.net/sourceforge/swig/swig-1.3.29.tar.gz
./configure \
--prefix=/usr/local/swig \
--with-python=/usrlocal/python/bin/python2.5 \
--without-java \
--without-ruby \
--without-php4
make
make install

■ clearsilver

wget http://www.clearsilver.net/downloads/clearsilver-0.10.5.tar.gz
tar xzf clearsilver-0.10.5.tar.gz
./configure \
--prefix=/usr/local/cs \
--with-apache=/usr/local/apache2 \
--with-python=/usr/local/python/bin/python2.5 \
--disable-csharp
make
make install

「--disable-csharp」を最初つけておらず,エラーがでていた.C#あたりのインストールもこころみたのだが結局 disable .

■ SVN

./configure \
--prefix=/usr/local/svn\
--enable-dso \
--with-apxs=/usr/local/apache2/bin/apxs \
--with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr \
--with-editor=/usr/bin/vim \
--without-jdk \
--with-swig=/usr/local/swig \
--with-neon=/usr/local/neon
make
make install

vim /etc/ld.so.conf.d/svn.conf
ldconfig

make swig-py
make install-swig-py

vim /usr/local/python/lib/python2.5/site-packages/svn-python.pth

■ mod_wsgi

wget http://modwsgi.googlecode.com/files/mod_wsgi-1.0c3.tar.gz
tar xzf mod_wsgi-1.0c3.tar.gz
./configure \
--with-apxs=/usr/local/apache2/bin/apxs \
--with-python=/usr/local/python/bin/python2.5
make
make install

■ Trac

wget http://ftp.edgewall.com/pub/trac/trac-0.10.4.tar.gz
tar xzf trac-0.10.4.tar.gz
python2.5 ./setup.py build
python2.5 ./setup.py install

■ Django

wget http://www.djangoproject.com/download/0.96/tarball/
tar xzf Django-0.96.tar.gz
python2.5 setup.py install

ざざっとこんなんかなぁ?.間々で,ldconfig, path設定やuser作成なども行っている. 何が面倒だったってー前PCがEUC-JPだったもんでー文字コードが変わり,色んなソースコードなどの変更に追われた感じ….

個人的に忘れそうだからーlinux漢字フォントのインストールはこれで…. yum install fonts-japanese

[tritonn] [mod_wsgi] [Fedora] [Apache] [Django] [SVN] [Mecab] [PHP] [MySQL] [Senna] [Python] [Trac]

2007/08/19 00:32 | Comments(0)

Hits:1 ... 1