<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>snjxiaojing (我叫小井)</title>
    <link>https://ruby-china.org/snjxiaojing</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>bundle install 的时候怎么带上 --with-mysql-include 这样的参数</title>
      <description>&lt;p&gt;正在手动安装 gitlab，git clone 源码到服务器上后进行&lt;code&gt;bundle install&lt;/code&gt;操作，装 mysql2 这个 gem 的时候提示错误，google 得知要指定 lib 等的路径，于是有了以下命令：&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gem install mysql2  -v '0.3.16' -- --with-mysql-include=/usr/local/mariadb/include/mysql/ --with-mysql-lib=/usr/local/mariadb/lib/ --with-mysql-dir=/usr/local/mariadb/
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;提示安装成功：&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;This could take a while...
Successfully installed mysql2-0.3.16
Parsing documentation for mysql2-0.3.16
Done installing documentation for mysql2 after 0 seconds
1 gem installed
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;然后我把 gem 的&lt;code&gt;INSTALLATION DIRECTORY下&lt;/code&gt;的&lt;code&gt;mysql2-0.3.16&lt;/code&gt;目录拷贝到了项目所在的 gems 下，然后再&lt;code&gt;bundle install&lt;/code&gt;想继续安装的时候还是提示安装 mysql2 报错，跟之前一样的错误。
然后想把 gem 安装时的参数也给 bundle，请问一下应该怎么做~~~
先谢过了~~~&lt;/p&gt;</description>
      <author>snjxiaojing</author>
      <pubDate>Thu, 18 Dec 2014 14:29:39 +0800</pubDate>
      <link>https://ruby-china.org/topics/23268</link>
      <guid>https://ruby-china.org/topics/23268</guid>
    </item>
  </channel>
</rss>
