Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running the gem: `require': cannot load such file -- mysql-pr (LoadError) #91

Open
samuelpismel opened this issue Jun 8, 2016 · 6 comments
Labels

Comments

@samuelpismel
Copy link

samuelpismel commented Jun 8, 2016

I'm on ruby 2.3.1 and this is the build log:

gem install mysqltopostgres-0.3.0.gem

Fetching: test-unit-2.5.5.gem (100%)
Successfully installed test-unit-2.5.5
Fetching: postgres-pr-0.7.0.gem (100%)
Successfully installed postgres-pr-0.7.0
Fetching: mysql-pr-2.9.11.gem (100%)
Successfully installed mysql-pr-2.9.11
Successfully installed mysqltopostgres-0.3.0
4 gems installed

But when I run the gem this load error appears:
/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/mysqltopostgres-0.3.0/lib/mysql2psql/mysql_reader.rb:4:in 'require': cannot load such file -- mysql-pr (LoadError)

Any ideas how to solve?

@samuelpismel samuelpismel changed the title Got error running the gem: `require': cannot load such file -- mysql-pr (LoadError) Error running the gem: `require': cannot load such file -- mysql-pr (LoadError) Jun 8, 2016
@paazmaya paazmaya added the bug label Aug 21, 2016
@onpaws
Copy link

onpaws commented Sep 10, 2016

Also encountering this error.

I installed from source from inside my Rails app's directory.
Tried gem install mysql-pr from mysql2postgres/ as well as from within my Rails app's directory.

I also tried bundle exec in front but got
gems/mysqltopostgres-0.3.0/lib/mysql2psql/mysql_reader.rb:4:in 'require': cannot load such file -- mysql-pr (LoadError)

ruby 2.3.1, os x 10.11.6

@benkoshy
Copy link

exact same error........any ideas anyone?

@hendranata
Copy link

any idea?

@anitagraham
Copy link

This says that the problem is related to mysql2 not being built with native extensions. The answer gives a solution for windows, but I'll have to go and look (again) for the solution for OSX.

@jrabolli
Copy link

any luck resolving this for OSX? I have the same issue: /.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/mysqltopostgres-0.3.1/lib/mysql2psql/mysql_reader.rb:4:in `require': cannot load such file -- mysql-pr (LoadError)

@davidquintard
Copy link

Same issue with Linux Mint
What about this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants