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

Cannot install 0.4.7 on MySQL 5.1 (CentOS 6) #866

Closed
marutosi opened this issue Jul 2, 2017 · 8 comments
Closed

Cannot install 0.4.7 on MySQL 5.1 (CentOS 6) #866

marutosi opened this issue Jul 2, 2017 · 8 comments
Milestone

Comments

@marutosi
Copy link

marutosi commented Jul 2, 2017

$ rpm -qf /usr/include/mysql/mysql.h
mysql-devel-5.1.73-8.el6_8.x86_64
$ gem install mysql2 -v '0.4.7'
Building native extensions.  This could take a while...
ERROR:  Error installing mysql2:
	ERROR: Failed to build gem native extension.

    current directory: /home/xxxxx/.rvm/gems/ruby-2.3.4/gems/mysql2-0.4.7/ext/mysql2
/home/xxxxx/.rvm/rubies/ruby-2.3.4/bin/ruby -r ./siteconf20170702-31295-51dkj2.rb extconf.rb
checking for rb_absint_size()... yes
checking for rb_absint_singlebit_p()... yes
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
checking for rb_big_cmp()... yes
-----
Using mysql_config at /usr/bin/mysql_config
-----
checking for mysql.h... yes
checking for errmsg.h... yes
checking for mysqld_error.h... yes
checking for SSL_MODE_DISABLED in mysql.h... no
checking for MYSQL_OPT_SSL_ENFORCE in mysql.h... no
checking for MYSQL.net.vio in mysql.h... yes
checking for MYSQL.net.pvio in mysql.h... no
-----
Setting libpath to /usr/lib64/mysql
-----
creating Makefile

current directory: /home/xxxxx/.rvm/gems/ruby-2.3.4/gems/mysql2-0.4.7/ext/mysql2
make "DESTDIR=" clean

current directory: /home/xxxxx/.rvm/gems/ruby-2.3.4/gems/mysql2-0.4.7/ext/mysql2
make "DESTDIR="
compiling statement.c
compiling result.c
result.c: In function 'rb_mysql_result_alloc_result_buffers':
result.c:326: warning: assignment from incompatible pointer type
result.c:328: warning: assignment from incompatible pointer type
At top level:
cc1: warning: unrecognized command line option "-Wno-used-but-marked-unused"
cc1: warning: unrecognized command line option "-Wno-static-in-inline"
cc1: warning: unrecognized command line option "-Wno-reserved-id-macro"
cc1: warning: unrecognized command line option "-Wno-missing-variable-declarations"
cc1: warning: unrecognized command line option "-Wno-documentation-unknown-command"
cc1: warning: unrecognized command line option "-Wno-disabled-macro-expansion"
cc1: warning: unrecognized command line option "-Wno-covered-switch-default"
cc1: warning: unrecognized command line option "-Wno-conditional-uninitialized"
compiling mysql2_ext.c
compiling client.c
client.c: In function '_mysql_client_options':
client.c:906: error: 'MYSQL_ENABLE_CLEARTEXT_PLUGIN' undeclared (first use in this function)
client.c:906: error: (Each undeclared identifier is reported only once
client.c:906: error: for each function it appears in.)
client.c: In function 'set_enable_cleartext_plugin':
client.c:1329: error: 'MYSQL_ENABLE_CLEARTEXT_PLUGIN' undeclared (first use in this function)
At top level:
cc1: warning: unrecognized command line option "-Wno-used-but-marked-unused"
cc1: warning: unrecognized command line option "-Wno-static-in-inline"
cc1: warning: unrecognized command line option "-Wno-reserved-id-macro"
cc1: warning: unrecognized command line option "-Wno-missing-variable-declarations"
cc1: warning: unrecognized command line option "-Wno-documentation-unknown-command"
cc1: warning: unrecognized command line option "-Wno-disabled-macro-expansion"
cc1: warning: unrecognized command line option "-Wno-covered-switch-default"
cc1: warning: unrecognized command line option "-Wno-conditional-uninitialized"
make: *** [client.o] Error 1

make failed, exit code 2

Gem files will remain installed in /home/xxxxx/.rvm/gems/ruby-2.3.4/gems/mysql2-0.4.7 for inspection.
Results logged to /home/xxxxx/.rvm/gems/ruby-2.3.4/extensions/x86_64-linux/2.3.0/mysql2-0.4.7/gem_make.out
@marutosi
Copy link
Author

marutosi commented Jul 2, 2017

@sodabrew
Copy link
Collaborator

sodabrew commented Jul 2, 2017

Oh no! I forgot to provide a fallback case for earlier versions of MySQL. Thank you for reporting!

@ppoektos
Copy link

ppoektos commented Jul 3, 2017

I have the same error.

@sodabrew sodabrew added this to the 0.4.8 milestone Jul 6, 2017
@sodabrew
Copy link
Collaborator

sodabrew commented Jul 6, 2017

Resolved by #867

@sodabrew sodabrew closed this as completed Jul 6, 2017
@marutosi
Copy link
Author

marutosi commented Jul 6, 2017

When 0.4.8 will be released?

@sodabrew
Copy link
Collaborator

sodabrew commented Jul 6, 2017

My target date is Monday July 10. I want to give a few days to see if any other problem reports appear this week.

@seanmckinley
Copy link

@sodabrew you guys still planning on releasing 0.4.8 today?

@sodabrew
Copy link
Collaborator

sodabrew commented Jul 10, 2017 via email

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

No branches or pull requests

4 participants