Personal tools
You are here: Home linux CentOS4.3にpostgresql,phpをパッケージをインストール
Document Actions

CentOS4.3にpostgresql,phpをパッケージをインストール

by seko last modified 2007-05-09 22:11

# yum install postgresql-server

# yum install httpd
# yum install  php-pgsql php-gd php-mbstring

# yum install postgresql-devel

**インストールするバージョンの一覧**


python2.3.5
# mkdir /opt/python2.3.5
# chown zope /opt/python2.3.5/
# su - zope
$ tar zxvf Python-2.3.5.tgz
$ cd Python-2.3.5
$ ./configure --prefix=/opt/python2.3.5
$ make
$ su
# make install

これで、/opt/python2.3.5/bin/python2.3 と/opt/python2.3.5/bin/pythonにpythonがインストールされた。 /opt/python2.3.5/bin/python と入力すれば新たにインストールしたバージョンが起動する。


$ tar zxvf JapaneseCodecs-1.4.11.tar.gz
$ cd JapaneseCodecs-1.4.11
$ /opt/python2.3.5/bin/python setup.py build
$ su
# /opt/python2.3.5/bin/python setup.py install

$ tar zxvf Imaging-1.1.5.tar.gz

$ cd Imaging-1.1.5
$ /opt/python2.3.5/bin/python setup.py build
$ su
# /opt/python2.3.5/bin/python setup.py install




$ tar zxvf Zope-2.8.6-final.tgz [zope@zope3 src]$ cd Zope-2.8.6-final

$ ./configure --prefix=/home/postgres/zope/zope288 --with-python=/opt/python2.3.5/bin/python

$ make

]# make install

画面が流れて最後に Zope binaries installed successfully. Now run /opt/Zope-2.8/bin/mkzopeinstance.py

# Zopeのインスタンス(Data.fs)が入る場所を作る

$ /home/postgres/zope/zope288/bin/mkzopeinstance.py

Please choose a directory in which you'd like to install Zope "instance home" files such as database files, configuration files, etc.

Directory: /home/postgres/zope/build288

Please choose a username and password for the initial user. These will be the credentials you use to initially manage your new Zope instance.

Username: admin

Password:

Verify password:



$ tar zxvf egenix-mx-base-2.0.6.tar.gz
$ cd egenix-mx-base-2.0.6
$ su
# /opt/python2.3.5/bin/python setup.py install

$ tar zxvf psycopg-1.1.21.tar.gz
$ cd psycopg-1.1.21
$ ./configure --with-python=/opt/python2.3.5/bin/python --with-postgres-includes=/usr/include/pgsql --with-postgres-libraries=/usr/lib/pgsql --with-mxdatetime-includes=/opt/python2.3.5/lib/python2.3/site-packages/mx/DateTime/mxDateTime


$ make
$ su
# make install
# exit
$ mv ZPsycopgDA /var/zope/Products/
zopeを再起動する。





« July 2017 »
Su Mo Tu We Th Fr Sa
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
 

Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: