当前位置:   article > 正文

pgAdmin 3 编译安装

pgadmin3 安装

 pgAdmin 3 编译安装

 只是做一下简单记录。

  1. Installing pgAdmin from source
  2. ==============================
  3. You will need:
  4. - A modern development environment:
  5. - GTK 2.2 or above.
  6. - GNU automake 1.9 or above.
  7. - GNU autoconf 2.59 or above.
  8. - GNU gcc 3.4 or above.
  9. - wxGTK 2.8.x from http://www.wxwidgets.org/
  10. - libxml2 2.6.18 or above from http://www.xmlsoft.org/
  11. - libxslt 1.1.x or above from http://www.xmlsoft.org/
  12. - PostgreSQL 8.4 or above from http://www.postgresql.org/
  13. - Sphinx 1.0 or above from http://sphinx.pocoo.org/
  14. Building:
  15. 1) Install libxml2 and libxslt if they are not already present on your system,
  16. per the instructions included with them.
  17. 2) Install PostgreSQL per the instructions included. It is recommended that you
  18. build with OpenSSL support, using the --with-openssl configure option.
  19. 3) Unpack the wxGTK tarball to a convenient location, and build and install it
  20. as follows:
  21. cd /path/to/wxGTK/source/
  22. ./configure --with-gtk --enable-gtk2 --enable-unicode
  23. make
  24. sudo make install
  25. # Install wxWidgets contrib modules.
  26. cd contrib/
  27. make
  28. sudo make install
  29. A script is included in the pgAdmin source tarball
  30. (xtra/wx-build/build-wxgtk) which will build and install wxWidgets in each
  31. combination of shared/static/debug/release builds for you.
  32. 4) Unpack the pgAdmin tarball to a convenient location, and build and install it
  33. as follows:
  34. bash bootstrap # Required only if building from a GIT checkout
  35. ./configure
  36. make all
  37. sudo make install

 1.安装一些所需包

  1. yum install gtk2-devel
  2. yum install automake
  3. yum install gcc-c++
  4. yum install libxml2-devel
  5. yum install libxslt-devel

2.安装PostgreSQL

需要开启--with-openssl 选项

3.安装wxGTK

下载地址:http://www.wxwidgets.org/downloads/

  1. cd /path/to/wxGTK/source/
  2. ./configure --with-gtk --enable-gtk2 --enable-unicode
  3. make
  4. sudo make install
  5. # Install wxWidgets contrib modules.
  6. cd contrib/
  7. make
  8. sudo make install

3.x 版本的没有contrib目录。

4.安装pgAdmin

  1. bash bootstrap # Required only if building from a GIT checkout
  2. ./configure --prefix=/opt/develop/admin/1 --with-pgsql=/opt/develop/db/1
  3. make all
  4. sudo make install

安装完成

  1. cd /opt/develop/admin/1/bin
  2. ./pgadmin3

 

转载于:https://my.oschina.net/yonj1e/blog/1492788

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
  

闽ICP备14008679号