Advertisement
coding-maniac

Ruby on Rails MySQL error

Jan 3rd, 2014
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.33 KB | None | 0 0
  1. I ran: bundle install
  2. Result:
  3.  
  4. Fetching gem metadata from https://rubygems.org/...........
  5. Fetching additional metadata from https://rubygems.org/..
  6. Resolving dependencies...
  7. Using i18n (0.6.9)
  8. Using rake (10.1.1)
  9. Using minitest (4.7.5)
  10. Using multi_json (1.8.2)
  11. Using tzinfo (0.3.38)Using atomic (1.1.14)
  12.  
  13. Using builder (3.1.4)
  14. Using erubis (2.7.0)Using rack (1.5.2)
  15.  
  16. Using mime-types (1.25.1)
  17. Using polyglot (0.3.3)
  18. Using activerecord-deprecated_finders (1.0.3)
  19. Using arel (4.0.1)
  20. Using bundler (1.5.0.rc.1)
  21. Using coffee-script-source (1.6.3)
  22. Using execjs (2.0.2)
  23. Using thor (0.18.1)Using hike (1.2.3)
  24.  
  25. Using json (1.8.1)
  26. Using tilt (1.4.1)
  27. Using sass (3.2.13)
  28. Using thread_safe (0.1.3)
  29. Using rack-test (0.6.2)
  30. Using treetop (1.4.15)
  31. Using coffee-script (2.2.0)
  32. Using rdoc (3.12.2)
  33. Using uglifier (2.4.0)Using sprockets (2.10.1)
  34.  
  35. Using activesupport (4.0.2)
  36. Using mail (2.5.4)
  37. Using sdoc (0.3.20)
  38. Using actionpack (4.0.2)
  39. Using jbuilder (1.5.3)
  40. Using actionmailer (4.0.2)
  41. Using activemodel (4.0.2)
  42. Using railties (4.0.2)
  43. Using sprockets-rails (2.0.1)
  44. Using coffee-rails (4.0.1)
  45. Using jquery-rails (3.0.4)
  46. Using activerecord (4.0.2)
  47. Using sass-rails (4.0.1)
  48. Using turbolinks (2.1.0)
  49. Using rails (4.0.2)
  50.  
  51. Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
  52.  
  53. /home/olcay/.rbenv/versions/2.0.0-p353/bin/ruby extconf.rb
  54. checking for ruby/thread.h... yes
  55. checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
  56. checking for rb_thread_blocking_region()... yes
  57. checking for rb_wait_for_single_fd()... yes
  58. checking for rb_hash_dup()... yes
  59. checking for rb_intern3()... yes
  60. checking for mysql_query() in -lmysqlclient... no
  61. checking for main() in -lm... yes
  62. checking for mysql_query() in -lmysqlclient... no
  63. checking for main() in -lz... yes
  64. checking for mysql_query() in -lmysqlclient... no
  65. checking for main() in -lsocket... no
  66. checking for mysql_query() in -lmysqlclient... no
  67. checking for main() in -lnsl... yes
  68. checking for mysql_query() in -lmysqlclient... no
  69. checking for main() in -lmygcc... no
  70. checking for mysql_query() in -lmysqlclient... no
  71. *** extconf.rb failed ***
  72. Could not create Makefile due to some reason, probably lack of necessary
  73. libraries and/or headers. Check the mkmf.log file for more details. You may
  74. need configuration options.
  75.  
  76. Provided configuration options:
  77. --with-opt-dir
  78. --without-opt-dir
  79. --with-opt-include
  80. --without-opt-include=${opt-dir}/include
  81. --with-opt-lib
  82. --without-opt-lib=${opt-dir}/lib
  83. --with-make-prog
  84. --without-make-prog
  85. --srcdir=.
  86. --curdir
  87. --ruby=/home/olcay/.rbenv/versions/2.0.0-p353/bin/ruby
  88. --with-mysql-dir
  89. --without-mysql-dir
  90. --with-mysql-include
  91. --without-mysql-include=${mysql-dir}/include
  92. --with-mysql-lib
  93. --without-mysql-lib=${mysql-dir}/
  94. --with-mysql-config
  95. --without-mysql-config
  96. --with-mysql-dir
  97. --without-mysql-dir
  98. --with-mysql-include
  99. --without-mysql-include=${mysql-dir}/include
  100. --with-mysql-lib
  101. --without-mysql-lib=${mysql-dir}/
  102. --with-mysqlclientlib
  103. --without-mysqlclientlib
  104. --with-mlib
  105. --without-mlib
  106. --with-mysqlclientlib
  107. --without-mysqlclientlib
  108. --with-zlib
  109. --without-zlib
  110. --with-mysqlclientlib
  111. --without-mysqlclientlib
  112. --with-socketlib
  113. --without-socketlib
  114. --with-mysqlclientlib
  115. --without-mysqlclientlib
  116. --with-nsllib
  117. --without-nsllib
  118. --with-mysqlclientlib
  119. --without-mysqlclientlib
  120. --with-mygcclib
  121. --without-mygcclib
  122. --with-mysqlclientlib
  123. --without-mysqlclientlib
  124.  
  125.  
  126. Gem files will remain installed in /home/olcay/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/mysql2-0.3.14 for inspection.
  127. Results logged to /home/olcay/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/mysql2-0.3.14/ext/mysql2/gem_make.out
  128.  
  129. An error occurred while installing mysql2 (0.3.14), and Bundler cannot
  130. continue.
  131. Make sure that `gem install mysql2 -v '0.3.14'` succeeds before
  132. bundling.
  133.  
  134.  
  135.  
  136.  
  137.  
  138. I ran: gem install mysql2 -v '0.3.14'
  139. Result:
  140.  
  141. Building native extensions. This could take a while...
  142. ERROR: Error installing mysql2:
  143. ERROR: Failed to build gem native extension.
  144.  
  145. /home/olcay/.rbenv/versions/2.0.0-p353/bin/ruby extconf.rb
  146. checking for ruby/thread.h... yes
  147. checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
  148. checking for rb_thread_blocking_region()... yes
  149. checking for rb_wait_for_single_fd()... yes
  150. checking for rb_hash_dup()... yes
  151. checking for rb_intern3()... yes
  152. checking for mysql_query() in -lmysqlclient... no
  153. checking for main() in -lm... yes
  154. checking for mysql_query() in -lmysqlclient... no
  155. checking for main() in -lz... yes
  156. checking for mysql_query() in -lmysqlclient... no
  157. checking for main() in -lsocket... no
  158. checking for mysql_query() in -lmysqlclient... no
  159. checking for main() in -lnsl... yes
  160. checking for mysql_query() in -lmysqlclient... no
  161. checking for main() in -lmygcc... no
  162. checking for mysql_query() in -lmysqlclient... no
  163. *** extconf.rb failed ***
  164. Could not create Makefile due to some reason, probably lack of necessary
  165. libraries and/or headers. Check the mkmf.log file for more details. You may
  166. need configuration options.
  167.  
  168. Provided configuration options:
  169. --with-opt-dir
  170. --without-opt-dir
  171. --with-opt-include
  172. --without-opt-include=${opt-dir}/include
  173. --with-opt-lib
  174. --without-opt-lib=${opt-dir}/lib
  175. --with-make-prog
  176. --without-make-prog
  177. --srcdir=.
  178. --curdir
  179. --ruby=/home/olcay/.rbenv/versions/2.0.0-p353/bin/ruby
  180. --with-mysql-dir
  181. --without-mysql-dir
  182. --with-mysql-include
  183. --without-mysql-include=${mysql-dir}/include
  184. --with-mysql-lib
  185. --without-mysql-lib=${mysql-dir}/
  186. --with-mysql-config
  187. --without-mysql-config
  188. --with-mysql-dir
  189. --without-mysql-dir
  190. --with-mysql-include
  191. --without-mysql-include=${mysql-dir}/include
  192. --with-mysql-lib
  193. --without-mysql-lib=${mysql-dir}/
  194. --with-mysqlclientlib
  195. --without-mysqlclientlib
  196. --with-mlib
  197. --without-mlib
  198. --with-mysqlclientlib
  199. --without-mysqlclientlib
  200. --with-zlib
  201. --without-zlib
  202. --with-mysqlclientlib
  203. --without-mysqlclientlib
  204. --with-socketlib
  205. --without-socketlib
  206. --with-mysqlclientlib
  207. --without-mysqlclientlib
  208. --with-nsllib
  209. --without-nsllib
  210. --with-mysqlclientlib
  211. --without-mysqlclientlib
  212. --with-mygcclib
  213. --without-mygcclib
  214. --with-mysqlclientlib
  215. --without-mysqlclientlib
  216.  
  217.  
  218. Gem files will remain installed in /home/olcay/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/mysql2-0.3.14 for inspection.
  219. Results logged to /home/olcay/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/mysql2-0.3.14/ext/mysql2/gem_make.out
  220.  
  221. I ran: bundle install
  222. Result:
  223.  
  224. Fetching gem metadata from https://rubygems.org/...........
  225. Fetching additional metadata from https://rubygems.org/..
  226. Resolving dependencies...
  227. Using rake (10.1.1)
  228. Using i18n (0.6.9)
  229. Using minitest (4.7.5)
  230. Using multi_json (1.8.2)
  231. Using atomic (1.1.14)
  232. Using tzinfo (0.3.38)
  233. Using builder (3.1.4)
  234. Using erubis (2.7.0)
  235. Using mime-types (1.25.1)
  236. Using polyglot (0.3.3)
  237. Using activerecord-deprecated_finders (1.0.3)
  238. Using arel (4.0.1)
  239. Using coffee-script-source (1.6.3)
  240. Using execjs (2.0.2)
  241. Using bundler (1.5.0.rc.1)
  242. Using hike (1.2.3)
  243. Using thor (0.18.1)
  244. Using json (1.8.1)
  245. Using tilt (1.4.1)
  246. Using sass (3.2.13)
  247. Using thread_safe (0.1.3)
  248. Using treetop (1.4.15)
  249. Using coffee-script (2.2.0)
  250. Using rdoc (3.12.2)
  251. Using uglifier (2.4.0)
  252. Using activesupport (4.0.2)
  253. Using rack (1.5.2)
  254. Using mail (2.5.4)
  255. Using sdoc (0.3.20)
  256. Using activemodel (4.0.2)Using jbuilder (1.5.3)
  257.  
  258. Using rack-test (0.6.2)Using sprockets (2.10.1)
  259.  
  260. Using activerecord (4.0.2)
  261. Using actionpack (4.0.2)
  262. Using actionmailer (4.0.2)
  263. Using railties (4.0.2)
  264. Using sprockets-rails (2.0.1)
  265. Using coffee-rails (4.0.1)
  266. Using jquery-rails (3.0.4)
  267. Using rails (4.0.2)
  268. Using sass-rails (4.0.1)
  269. Using turbolinks (2.1.0)
  270.  
  271. Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
  272.  
  273. /home/olcay/.rbenv/versions/2.0.0-p353/bin/ruby extconf.rb
  274. checking for ruby/thread.h... yes
  275. checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
  276. checking for rb_thread_blocking_region()... yes
  277. checking for rb_wait_for_single_fd()... yes
  278. checking for rb_hash_dup()... yes
  279. checking for rb_intern3()... yes
  280. checking for mysql_query() in -lmysqlclient... no
  281. checking for main() in -lm... yes
  282. checking for mysql_query() in -lmysqlclient... no
  283. checking for main() in -lz... yes
  284. checking for mysql_query() in -lmysqlclient... no
  285. checking for main() in -lsocket... no
  286. checking for mysql_query() in -lmysqlclient... no
  287. checking for main() in -lnsl... yes
  288. checking for mysql_query() in -lmysqlclient... no
  289. checking for main() in -lmygcc... no
  290. checking for mysql_query() in -lmysqlclient... no
  291. *** extconf.rb failed ***
  292. Could not create Makefile due to some reason, probably lack of necessary
  293. libraries and/or headers. Check the mkmf.log file for more details. You may
  294. need configuration options.
  295.  
  296. Provided configuration options:
  297. --with-opt-dir
  298. --without-opt-dir
  299. --with-opt-include
  300. --without-opt-include=${opt-dir}/include
  301. --with-opt-lib
  302. --without-opt-lib=${opt-dir}/lib
  303. --with-make-prog
  304. --without-make-prog
  305. --srcdir=.
  306. --curdir
  307. --ruby=/home/olcay/.rbenv/versions/2.0.0-p353/bin/ruby
  308. --with-mysql-dir
  309. --without-mysql-dir
  310. --with-mysql-include
  311. --without-mysql-include=${mysql-dir}/include
  312. --with-mysql-lib
  313. --without-mysql-lib=${mysql-dir}/
  314. --with-mysql-config
  315. --without-mysql-config
  316. --with-mysql-dir
  317. --without-mysql-dir
  318. --with-mysql-include
  319. --without-mysql-include=${mysql-dir}/include
  320. --with-mysql-lib
  321. --without-mysql-lib=${mysql-dir}/
  322. --with-mysqlclientlib
  323. --without-mysqlclientlib
  324. --with-mlib
  325. --without-mlib
  326. --with-mysqlclientlib
  327. --without-mysqlclientlib
  328. --with-zlib
  329. --without-zlib
  330. --with-mysqlclientlib
  331. --without-mysqlclientlib
  332. --with-socketlib
  333. --without-socketlib
  334. --with-mysqlclientlib
  335. --without-mysqlclientlib
  336. --with-nsllib
  337. --without-nsllib
  338. --with-mysqlclientlib
  339. --without-mysqlclientlib
  340. --with-mygcclib
  341. --without-mygcclib
  342. --with-mysqlclientlib
  343. --without-mysqlclientlib
  344.  
  345.  
  346. Gem files will remain installed in /home/olcay/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/mysql2-0.3.14 for inspection.
  347. Results logged to /home/olcay/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/mysql2-0.3.14/ext/mysql2/gem_make.out
  348.  
  349. An error occurred while installing mysql2 (0.3.14), and Bundler cannot
  350. continue.
  351. Make sure that `gem install mysql2 -v '0.3.14'` succeeds before
  352. bundling.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement