# Need help importing Joomla to Jekyll it doesn't recognize the mysql2 gem

**URL:** <https://talk.jekyllrb.com/t/need-help-importing-joomla-to-jekyll-it-doesnt-recognize-the-mysql2-gem/900>\
**Category:** Help\
**Created:** [August 17, 2017, 6:54pm UTC](https://talk.jekyllrb.com/t/need-help-importing-joomla-to-jekyll-it-doesnt-recognize-the-mysql2-gem/900 "2017-08-17T18:54:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![unarmedamoeba](https://avatars.discourse-cdn.com/v4/letter/u/a8b319/32.png) [@unarmedamoeba](https://talk.jekyllrb.com/u/unarmedamoeba)\
**Post date:** [August 17, 2017, 6:54pm UTC](https://talk.jekyllrb.com/t/need-help-importing-joomla-to-jekyll-it-doesnt-recognize-the-mysql2-gem/900/1 "2017-08-17T18:54:07Z")

</div>

Never done anything like this but I’m trying to take a data dump of SQL and run it through the jekyll-importer (can be found here [http://import.jekyllrb.com/docs/joomla/](http://import.jekyllrb.com/docs/joomla/) and the source code here: [https://github.com/jekyll/jekyll-import/blob/v0.10.0/lib/jekyll-import/importers/joomla.rb](https://github.com/jekyll/jekyll-import/blob/v0.10.0/lib/jekyll-import/importers/joomla.rb))

The error that is given to me after I run the code they told me to run on bash is this: " Whoops! Looks like you need to install ‘mysql2’ before you can use this importer.

If you’re using bundler: 1. Add ‘gem “mysql2”’ to your Gemfile 2. Run ‘bundle install’

If you’re not using bundler: 1. Run ‘gem install mysql2’. "

When I run my gem list it shows these related gems though:

jekyll (3.5.2)  
jekyll-import (0.12.0)  
jekyll-sass-converter (1.5.0)  
jekyll-watch (1.5.0)  
mysql2 (0.4.9 x64-mingw32, 0.3.16)

So i’m not sure why It can’t be read though I have mysql2. I have tried to bundle install like they suggest and I have also tried to gem install mysql2 like they suggest and both fail in downloading the correct gem. I’m not sure where to go from here.

Any suggestions or feedback will be appreciated

---

<div class="post-metadata">

**Author:** ![ginfuru](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/ginfuru/32/773_2.png) [@ginfuru](https://talk.jekyllrb.com/u/ginfuru)\
**Post date:** [August 18, 2017, 12:24pm UTC](https://talk.jekyllrb.com/t/need-help-importing-joomla-to-jekyll-it-doesnt-recognize-the-mysql2-gem/900/2 "2017-08-18T12:24:51Z")

</div>

Did you do `bundle uodate` ?

---

<div class="post-metadata">

**Author:** ![unarmedamoeba](https://avatars.discourse-cdn.com/v4/letter/u/a8b319/32.png) [@unarmedamoeba](https://talk.jekyllrb.com/u/unarmedamoeba)\
**Post date:** [August 18, 2017, 3:02pm UTC](https://talk.jekyllrb.com/t/need-help-importing-joomla-to-jekyll-it-doesnt-recognize-the-mysql2-gem/900/3 "2017-08-18T15:02:58Z")

</div>

So here is my bundle env:

## Environment

```auto
Bundler 1.15.3
Rubygems 2.6.11
Ruby 2.4.1p111 (2017-03-22 revision 58053) [x64-mingw32]
Git 1.9.4.msysgit.2
Platform x64-mingw32
OpenSSL OpenSSL 1.0.2l 25 May 2017

```

## Gemfile

### Gemfile

```ruby
source 'http://rubygems.org'

gem "rubygems"
gem "sequel"
gem "mysql2"
gem "fileutils"
gem "safe_yaml"

```

### Gemfile.lock

```auto
<No C:/devl/workspaces/jekyllImport/Gemfile.lock found>

```

and bundle gets me this:

Fetching gem metadata from [http://rubygems.org/](http://rubygems.org/)…  
Fetching version metadata from [http://rubygems.org/](http://rubygems.org/)…  
Could not find gem ‘rubygems x64-mingw32’ in any of the gem sources listed in  
your Gemfile.

---

<div class="post-metadata">

**Author:** ![unarmedamoeba](https://avatars.discourse-cdn.com/v4/letter/u/a8b319/32.png) [@unarmedamoeba](https://talk.jekyllrb.com/u/unarmedamoeba)\
**Post date:** [August 18, 2017, 3:05pm UTC](https://talk.jekyllrb.com/t/need-help-importing-joomla-to-jekyll-it-doesnt-recognize-the-mysql2-gem/900/4 "2017-08-18T15:05:34Z")

</div>

But if i remove the rubygem and fileutils gems then the bundle is successfully updated:

Fetching gem metadata from [http://rubygems.org/](http://rubygems.org/)…  
Fetching version metadata from [http://rubygems.org/](http://rubygems.org/)…  
Resolving dependencies…  
Using bundler 1.15.3  
Using mysql2 0.4.9 (x64-mingw32)  
Using safe\_yaml 1.0.4  
Using sequel 4.49.0  
Bundle updated!
