# Does Gemfile need to include svg?

**URL:** https://meta.discourse.org/t/does-gemfile-need-to-include-svg/49848
**Category:** Development
**Created:** [September 7, 2016, 7:34pm UTC](https://meta.discourse.org/t/does-gemfile-need-to-include-svg/49848 "2016-09-07T19:34:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 7, 2016, 7:34pm UTC](https://meta.discourse.org/t/does-gemfile-need-to-include-svg/49848/1 "2016-09-07T19:34:40Z")

</div>

On my dev environment Sidekiq was whining that

```
svgo worker: `svgo` not found; please provide proper binary or disable this worker (--no-svgo argument or `:svgo => false` through options)

```

I finally did a `gem install svg` and restarted sidekiq. The message seems to have gone away (it only ever showed up sometimes, so I’m not entirely convinced).

Does `Gemfile` need to include:

```plaintext
gem 'svg'

```

So that `bundle install` would have installed it?

I can’t tell if this fixed my problem with image URLs not getting baked on my import or if that’s coincidence.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [September 7, 2016, 8:07pm UTC](https://meta.discourse.org/t/does-gemfile-need-to-include-svg/49848/2 "2016-09-07T20:07:35Z")

</div>

The image tools are usually provided by the Docker image. Take a look at the [Dockerfile](https://github.com/discourse/discourse_docker/blob/master/image/base/Dockerfile) and the install scripts [install-gifsicle](https://github.com/discourse/discourse_docker/blob/master/image/base/install-gifsicle), [install-pngcrush](https://github.com/discourse/discourse_docker/blob/master/image/base/install-pngcrush) and [install-pngquant](https://github.com/discourse/discourse_docker/blob/master/image/base/install-pngquant). I’m not sure if all of those are [still used](https://github.com/discourse/discourse/blob/master/.image_optim.yml) by Discourse.

I installed the following packages on my Ubuntu development VM in order to get rid of the warnings.

```bash
sudo apt install advancecomp jhead jpegoptim libjpeg-turbo-progs optipng npm nodejs-legacy
sudo npm install svgo -g

```

Some of them are already installed by the [script](https://github.com/techAPJ/install-rails/blob/master/linux) mentioned in the [Beginners Guide to Install Discourse on Ubuntu for Development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727).

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 7, 2016, 8:37pm UTC](https://meta.discourse.org/t/does-gemfile-need-to-include-svg/49848/3 "2016-09-07T20:37:01Z")

</div>

Thanks, @gerhard. Apparently I installed node some other way. Figuring out whether and when to install stuff via `apt` vs `npm` seems frought.

Egads. I think I installed node.js this weekend for some other reason some other way, so now I have npm@2.15.9 installed in /usr/bin and npm@3.3.6 in `~/.nvm/versions/node/v5.0.0/bin/npm`.

Personal problems aside, @techAPJ, neither the [Ubuntu Development Guide](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727) nor [`install-rails/linux`](https://github.com/techAPJ/install-rails/blob/master/linux) mentions `svgo`. Perhaps you could update one of those?
