<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>kingask (luping)</title>
    <link>https://ruby-china.org/kingask</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>gem install mysql2 安装不上 环境在 fedora 和 centos 都试过</title>
      <description>&lt;p&gt;[root@localhost ~]# gem install mysql2&lt;/p&gt;

&lt;p&gt;Building native extensions. This could take a while...
ERROR:  Error installing mysql2:
        ERROR: Failed to build gem native extension.&lt;/p&gt;

&lt;p&gt;current directory: /usr/local/share/gems/gems/mysql2-0.5.2/ext/mysql2
/usr/bin/ruby -r ./siteconf20180727-4443-m9s83b.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h&lt;/p&gt;

&lt;p&gt;extconf failed, exit code 1&lt;/p&gt;

&lt;p&gt;Gem files will remain installed in /usr/local/share/gems/gems/mysql2-0.5.2 for inspection.
Results logged to /usr/local/lib64/gems/ruby/mysql2-0.5.2/gem_make.out
[root@localhost ~]# gem install mysql2 -v 0.5.1
Fetching: mysql2-0.5.1.gem (100%)
Building native extensions. This could take a while...
ERROR:  Error installing mysql2:
        ERROR: Failed to build gem native extension.&lt;/p&gt;

&lt;p&gt;current directory: /usr/local/share/gems/gems/mysql2-0.5.1/ext/mysql2
/usr/bin/ruby -r ./siteconf20180727-4452-1pfveel.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h&lt;/p&gt;

&lt;p&gt;extconf failed, exit code 1&lt;/p&gt;

&lt;p&gt;Gem files will remain installed in /usr/local/share/gems/gems/mysql2-0.5.1 for inspection.
Results logged to /usr/local/lib64/gems/ruby/mysql2-0.5.1/gem_make.out&lt;/p&gt;</description>
      <author>kingask</author>
      <pubDate>Fri, 27 Jul 2018 09:28:09 +0800</pubDate>
      <link>https://ruby-china.org/topics/37231</link>
      <guid>https://ruby-china.org/topics/37231</guid>
    </item>
    <item>
      <title>rails 4.0.0 bundle install 失败</title>
      <description>&lt;p&gt;Installing sqlite3 1.3.13 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.&lt;/p&gt;

&lt;p&gt;current directory: /usr/lib64/ruby/gems/2.4.0/gems/sqlite3-1.3.13/ext/sqlite3
/usr/bin/ruby -r ./siteconf20180417-26666-5hv2w7.rb extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'brew install sqlite3',
'yum install sqlite-devel' or 'apt-get install libsqlite3-dev'
and check your shared library search path (the
location where your sqlite3 shared library is located).
*** 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.&lt;/p&gt;

&lt;p&gt;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}/lib64
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/bin/$(RUBY_BASE_NAME)
        --with-sqlite3-config
        --without-sqlite3-config
        --with-pkg-config
        --without-pkg-config
        --with-sqlite3-dir
        --without-sqlite3-dir
        --with-sqlite3-include
        --without-sqlite3-include=${sqlite3-dir}/include
        --with-sqlite3-lib
        --without-sqlite3-lib=${sqlite3-dir}/lib64&lt;/p&gt;

&lt;p&gt;To see why this extension failed to compile, please check the mkmf.log which can be found
here:&lt;/p&gt;

&lt;p&gt;/usr/lib64/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0/sqlite3-1.3.13/mkmf.log&lt;/p&gt;

&lt;p&gt;extconf failed, exit code 1&lt;/p&gt;

&lt;p&gt;Gem files will remain installed in /usr/lib64/ruby/gems/2.4.0/gems/sqlite3-1.3.13 for
inspection.
Results logged to
/usr/lib64/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0/sqlite3-1.3.13/gem_make.out&lt;/p&gt;

&lt;p&gt;An error occurred while installing sqlite3 (1.3.13), and Bundler cannot
continue.
Make sure that &lt;code&gt;gem install sqlite3 -v '1.3.13'&lt;/code&gt; succeeds before bundling.&lt;/p&gt;

&lt;p&gt;In Gemfile:
  sqlite3&lt;/p&gt;</description>
      <author>kingask</author>
      <pubDate>Wed, 18 Apr 2018 10:35:43 +0800</pubDate>
      <link>https://ruby-china.org/topics/35473</link>
      <guid>https://ruby-china.org/topics/35473</guid>
    </item>
  </channel>
</rss>
