<p>I get the same problem running <code>vagrant up</code> on master. It's related to the changes in <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="331804224" data-permission-text="Issue title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1899" href="https://github.com/openstreetmap/openstreetmap-website/pull/1899">#1899</a>.</p>
<p>The provisioning <a href="https://github.com/openstreetmap/openstreetmap-website/blob/b9f9d9df8887c181828f37867c16bc3e83a6fa59/script/vagrant/setup/provision.sh#L41-L42">command that fails</a> is:</p>
<pre><code>pushd db/functions
sudo -u vagrant make
</code></pre>
<p>The <a href="https://github.com/openstreetmap/openstreetmap-website/blob/b9f9d9df8887c181828f37867c16bc3e83a6fa59/db/functions/Makefile#L4">Makefile</a> tries to find the quad_tile headers with</p>
<pre><code>QTDIR=$(shell bundle show quad_tile)/ext/quad_tile
</code></pre>
<p>but running <code>sudo -u vagrant bundle show quad_tile</code> as root within the virtual machine highlights the bug:</p>
<pre><code>root@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
</code></pre>
<p>The makefile is taking the output from that, including the warnings, and so the error message becomes:</p>
<pre><code>==> default: make: *** No rule to make target '`/root`', needed by 'quadtile.o'.  Stop.
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/1930#issuecomment-406935625">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLUdfnNmMRx8s31KSgMOUEJGHJq_7ks5uJVDfgaJpZM4VYJ1U">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLXSad3Gmzjrxn8G6jzXDYU6-PabNks5uJVDfgaJpZM4VYJ1U.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"PERSON","message":"@gravitystorm in #1930: 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.\r\n\r\nThe provisioning [command that fails](https://github.com/openstreetmap/openstreetmap-website/blob/b9f9d9df8887c181828f37867c16bc3e83a6fa59/script/vagrant/setup/provision.sh#L41-L42) is:\r\n\r\n```\r\npushd db/functions\r\nsudo -u vagrant make\r\n```\r\n\r\nThe [Makefile](https://github.com/openstreetmap/openstreetmap-website/blob/b9f9d9df8887c181828f37867c16bc3e83a6fa59/db/functions/Makefile#L4) tries to find the quad_tile headers with\r\n\r\n```\r\nQTDIR=$(shell bundle show quad_tile)/ext/quad_tile\r\n```\r\n\r\nbut running `sudo -u vagrant bundle show quad_tile` as root within the virtual machine highlights the bug:\r\n\r\n```\r\nroot@ubuntu-xenial:/srv/openstreetmap-website/db/functions# sudo -u vagrant bundle show quad_tile\r\n`/root` is not writable.\r\nBundler will use `/tmp/bundler/home/vagrant' as your home directory temporarily.\r\n/var/lib/gems/2.3.0/gems/quad_tile-1.0.1\r\n```\r\n\r\nThe makefile is taking the output from that, including the warnings, and so the error message becomes:\r\n\r\n```\r\n==\u003e default: make: *** No rule to make target '`/root`', needed by 'quadtile.o'.  Stop.\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/openstreetmap-website/issues/1930#issuecomment-406935625"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/1930#issuecomment-406935625",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/1930#issuecomment-406935625",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [openstreetmap/openstreetmap-website] fail to vagrant up after I download the \"openstreetmap-website\"  file  according to the step (#1930)",
"sections": [
{
"text": "",
"activityTitle": "**Andy Allan**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@gravitystorm",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"openstreetmap/openstreetmap-website\",\n\"issueId\": 1930,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"openstreetmap/openstreetmap-website\",\n\"issueId\": 1930\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/openstreetmap/openstreetmap-website/issues/1930#issuecomment-406935625"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 358653268\n}"
}
],
"themeColor": "26292E"
}
]</script>