This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Permission denied on unzipping package

0

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 ♦

One Answer:

1

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.

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 ♦

Source code available on GitHub .