# Can't install gems to import from Wordpress, can anyone help with this error?

**URL:** <https://talk.jekyllrb.com/t/cant-install-gems-to-import-from-wordpress-can-anyone-help-with-this-error/3951>\
**Category:** Help\
**Created:** [February 21, 2020, 5:47pm UTC](https://talk.jekyllrb.com/t/cant-install-gems-to-import-from-wordpress-can-anyone-help-with-this-error/3951 "2020-02-21T17:47:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sigul](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/sigul/32/1554_2.png) [@sigul](https://talk.jekyllrb.com/u/sigul)\
**Post date:** [February 21, 2020, 5:47pm UTC](https://talk.jekyllrb.com/t/cant-install-gems-to-import-from-wordpress-can-anyone-help-with-this-error/3951/1 "2020-02-21T17:47:27Z")

</div>

I did a clean install and followed the guide. Now stack at this:

```
➜ myblog gem install unidecode sequel mysql2 htmlentities
Successfully installed unidecode-1.0.0
Parsing documentation for unidecode-1.0.0
Done installing documentation for unidecode after 0 seconds
Successfully installed sequel-5.29.0
Parsing documentation for sequel-5.29.0
Done installing documentation for sequel after 4 seconds
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
	ERROR: Failed to build gem native extension.

    current directory: /Users/admin/gems/gems/mysql2-0.5.3/ext/mysql2
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20200221-77046-14rka9z.rb extconf.rb
checking for rb_absint_size()... yes
checking for rb_absint_singlebit_p()... yes
checking for rb_wait_for_single_fd()... yes
-----
Using mysql_config at /usr/local/bin/mysql_config
-----
checking for mysql.h... yes
checking for errmsg.h... yes
checking for SSL_MODE_DISABLED in mysql.h... yes
checking for SSL_MODE_PREFERRED in mysql.h... yes
checking for SSL_MODE_REQUIRED in mysql.h... yes
checking for SSL_MODE_VERIFY_CA in mysql.h... yes
checking for SSL_MODE_VERIFY_IDENTITY in mysql.h... yes
checking for MYSQL.net.vio in mysql.h... yes
checking for MYSQL.net.pvio in mysql.h... no
checking for MYSQL_ENABLE_CLEARTEXT_PLUGIN in mysql.h... yes
checking for SERVER_QUERY_NO_GOOD_INDEX_USED in mysql.h... yes
checking for SERVER_QUERY_NO_INDEX_USED in mysql.h... yes
checking for SERVER_QUERY_WAS_SLOW in mysql.h... yes
checking for MYSQL_OPTION_MULTI_STATEMENTS_ON in mysql.h... yes
checking for MYSQL_OPTION_MULTI_STATEMENTS_OFF in mysql.h... yes
checking for my_bool in mysql.h... no
-----
Don't know how to set rpath on your system, if MySQL libraries are not in path mysql2 may not load
-----
-----
Setting libpath to /usr/local/Cellar/mysql/8.0.19/lib
-----
creating Makefile

current directory: /Users/admin/gems/gems/mysql2-0.5.3/ext/mysql2
make "DESTDIR=" clean

current directory: /Users/admin/gems/gems/mysql2-0.5.3/ext/mysql2
make "DESTDIR="
compiling client.c
compiling infile.c
compiling mysql2_ext.c
compiling result.c
compiling statement.c
linking shared-object mysql2/mysql2.bundle
ld: warning: directory not found for option '-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.Internal.sdk/usr/local/lib'
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [mysql2.bundle] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/admin/gems/gems/mysql2-0.5.3 for inspection.
Results logged to /Users/admin/gems/extensions/universal-darwin-19/2.6.0/mysql2-0.5.3/gem_make.out
Successfully installed htmlentities-4.3.4
Parsing documentation for htmlentities-4.3.4
Done installing documentation for htmlentities after 0 seconds
3 gems installed
➜ myblog

```

Anyone know how to proceed? I am not a coder ☹

---

<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:** [March 14, 2020, 7:42am UTC](https://talk.jekyllrb.com/t/cant-install-gems-to-import-from-wordpress-can-anyone-help-with-this-error/3951/2 "2020-03-14T07:42:25Z")

</div>

In case you are still stuck on this…

As with most errors in progrmaming, you won’t be the first to experience it. I did a search for the mysql2.bundle Error part and a found a StackOverflow question which also has the `-lssl` not found error on Mac.

There several high-voted answers you can try there.

> <https://stackoverflow.com/questions/30834421/error-when-trying-to-install-app-with-mysql2-gem>
