Created
May 11, 2016 06:45
-
-
Save daipresents/68309216a979a68d30d5b39a5fef2270 to your computer and use it in GitHub Desktop.
Redmine+OSXでMysql::ProtocolError: invalid packet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActionView::TemplateError (Mysql::ProtocolError: invalid packet: sequence number mismatch(98 != 1(expected)): SELECT * FROM `settings` WHERE (`settings`.`name` = 'app_title') LIMIT 1) on line #5 of app/views/layouts/base.rhtml: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ruby-mysqlを削除 | |
$ gem uninstall ruby-mysql | |
$ cd mysql-ruby-2.8.2 | |
$ ruby extconf.rb --with-mysql-config=/usr/local/mysql/bin/mysql_config | |
$ make | |
$ sudo make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 削除 | |
$ sudo rm /Library/Ruby/Site/1.8/universal-darwin10.0/mysql.bundle | |
# 入れ直し | |
$ gem install mysql | |
Building native extensions. This could take a while... | |
ERROR: Error installing mysql: | |
ERROR: Failed to build gem native extension. | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb --with-mysql-lib=/usr/local/mysql | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lm... yes | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lz... yes | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lsocket... no | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lnsl... no | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lmygcc... no | |
checking for mysql_query() in -lmysqlclient... no | |
*** extconf.rb failed *** | |
Could not create Makefile due to some reason, probably lack of | |
necessary libraries and/or headers. Check the mkmf.log file for more | |
details. You may need configuration options. | |
Provided configuration options: | |
--with-opt-dir | |
--without-opt-dir | |
--with-opt-include | |
--without-opt-include=${opt-dir}/include | |
--with-opt-lib | |
--without-opt-lib=${opt-dir}/lib | |
--with-make-prog | |
--without-make-prog | |
--srcdir=. | |
--curdir | |
--ruby=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby | |
--with-mysql-config | |
--without-mysql-config | |
--with-mysql-dir | |
--without-mysql-dir | |
--with-mysql-include | |
--without-mysql-include=${mysql-dir}/include | |
--with-mysql-lib=${mysql-dir}/lib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-mlib | |
--without-mlib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-zlib | |
--without-zlib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-socketlib | |
--without-socketlib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-nsllib | |
--without-nsllib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
--with-mygcclib | |
--without-mygcclib | |
--with-mysqlclientlib | |
--without-mysqlclientlib | |
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/mysql-2.8.1 for inspection. | |
Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gem install mysql -- --with-mysql-dir=/usr/local/mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config --with-mysql-include=/usr/local/mysql/include | |
Building native extensions. This could take a while... | |
Successfully installed mysql-2.8.1 | |
1 gem installed | |
Installing ri documentation for mysql-2.8.1... | |
No definition for next_result | |
No definition for field_name | |
No definition for field_table | |
No definition for field_def | |
No definition for field_type | |
No definition for field_length | |
No definition for field_max_length | |
No definition for field_flags | |
No definition for field_decimals | |
No definition for time_inspect | |
No definition for time_to_s | |
No definition for time_get_year | |
No definition for time_get_month | |
No definition for time_get_day | |
No definition for time_get_hour | |
No definition for time_get_minute | |
No definition for time_get_second | |
No definition for time_get_neg | |
No definition for time_get_second_part | |
No definition for time_set_year | |
No definition for time_set_month | |
No definition for time_set_day | |
No definition for time_set_hour | |
No definition for time_set_minute | |
No definition for time_set_second | |
No definition for time_set_neg | |
No definition for time_set_second_part | |
No definition for time_equal | |
No definition for error_errno | |
No definition for error_sqlstate | |
Installing RDoc documentation for mysql-2.8.1... | |
No definition for next_result | |
No definition for field_name | |
No definition for field_table | |
No definition for field_def | |
No definition for field_type | |
No definition for field_length | |
No definition for field_max_length | |
No definition for field_flags | |
No definition for field_decimals | |
No definition for time_inspect | |
No definition for time_to_s | |
No definition for time_get_year | |
No definition for time_get_month | |
No definition for time_get_day | |
No definition for time_get_hour | |
No definition for time_get_minute | |
No definition for time_get_second | |
No definition for time_get_neg | |
No definition for time_get_second_part | |
No definition for time_set_year | |
No definition for time_set_month | |
No definition for time_set_day | |
No definition for time_set_hour | |
No definition for time_set_minute | |
No definition for time_set_second | |
No definition for time_set_neg | |
No definition for time_set_second_part | |
No definition for time_equal | |
No definition for error_errno | |
No definition for error_sqlstate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo env ARCHFLAGS="-arch x86_64" gem install --no-rdoc --no-ri mysql -- --with-mysql-dir=/usr/local/mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config --with-mysql-include=/usr/local/mysql/include | |
Building native extensions. This could take a while... | |
Successfully installed mysql-2.8.1 | |
1 gem installed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/redmine/redmine-1.1.2/vendor/rails/activesupport/lib/active_support/dependencies.rb:440:in `load_missing_constant': uninitialized constant MysqlCompat::MysqlRes (NameError) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment