# .../\_plugins/jekyll\_minimagick.rb:7: syntax error, unexpected '\<' (SyntaxError)

**URL:** <https://talk.jekyllrb.com/t/plugins-jekyll-minimagick-rb-syntax-error-unexpected-syntaxerror/5477>\
**Category:** Uncategorized\
**Created:** [January 8, 2021, 4:10pm UTC](https://talk.jekyllrb.com/t/plugins-jekyll-minimagick-rb-syntax-error-unexpected-syntaxerror/5477 "2021-01-08T16:10:30Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [January 8, 2021, 9:24pm UTC](https://talk.jekyllrb.com/t/plugins-jekyll-minimagick-rb-syntax-error-unexpected-syntaxerror/5477/2 "2021-01-08T21:24:19Z")

</div>

Make sure you are using ruby 2.6 or 2.7

And I recommend upgrading to jekyll 3.9

As that it what github pages uses and any maintained gems will work with latest Jekyll.

* * *

Listen to the error message. It is your friend.

Can you see which line of your file is failing? What does your line 7 see look like? Can you post a link to your plugin file in your repo.

In the script on github, i see a “\<” in line 6 not line 7. And that is standard class inheritance so I don’t see an issue.

> <https://github.com/MattKevan/Jekyll-MiniMagick-new/blob/master/jekyll_minimagick.rb>

See if you can ruby the script alone to see if it is a ruby issue and not a Jekyll issue.

```auto
ruby _plugins/jekyll_minimagick.rb
# or
bundle exec ruby _plugins/jekyll_minimagick.rb

```

---

_[View the full topic](https://talk.jekyllrb.com/t/plugins-jekyll-minimagick-rb-syntax-error-unexpected-syntaxerror/5477)._
