制作 PostgreSQL 及 Postgis 过程
大概步骤汇总
1. 在 HP 服务器上创建一个 postgres 用户
2. 从 HP 网站下载一个 GCC 安装包及其相关的依赖包,并安装之。
3. 从 GCC 网站下载一个 GCC 源代码包,并使用安装版 GCC 对其进行完整的编译。
4. 下载 PostgreSQL 源代码包,并使用编译版 GCC 对其编译。
5. 下载 GEOS 源代码包,并使用编译版 GCC 对其编译。
6. 下载 Postgis 源代码包,并使用编译版 GCC 对其编译。
7. 使用 Postgis 创建模版数据库。
当前使用的包下载位置:
1. HP 网站提供的 GCC 安装包及其依赖包:http://hpux.connect.org.uk/,在此网站里输入包
名进行包查找。主要包括:
(1) make 包:http://hpux.connect.org.uk/hppd/hpux/Gnu/make-3.81/
(2) zlib 包:http://hpux.connect.org.uk/hppd/hpux/Misc/zlib-1.2.3/
(3) gettext 包:http://hpux.connect.org.uk/hppd/hpux/Gnu/gettext-0.17/
(4) libiconv 包:http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/libiconv-
1.12/
(5) bash 包:http://hpux.connect.org.uk/hppd/hpux/Shells/bash-3.2/
(6) flex 包:http://hpux.connect.org.uk/hppd/hpux/Gnu/flex-2.5.35/
(7) readline 包:http://hpux.connect.org.uk/hppd/hpux/Gnu/readline-5.2/
(8) libgcc 包:http://hpux.connect.org.uk/hppd/hpux/Gnu/libgcc-4.2.3/
(9) gcc 包:http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-4.2.3/
安装方法使用:swinstall -x ask=true -s /xx/xx/xxx.deport (/xx/xx/xxx.deport,是指绝对
路径下的包文件名字)
2. GCC 网 站 提 供 的 GCC 源 代 码 包 : http://gcc.gnu.org/ , 在 此 网 站 里 点 击 右 边
的”Download”->” Mirror sites”找链接进行下载。
3. PostgreSQL 源代码包:http://www.postgresql.org/download/
4. GEOS 源代码包:http://geos.refractions.net/
5. Postgis 源代码包:http://postgis.refractions.net/download/
评论1