<p>I'm trying to install <code>openstreetmap-website</code> on clean <code>Ubuntu 18.04 LTS</code>.</p>
<p>After spending some time on solving <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2295" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/2295/hovercard">this issue</a>, by executing these commands:</p>
<pre><code>sudo apt-get -y install npm
sudo npm install yarn -g
</code></pre>
<p>here are the new problems:</p>
<p>First has occurred when executing <code>bundle install</code>:</p>
<blockquote>
<p>Traceback (most recent call last):<br>
1: from /usr/local/bin/bundle:23:in <code><main>' /usr/local/bin/bundle:23:in </code>load': cannot load such file -- /usr/share/rubygems-integration/all/gems/bundler-1.16.1/exe/bundle (LoadError)</p>
</blockquote>
<p>After googling, this problem is simply resolves:</p>
<pre><code>sudo gem update --system
sudo gem uninstall bundler
sudo gem install bundle
</code></pre>
<p>The next steps works as needed, until we stops at <code>bundle exec rails server</code>:</p>
<blockquote>
<p>couldn't find file 'settings.local.yml'</p>
</blockquote>
<p>This is happily resolved by executing <code>cp config/settings.yml config/settings.local.yml</code>.</p>
<p>Finally, the site works.</p>
<p>There are multiple proposed solutions:</p>
<ol>
<li>Add section with Yarn installation into <a href="https://github.com/openstreetmap/openstreetmap-website/blob/master/INSTALL.md">INSTALL.md</a>.</li>
<li>Do something with bundler (it's up to you, I'm not a professional Ruby developer)</li>
<li>Do not require <code>settings.local.yml</code> file as, I think, it is only needed to override <code>settings.yml</code>. What if I don't need any overrides and totally agreed with default one?</li>
<li>Do something with these errors, while running the server:</li>
</ol>
<blockquote>
<p>pngcrush worker: <code>pngcrush</code> not found; please provide proper binary or disable this worker (--no-pngcrush argument or <code>:pngcrush => false</code> through options)<br>
advpng worker: <code>advpng</code> not found; please provide proper binary or disable this worker (--no-advpng argument or <code>:advpng => false</code> through options)<br>
optipng worker: <code>optipng</code> not found; please provide proper binary or disable this worker (--no-optipng argument or <code>:optipng => false</code> through options)<br>
pngquant worker: <code>pngquant</code> not found; please provide proper binary or disable this worker (--no-pngquant argument or <code>:pngquant => false</code> through options)<br>
jhead worker: <code>jhead</code> not found, <code>jpegtran</code> not found; please provide proper binary or disable this worker (--no-jhead argument or <code>:jhead => false</code> through options)<br>
jpegoptim worker: <code>jpegoptim</code> not found; please provide proper binary or disable this worker (--no-jpegoptim argument or <code>:jpegoptim => false</code> through options)<br>
jpegtran worker: <code>jpegtran</code> not found; please provide proper binary or disable this worker (--no-jpegtran argument or <code>:jpegtran => false</code> through options)<br>
gifsicle worker: <code>gifsicle</code> not found; please provide proper binary or disable this worker (--no-gifsicle argument or <code>:gifsicle => false</code> through options)<br>
svgo worker: <code>svgo</code> not found; please provide proper binary or disable this worker (--no-svgo argument or <code>:svgo => false</code> through options)</p>
</blockquote>
<p>Seems that they are just warnings, anyway, they looks scary.</p>
<p>After all, it is really not so hard to install <code>openstreetmap-website</code>, except those quirks which are quite confusing for those who didn't professionally work with Linux or Ruby.</p>

<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/2345?email_source=notifications&email_token=AAK2OLNMOMDIWJSENV74Q4LQDPOR3A5CNFSM4IKIAVE2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HEC5B6Q">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJDYPYZ53AQNVCSOKDQDPOR3ANCNFSM4IKIAVEQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAK2OLMC2O2M2246YDKHAJ3QDPOR3A5CNFSM4IKIAVE2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HEC5B6Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2345?email_source=notifications\u0026email_token=AAK2OLNMOMDIWJSENV74Q4LQDPOR3A5CNFSM4IKIAVE2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HEC5B6Q",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2345?email_source=notifications\u0026email_token=AAK2OLNMOMDIWJSENV74Q4LQDPOR3A5CNFSM4IKIAVE2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HEC5B6Q",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>