NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Can someone help. thanks

ubuntu@ip-172-31-15-32:~$ sudo su postgres postgres@ip-172-31-15-32:/home/ubuntu$ cd Nominatim-2.5.1 postgres@ip-172-31-15-32:/home/ubuntu/Nominatim-2.5.1$ ./utils/setup.php --osm-file philippines-latest.osmfile.bz2 --all [--osm2pgsql-cache 18000] 2>&1 | tee setup.log tee: setup.log: Permission denied setup.php: Unknown option '18000]' Try `setup.php --help` for more information. postgres@ip-172-31-15-32:/home/ubuntu/Nominatim-2.5.1$

asked 19 Jan '18, 03:33

Fberdejo's gravatar image

Fberdejo
11112
accept rate: 0%

edited 19 Jan '18, 20:45

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

a sidenote: note that 2.5.1 is an old Nominatim release, you may want to use a current one.

(26 Jan '18, 08:15) aseerel4c26 ♦

The installation instructions https://wiki.openstreetmap.org/wiki/Nominatim/Installation don't have a line 'sudo su postgres'. You can install Nominatim as user ubuntu, as long as ubuntu is a postgres superuser (see "Creating postgres accounts" in the instructions).

The brackets in "[--osm2pgsql-cache 18000]" mean that part of the command is optional. You can remove it. Or remove the brackets if your server has more than 32GB RAM.

permanent link

answered 19 Jan '18, 13:01

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

I already removed the brackets.. i already create super user base on the instruction. when I try on ubuntu. their is no such file or directory. please help me about this.. this is my 2nd time to install this Nominatim, I already forgot it. thank you in advance sir.

ubuntu@ip-172-31-15-32:~$ ./utils/setup.php --osm-file philippines-latest.osmfile.bz2 --all --osm2pgsql-cache 18000 2>&1 | tee setup.log -bash: ./utils/setup.php: No such file or directory ubuntu@ip-172-31-15-32:~$ ls Nominatim-2.5.1 Nominatim-2.5.1.tar.bz2 philippines-latest.osm.bz2 setup.log ubuntu@ip-172-31-15-32:~$

(26 Jan '18, 02:30) Fberdejo
1

@Fberdejo: as you noticed you do not have the directory "utils" at your current location. cd into the directory "Nominatim-2.5.1" first. There you will find this directory and file.

(26 Jan '18, 07:41) aseerel4c26 ♦

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×689
×104

question asked: 19 Jan '18, 03:33

question was seen: 1,659 times

last updated: 26 Jan '18, 08:15

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum