Updated OpenSolarisInstallation_32bit (markdown)
parent
58dce034be
commit
bf1ab90685
1 changed files with 13 additions and 9 deletions
|
@ -2,13 +2,13 @@
|
||||||
<!-- Version: 2 -->
|
<!-- Version: 2 -->
|
||||||
<!-- Last-Modified: 2010/12/08 13:45:47 -->
|
<!-- Last-Modified: 2010/12/08 13:45:47 -->
|
||||||
<!-- Author: springmeyer -->
|
<!-- Author: springmeyer -->
|
||||||
For the main install page see: http://trac.mapnik.org/wiki/OpenSolarisInstallation#Step6:InstallingCoreMapnikDependencies
|
For the main install page see: https://github.com/mapnik/mapnik/wiki/OpenSolarisInstallation part InstallingCoreMapnikDependencies
|
||||||
|
|
||||||
## 6a: 32 bit - Postgres 8.4 from source
|
## 6a: 32 bit - Postgres 8.4 from source
|
||||||
|
|
||||||
First we set up a few environment variables
|
First we set up a few environment variables
|
||||||
|
|
||||||
#!sh
|
```sh
|
||||||
TARGET="~/.bashrc"
|
TARGET="~/.bashrc"
|
||||||
echo 'export PATH=/opt/ts/gcc/4.4/bin/:/opt/ts/bin:/usr/local/bin/:/usr/local/pgsql/bin:$PATH' >> $TARGET
|
echo 'export PATH=/opt/ts/gcc/4.4/bin/:/opt/ts/bin:/usr/local/bin/:/usr/local/pgsql/bin:$PATH' >> $TARGET
|
||||||
echo 'export PYTHONPATH=/usr/local/lib/python2.6/site-packages:$PYTHONPATH' >> $TARGET
|
echo 'export PYTHONPATH=/usr/local/lib/python2.6/site-packages:$PYTHONPATH' >> $TARGET
|
||||||
|
@ -16,17 +16,19 @@ First we set up a few environment variables
|
||||||
echo 'export LANG="C"' >> $TARGET
|
echo 'export LANG="C"' >> $TARGET
|
||||||
echo 'export LC_ALL="C"' >> $TARGET
|
echo 'export LC_ALL="C"' >> $TARGET
|
||||||
source $TARGET
|
source $TARGET
|
||||||
|
```
|
||||||
|
|
||||||
Then set up a build area:
|
Then set up a build area:
|
||||||
|
|
||||||
#!sh
|
```sh
|
||||||
# set up a directory for source builds of familiar geo libs
|
# set up a directory for source builds of familiar geo libs
|
||||||
mkdir src
|
mkdir src
|
||||||
export SRC=`pwd`/src
|
export SRC=`pwd`/src
|
||||||
|
```
|
||||||
|
|
||||||
Then get on with the installs
|
Then get on with the installs
|
||||||
|
|
||||||
#!sh
|
```sh
|
||||||
# icu
|
# icu
|
||||||
cd $SRC
|
cd $SRC
|
||||||
wget http://download.icu-project.org/files/icu4c/4.4.1/icu4c-4_4_1-src.tgz
|
wget http://download.icu-project.org/files/icu4c/4.4.1/icu4c-4_4_1-src.tgz
|
||||||
|
@ -160,11 +162,10 @@ Then get on with the installs
|
||||||
# grab a hard revision that we know works on solaris (based on wikipedia usage, although they compile with suncc)
|
# grab a hard revision that we know works on solaris (based on wikipedia usage, although they compile with suncc)
|
||||||
svn co -r 19933 http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/
|
svn co -r 19933 http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/
|
||||||
cd osm2pgsql
|
cd osm2pgsql
|
||||||
|
```
|
||||||
|
apply patch
|
||||||
|
|
||||||
# APPLY PATCH
|
```diff
|
||||||
|
|
||||||
|
|
||||||
#!diff
|
|
||||||
Index: Makefile
|
Index: Makefile
|
||||||
===================================================================
|
===================================================================
|
||||||
--- Makefile (revision 19933)
|
--- Makefile (revision 19933)
|
||||||
|
@ -177,13 +178,16 @@ Then get on with the installs
|
||||||
|
|
||||||
SRCS:=$(wildcard *.c) $(wildcard *.cpp)
|
SRCS:=$(wildcard *.c) $(wildcard *.cpp)
|
||||||
OBJS:=$(SRCS:.c=.o)
|
OBJS:=$(SRCS:.c=.o)
|
||||||
|
```
|
||||||
|
|
||||||
finish install
|
finish install
|
||||||
|
|
||||||
|
```
|
||||||
make
|
make
|
||||||
pfexec cp osm2pgsql /usr/local/bin
|
pfexec cp osm2pgsql /usr/local/bin
|
||||||
pfexec chmod +x /usr/local/bin/osm2pgsql
|
pfexec chmod +x /usr/local/bin/osm2pgsql
|
||||||
pfexec mkdir /usr/share/osm2pgsql
|
pfexec mkdir /usr/share/osm2pgsql
|
||||||
# get latest style and install
|
# get latest style and install
|
||||||
svn up default.style
|
svn up default.style
|
||||||
pfexec cp default.style /usr/share/osm2pgsql/
|
pfexec cp default.style /usr/share/osm2pgsql/
|
||||||
|
```
|
Loading…
Add table
Reference in a new issue