O3dg Install

Standard

มาเริ่มกันเลยดีกว่านะครับ

prerequire ก็มีหลายตัวเช่น
-qhull,qhull-devel, Delny , postgresql ,postgis ,python,python-dev,python-numeric,python-pg เป็นต้นนะครับ

แต่เนื่องด้วยมีัปัญหานิดหน่อยสำหรับ python ที่ไม่มีการ complile ให้ใช้ ucs4 สำหรับ encodind จึงต้องทำการ recomplied ใหม่แล้วถอนตัวเก่าออกสะ (ทำให้ยุ่งยากมาก)

กระบวนการก็มีดังนี้
- remove python และ libpython ให้เกลี้ยง (ถึงแม้มันจะบอกว่าต้องถอนบางโปรแกรมออกด้วยก็ต้องยอม)
- install new python,pyhton-base,python-doc,tkinter,libpython,libpython-dev
- install หรือ reinstall ชุด foss4g
- install libqhull , libqhull-dev, python-numeric, python-numeric-dev, python-pg
- install Delaunay
- python fixsyspath.py และทำการ update /etc/profile
- install html ของ o3dg และ cgi-bin ไฟล
- ติดตั้ง DB โดยมีการเพิ่มสร้าง createlang plpythonu o3dgdb มาด้วยจากนั้นก็สร้าง function ด้วย o3dg_postgis.sql
- นำเข้า shp ให้อยู่ในรูป 3D table
- ดำเนินการ แก้ไข path ต่างให้เรียบร้อย
- แก้ไขค่า /etc/httpd/conf/httpd.conf
# Add Handler for X3D,VRML file
AddType model/x3d+xml .x3d
AddType model/x3d+vrml .x3dv
AddType model/x3d+binary .x3db
AddEncoding gzip .x3dvz
AddEncoding gzip .x3dbz

ปล การแก้ไข python ให้ support ucs4 โดยการเพิ่ม –enable-unicode=ucs4

%configure2_5x –with-threads –with-cycle-gc –with-cxx=g++ –without-libdb –enable-ipv6 –enable-shared –enable-unicode=ucs4
และต้อง install package ดังนี้ด้วย blt,blt-scripts,libblt2,libdb2,libdb2-dev,libdb4.2-dev,libdbcxx4.2,libdbtcl,libgmp