Skip to content

Commit e582329

Browse files
committed
Clarify installation instructions.
1 parent aeab5bd commit e582329

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

README.pg_sphere

+10-8
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,22 @@ useful functions and operators.
66
NOTICE:
77
This version will works only with postgresql version 8.0 and above.
88

9-
INSTALLATION:
9+
INSTALLATION AS EXTENSION (RECOMMENDED):
1010

11+
-- build and install
12+
gmake USE_PGXS=1 PG_CONFIG=/usr/bin/pg_config
13+
gmake USE_PGXS=1 PG_CONFIG=/usr/bin/pg_config install
14+
-- load extension
15+
psql <database> -c "CREATE EXTENSION pg_sphere;"
16+
17+
INSTALLATION AS MODULE (DEPRECATED):
18+
19+
-- build and install
1120
gmake
1221
gmake install
1322
-- load functions
1423
psql <database> < pg_sphere.sql
1524

16-
USING PG_CONFIG:
17-
18-
gmake USE_PGXS=1 PG_CONFIG=/usr/bin/pg_config
19-
gmake USE_PGXS=1 PG_CONFIG=/usr/bin/pg_config install
20-
-- load extension:
21-
CREATE EXTENSION pg_sphere;
22-
2325
REGRESSION TEST:
2426

2527
gmake installcheck

0 commit comments

Comments
 (0)