LoadError on migration #21

Closed
mrmartineau opened this Issue Apr 1, 2013 · 4 comments

Projects

None yet

2 participants

@mrmartineau

I have tried to solve this myself but it has taken quite a few hours so far so I trying my luck here. I want to migrate my old Textpattern blog to Jekyll so I followed the migrate instructions and keep getting this error:

/Library/Ruby/Gems/1.8/gems/mysqlplus-0.1.2/lib/mysql.bundle: LoadError: dlopen(/Library/Ruby/Gems/1.8/gems/mysqlplus-0.1.2/lib/mysql.bundle, 9): Library not loaded: libmysqlclient.18.dylib (Sequel::AdapterNotFound)
  Referenced from: /Library/Ruby/Gems/1.8/gems/mysqlplus-0.1.2/lib/mysql.bundle
  Reason: image not found - /Library/Ruby/Gems/1.8/gems/mysqlplus-0.1.2/lib/mysql.bundle
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:55:in `require'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.45.0/lib/sequel/adapters/mysql.rb:4
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:55:in `gem_original_require'
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:55:in `k_require'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.45.0/lib/sequel/core.rb:387:in `tsk_require'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.45.0/lib/sequel/core.rb:100:in `check_requiring_thread'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.45.0/lib/sequel/core.rb:97:in `synchronize'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.45.0/lib/sequel/core.rb:97:in `check_requiring_thread'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.45.0/lib/sequel/core.rb:387:in `tsk_require'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.45.0/lib/sequel/database/connecting.rb:25:in `adapter_class'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.45.0/lib/sequel/database/connecting.rb:67:in `connect'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.45.0/lib/sequel/core.rb:147:in `connect'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.45.0/lib/sequel/core.rb:420:in `adapter_method'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.45.0/lib/sequel/core.rb:427:in `mysql'
    from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.1/lib/jekyll/migrators/textpattern.rb:28:in `process'
    from -e:1

I am also not sure I am doing it right because the instructions aren't very clear; should I export an sql dump of my Textpattern site and put it in the _import folder? If not that, where should I put it or what should I do?

Can anyone help? Please let me know if you need more information.

@parkr
Member
parkr commented Apr 1, 2013

It's a problem with some C extensions or something. Try re-installing your mysql/mysql2 gem.

@parkr parkr closed this Apr 1, 2013
@mrmartineau

I just reinstalled them both using this sudo gem install sequel mysqlplus wiithout any errors and ran the Jekyll migrate command again and received the same errors again. For reference, this is the command:

ruby -rubygems -e 'require "jekyll/migrators/textpattern"; Jekyll::TextPattern.process("db", "username", "password", "localhost")'

Is this all correct?

@parkr
Member
parkr commented Apr 2, 2013

What version of jekyll do you have installed? Try running gem install jekyll-import --pre and modifying the above line to match what's in this repo.

@mrmartineau

I am running Jekyll 0.12.1. I did not use this version of the migrate plugin but have done as you said and am receiving this error:

$ ruby -rubygems -e 'require "/Library/Ruby/Gems/1.8/gems/jekyll-import-0.1.0.beta1/lib/jekyll/jekyll-import/textpattern"; Jekyll::TextPattern.process("db", "user", "pass", "localhost")'
/Library/Ruby/Gems/1.8/gems/safe_yaml-0.9.0/lib/safe_yaml.rb:102: uninitialized constant SafeYAML::Set (NameError)
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:60:in `gem_original_require'
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:60:in `require'
    from /Library/Ruby/Gems/1.8/gems/jekyll-import-0.1.0.beta1/lib/jekyll/jekyll-import/textpattern.rb:4
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `require'
    from -e:1

I thought the problem was with SafeYAML so I installed it (safe_yaml) to no avail. What am I doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment