[openstreetmap/openstreetmap-website] INSTALL.md has minor quirks (#2345)

YuriiNskyi notifications at github.com
Thu Aug 8 09:04:29 UTC 2019


I'm trying to install `openstreetmap-website` on clean `Ubuntu 18.04 LTS`.

After spending some time on solving [this issue](https://github.com/openstreetmap/openstreetmap-website/issues/2295), by executing these commands:

```
sudo apt-get -y install npm
sudo npm install yarn -g
```

here are the new problems:

First has occurred when executing `bundle install`:

>Traceback (most recent call last):
	1: from /usr/local/bin/bundle:23:in `<main>'
/usr/local/bin/bundle:23:in `load': cannot load such file -- /usr/share/rubygems-integration/all/gems/bundler-1.16.1/exe/bundle (LoadError)

After googling, this problem is simply resolves:

```
sudo gem update --system
sudo gem uninstall bundler
sudo gem install bundle
```

The next steps works as needed, until we stops at `bundle exec rails server`:

> couldn't find file 'settings.local.yml'

This is happily resolved by executing `cp config/settings.yml config/settings.local.yml`.

Finally, the site works.

There are multiple proposed solutions:

1. Add section with Yarn installation into [INSTALL.md](https://github.com/openstreetmap/openstreetmap-website/blob/master/INSTALL.md).
2. Do something with bundler (it's up to you, I'm not a professional Ruby developer)
3. Do not require `settings.local.yml` file as, I think, it is only needed to override `settings.yml`. What if I don't need any overrides and totally agreed with default one? 
4. Do something with these errors, while running the server:

>pngcrush worker: `pngcrush` not found; please provide proper binary or disable this worker (--no-pngcrush argument or `:pngcrush => false` through options)
advpng worker: `advpng` not found; please provide proper binary or disable this worker (--no-advpng argument or `:advpng => false` through options)
optipng worker: `optipng` not found; please provide proper binary or disable this worker (--no-optipng argument or `:optipng => false` through options)
pngquant worker: `pngquant` not found; please provide proper binary or disable this worker (--no-pngquant argument or `:pngquant => false` through options)
jhead worker: `jhead` not found, `jpegtran` not found; please provide proper binary or disable this worker (--no-jhead argument or `:jhead => false` through options)
jpegoptim worker: `jpegoptim` not found; please provide proper binary or disable this worker (--no-jpegoptim argument or `:jpegoptim => false` through options)
jpegtran worker: `jpegtran` not found; please provide proper binary or disable this worker (--no-jpegtran argument or `:jpegtran => false` through options)
gifsicle worker: `gifsicle` not found; please provide proper binary or disable this worker (--no-gifsicle argument or `:gifsicle => false` through options)
svgo worker: `svgo` not found; please provide proper binary or disable this worker (--no-svgo argument or `:svgo => false` through options)

Seems that they are just warnings, anyway, they looks scary.

After all, it is really not so hard to install `openstreetmap-website`, except those quirks which are quite confusing for those who didn't professionally work with Linux or Ruby.

-- 
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/2345
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190808/23af51ff/attachment.html>


More information about the rails-dev mailing list