<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>zhangst23 (栋栋晓)</title>
    <link>https://ruby-china.org/zhangst23</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>Mina deploy to  Ubuntu, but an error about json.</title>
      <description>&lt;p&gt;这是我在 so 上说的问题，没有人回答，我贴到社区来看看有人遇到过吗？下面可能有用英文表述的，都很简单凑合着能看。  &lt;/p&gt;

&lt;p&gt;I use Mina deploy to ubuntu, but an error about json.
我使用 Mina 部署网站，出现了 ubuntu 系统 安装 gem 的问题&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that  gem install json -v '1.8.3'
succeeds before bundling.
 !     ERROR: Deploy failed.
    -----&amp;gt; Cleaning up build
 Unlinking current
 OK
 !     Command failed.
Failed with status 1 (19)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;hr&gt;

&lt;p&gt;我的 3 个做法&lt;/p&gt;

&lt;p&gt;1 &lt;code&gt;sudo apt-get install libgmp-dev&lt;/code&gt; but not work.&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;root@iZ28nb9h6ovZ:~# sudo apt-get install libgmp-dev
     Reading package lists... Done
     Building dependency tree
     Reading state information... Done
     libgmp-dev is already the newest version.
     The following packages were automatically installed and are no longer      required:
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;2  delete &lt;code&gt;Gemfile.lock&lt;/code&gt;, and &lt;code&gt;bundle&lt;/code&gt; , then &lt;code&gt;mina deploy&lt;/code&gt;, but not work.&lt;/p&gt;

&lt;p&gt;3 On my VPS. root@iZ28nb9h6ovZ:~# &lt;code&gt;gem install json -v '1.8.3'&lt;/code&gt;&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Building native extensions.  This could take a while...
    Successfully installed json-1.8.3
    Parsing documentation for json-1.8.3
    Installing ri documentation for json-1.8.3
    Done installing documentation for json after 3 seconds
1 gem installed
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;上面 3 个方法用过后，使用 mina deploy 后 json 的问题还存在。&lt;/p&gt;</description>
      <author>zhangst23</author>
      <pubDate>Wed, 06 Apr 2016 00:21:19 +0800</pubDate>
      <link>https://ruby-china.org/topics/29553</link>
      <guid>https://ruby-china.org/topics/29553</guid>
    </item>
  </channel>
</rss>
