createlang plpgsql yourdatabase
psql -f lwpostgis.sql -d yourdatabase
psql -f spatial_ref_sys.sql -d yourdatabase