How to solve problems when installing MySql in gitlab4

Source: Internet
Author: User

MySQL cannot be installed automatically

When bunlde is installed on the new Ubuntu system, the following problem occurs:

[Ruby]View plaincopy
  1. Installing mysql2 (0.3.11) with native extensions
  2. GEM: Installer: extensionbuilderror: Error: failed to build gem native extension.
  3. /Home/ailen/. rvm/rubian/ruby-1.9.3-p327/bin/Ruby extconf. Rb
  4. Checking for rb_thread_blocking_region ()... yes
  5. Checking for rb_wait_for_single_fd ()... yes
  6. Checking for mysql_query () in-lmysqlclient... no
  7. Checking for main () in-lM... yes
  8. Checking for mysql_query () in-lmysqlclient... no
  9. Checking for main () in-LZ... yes
  10. Checking for mysql_query () in-lmysqlclient... no
  11. Checking for main () in-lsocket... no
  12. Checking for mysql_query () in-lmysqlclient... no
  13. Checking for main () in-lnsl... yes
  14. Checking for mysql_query () in-lmysqlclient... no
  15. Checking for main () in-lmygcc... no
  16. Checking for mysql_query () in-lmysqlclient... no
  17. * ** Extconf. RB failed ***
  18. Cocould not create makefile due to some reason, probably lack
  19. Necessary libraries and/or headers. Check the mkmf. Log File for more
  20. Details. You may need configuration options.
  21. Provided configuration options:
  22. -- With-opt-Dir
  23. -- With-opt-include
  24. -- Without-opt-include =$ {opt-Dir}/include
  25. -- With-opt-lib
  26. -- Without-opt-lib =$ {opt-Dir}/lib
  27. -- With-make-Prog
  28. -- Without-make-Prog
  29. -- Srcdir =.
  30. -- Curdir
  31. -- Ruby =/home/ailen/. rvm/rubies/ruby-1.9.3-p327/bin/Ruby
  32. -- With-mysql-config
  33. -- Without-mysql-config
  34. -- With-mysql-Dir
  35. -- Without-mysql-Dir
  36. -- With-mysql-include
  37. -- Without-mysql-include =$ {mysql-Dir}/include
  38. -- With-mysql-lib
  39. -- Without-mysql-lib =$ {mysql-Dir}/lib
  40. -- With-mysqlclientlib
  41. -- Without-mysqlclientlib
  42. -- With-mlib
  43. -- Without-mlib
  44. -- With-mysqlclientlib
  45. -- Without-mysqlclientlib
  46. -- With-zlib
  47. -- Without-zlib
  48. -- With-mysqlclientlib
  49. -- Without-mysqlclientlib
  50. -- With-socketlib
  51. -- Without-socketlib
  52. -- With-mysqlclientlib
  53. -- Without-mysqlclientlib
  54. -- With-nsllib
  55. -- Without-nsllib
  56. -- With-mysqlclientlib
  57. -- Without-mysqlclientlib
  58. -- With-mygcclib
  59. -- Without-mygcclib
  60. -- With-mysqlclientlib
  61. -- Without-mysqlclientlib
  62. Gem files will remain installed in/home/ailen/. rvm/gems/ruby-1.9.3-p327/gems/mysql2-0.3.11 for inspection.
  63. Results logged to/home/ailen/. rvm/gems/ruby-1.9.3-p327/gems/mysql2-0.3.11/EXT/mysql2/gem_make.out
  64. An error occurred while installing mysql2 (0.3.11), and bundler cannot continue.
  65. Make sure that 'gem install mysql2-V '0. 3.11 ''succeeds before bundling.

Solution:

sudo apt-get install libmysql-ruby libmysqlclient-dev

 

Http://blog.csdn.net/renkai611919/article/details/8223418

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.