pgAdmin 3 编译安装
只是做一下简单记录。
- Installing pgAdmin from source
- ==============================
-
- You will need:
-
- - A modern development environment:
-
- - GTK 2.2 or above.
- - GNU automake 1.9 or above.
- - GNU autoconf 2.59 or above.
- - GNU gcc 3.4 or above.
-
- - wxGTK 2.8.x from http://www.wxwidgets.org/
- - libxml2 2.6.18 or above from http://www.xmlsoft.org/
- - libxslt 1.1.x or above from http://www.xmlsoft.org/
- - PostgreSQL 8.4 or above from http://www.postgresql.org/
- - Sphinx 1.0 or above from http://sphinx.pocoo.org/
-
- Building:
-
- 1) Install libxml2 and libxslt if they are not already present on your system,
- per the instructions included with them.
-
- 2) Install PostgreSQL per the instructions included. It is recommended that you
- build with OpenSSL support, using the --with-openssl configure option.
-
- 3) Unpack the wxGTK tarball to a convenient location, and build and install it
- as follows:
-
- cd /path/to/wxGTK/source/
- ./configure --with-gtk --enable-gtk2 --enable-unicode
- make
- sudo make install
-
- # Install wxWidgets contrib modules.
- cd contrib/
- make
- sudo make install
-
- A script is included in the pgAdmin source tarball
- (xtra/wx-build/build-wxgtk) which will build and install wxWidgets in each
- combination of shared/static/debug/release builds for you.
-
- 4) Unpack the pgAdmin tarball to a convenient location, and build and install it
- as follows:
-
- bash bootstrap # Required only if building from a GIT checkout
- ./configure
- make all
- sudo make install
1.安装一些所需包
- yum install gtk2-devel
- yum install automake
- yum install gcc-c++
- yum install libxml2-devel
- yum install libxslt-devel
2.安装PostgreSQL
需要开启--with-openssl 选项
3.安装wxGTK
下载地址:http://www.wxwidgets.org/downloads/
- cd /path/to/wxGTK/source/
- ./configure --with-gtk --enable-gtk2 --enable-unicode
- make
- sudo make install
-
- # Install wxWidgets contrib modules.
- cd contrib/
- make
- sudo make install
3.x 版本的没有contrib目录。
4.安装pgAdmin
- bash bootstrap # Required only if building from a GIT checkout
- ./configure --prefix=/opt/develop/admin/1 --with-pgsql=/opt/develop/db/1
- make all
- sudo make install
安装完成
- cd /opt/develop/admin/1/bin
- ./pgadmin3