[openstreetmap/openstreetmap-website] fail to vagrant up after I download the "openstreetmap-website" file according to the step (#1930)

Andy Allan notifications at github.com
Mon Jul 23 04:28:15 UTC 2018


I get the same problem running `vagrant up` on master. It's related to the changes in https://github.com/openstreetmap/openstreetmap-website/pull/1899.

The provisioning [command that fails](https://github.com/openstreetmap/openstreetmap-website/blob/b9f9d9df8887c181828f37867c16bc3e83a6fa59/script/vagrant/setup/provision.sh#L41-L42) is:

```
pushd db/functions
sudo -u vagrant make
```

The [Makefile](https://github.com/openstreetmap/openstreetmap-website/blob/b9f9d9df8887c181828f37867c16bc3e83a6fa59/db/functions/Makefile#L4) tries to find the quad_tile headers with

```
QTDIR=$(shell bundle show quad_tile)/ext/quad_tile
```

but running `sudo -u vagrant bundle show quad_tile` as root within the virtual machine highlights the bug:

```
root at ubuntu-xenial:/srv/openstreetmap-website/db/functions# sudo -u vagrant bundle show quad_tile
`/root` is not writable.
Bundler will use `/tmp/bundler/home/vagrant' as your home directory temporarily.
/var/lib/gems/2.3.0/gems/quad_tile-1.0.1
```

The makefile is taking the output from that, including the warnings, and so the error message becomes:

```
==> default: make: *** No rule to make target '`/root`', needed by 'quadtile.o'.  Stop.
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1930#issuecomment-406935625
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180722/096134e0/attachment.html>


More information about the rails-dev mailing list