[postgis-users] Installing PostGIS on Mac OS X
Maurits Diephuis
m.diephuis at student.utwente.nl
Wed Oct 8 07:40:38 PDT 2008
Hi,
I'm trying to install postGIS on Mac OS X (Leopard 10.5.5 on intel)
I've downloaded to following binaries:
http://www.kyngchaos.com/files/software/unixport/PostgreSQL-8.3.3-1.dmg
http://www.kyngchaos.com/files/software/unixport/PostGIS-1.3.3-1a.dmg
And the GEOS 3 and PROJ 3 frameworks from the same site.
I have Postgre up and running with a database called SDM,
I then ran this command:
sudo su - postgres -c '/usr/local/pgsql/bin/createlang -U postgres
plpgsql SDM'
Which works as far as I can see, but then PostGIS gives this error:
$ sudo su - postgres -c '/usr/local/pgsql/bin/psql -d SDM -f
/usr/local/pgsql/share/lwpostgis.sql'
Password:
BEGIN
psql:/usr/local/pgsql/share/lwpostgis.sql:44: NOTICE: type
"histogram2d" is not yet defined
DETAIL: Creating a shell type definition.
psql:/usr/local/pgsql/share/lwpostgis.sql:44: ERROR: could not access
file "$libdir/liblwgeom": No such file or directory
Followed by a lot of lines like this:
psql:/usr/local/pgsql/share/lwpostgis.sql:50: ERROR: current
transaction is aborted, commands ignored until end of transaction block
Running otool on liblwgeom.so results in:
otool -l /usr/local/pgsql/lib/liblwgeom.so
/usr/local/pgsql/lib/liblwgeom.so:
Load command 0
cmd LC_SEGMENT
cmdsize 464
segname __TEXT
vmaddr 0x00000000
vmsize 0x00048000
fileoff 0
filesize 294912
maxprot 0x00000007
initprot 0x00000005
nsects 6
flags 0x0
Section
sectname __text
segname __TEXT
addr 0x0000114c
size 0x0002ebd3
offset 4428
align 2^2 (4)
reloff 0
nreloc 0
flags 0x80000400
reserved1 0
reserved2 0
Section
sectname __cstring
segname __TEXT
addr 0x0002fd20
size 0x000051e6
offset 195872
align 2^2 (4)
reloff 0
nreloc 0
flags 0x00000002
reserved1 0
reserved2 0
Section
sectname __literal8
segname __TEXT
addr 0x00034f08
size 0x00000158
offset 216840
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000004
reserved1 0
reserved2 0
Section
sectname __const
segname __TEXT
addr 0x00035060
size 0x0000be64
offset 217184
align 2^5 (32)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __eh_frame
segname __TEXT
addr 0x00040ec4
size 0x00007120
offset 265924
align 2^2 (4)
reloff 0
nreloc 0
flags 0x6000000b
reserved1 0
reserved2 0
Section
sectname __literal4
segname __TEXT
addr 0x00047fe4
size 0x0000000c
offset 294884
align 2^2 (4)
reloff 0
nreloc 0
flags 0x00000003
reserved1 0
reserved2 0
Load command 1
cmd LC_SEGMENT
cmdsize 328
segname __DATA
vmaddr 0x00048000
vmsize 0x00001000
fileoff 294912
filesize 4096
maxprot 0x00000007
initprot 0x00000003
nsects 4
flags 0x0
Section
sectname __data
segname __DATA
addr 0x00048000
size 0x00000118
offset 294912
align 2^5 (32)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __dyld
segname __DATA
addr 0x00048118
size 0x00000008
offset 295192
align 2^2 (4)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __bss
segname __DATA
addr 0x00048120
size 0x00000180
offset 0
align 2^5 (32)
reloff 0
nreloc 0
flags 0x00000001
reserved1 0
reserved2 0
Section
sectname __common
segname __DATA
addr 0x000482a0
size 0x00000070
offset 0
align 2^5 (32)
reloff 0
nreloc 0
flags 0x00000001
reserved1 0
reserved2 0
Load command 2
cmd LC_SEGMENT
cmdsize 192
segname __IMPORT
vmaddr 0x00049000
vmsize 0x00001000
fileoff 299008
filesize 4096
maxprot 0x00000007
initprot 0x00000007
nsects 2
flags 0x0
Section
sectname __pointers
segname __IMPORT
addr 0x00049000
size 0x000000c0
offset 299008
align 2^2 (4)
reloff 0
nreloc 0
flags 0x00000006
reserved1 0 (index into indirect symbol table)
reserved2 0
Section
sectname __jump_table
segname __IMPORT
addr 0x000490c0
size 0x00000b4a
offset 299200
align 2^6 (64)
reloff 0
nreloc 0
flags 0x04000008
reserved1 48 (index into indirect symbol table)
reserved2 5 (size of stubs)
Load command 3
cmd LC_SEGMENT
cmdsize 56
segname __LINKEDIT
vmaddr 0x0004a000
vmsize 0x0000d000
fileoff 303104
filesize 53156
maxprot 0x00000007
initprot 0x00000001
nsects 0
flags 0x0
Load command 4
cmd LC_UUID
cmdsize 24
uuid 0x32 0xfa 0x87 0xa5 0x21 0x1d 0x5e 0x65
0x42 0x9a 0xac 0xa1 0xc8 0x5b 0xac 0x2b
Load command 5
cmd LC_SYMTAB
cmdsize 24
symoff 303320
nsyms 1663
stroff 325820
strsize 30440
Load command 6
cmd LC_DYSYMTAB
cmdsize 80
ilocalsym 0
nlocalsym 449
iextdefsym 449
nextdefsym 1052
iundefsym 1501
nundefsym 162
tocoff 0
ntoc 0
modtaboff 0
nmodtab 0
extrefsymoff 0
nextrefsyms 0
indirectsymoff 323316
nindirectsyms 626
extreloff 323276
nextrel 5
locreloff 303104
nlocrel 27
Load command 7
cmd LC_LOAD_DYLIB
cmdsize 80
name /Library/Frameworks/GEOS.framework/Versions/3.0/GEOS
(offset 24)
time stamp 2 Thu Jan 1 01:00:02 1970
current version 4.0.2
compatibility version 4.0.0
Load command 8
cmd LC_LOAD_DYLIB
cmdsize 80
name /Library/Frameworks/PROJ.framework/Versions/4.6/PROJ
(offset 24)
time stamp 2 Thu Jan 1 01:00:02 1970
current version 6.4.0
compatibility version 6.0.0
Load command 9
cmd LC_LOAD_DYLIB
cmdsize 52
name /usr/lib/libgcc_s.1.dylib (offset 24)
time stamp 2 Thu Jan 1 01:00:02 1970
current version 1.0.0
compatibility version 1.0.0
Load command 10
cmd LC_LOAD_DYLIB
cmdsize 52
name /usr/lib/libSystem.B.dylib (offset 24)
time stamp 2 Thu Jan 1 01:00:02 1970
current version 111.0.0
compatibility version 1.0.0
Any ideas anybody?
tnx !
Maurits
--
Maurits Diephuis
www.utfoto.nl
More information about the postgis-users
mailing list