<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>18234105447 (huangjunchao)</title>
    <link>https://ruby-china.org/18234105447</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>Rails 3.2 项目线上部署问题</title>
      <description>&lt;p&gt;大神们 rails 3.2 项目都是怎么在生产部署的，如何打包的？&lt;/p&gt;</description>
      <author>18234105447</author>
      <pubDate>Wed, 15 Jun 2022 16:00:36 +0800</pubDate>
      <link>https://ruby-china.org/topics/42460</link>
      <guid>https://ruby-china.org/topics/42460</guid>
    </item>
    <item>
      <title>ruby 3.2 代码脚手架生成的 sql 默认主键为空导致报错有人知道怎么设置主键为非空么</title>
      <description>&lt;p&gt;==  CreatePosts: migrating ====================================================
-- create_table(:posts)
rake aborted!
StandardError: An error has occurred, all later migrations canceled:&lt;/p&gt;

&lt;p&gt;Mysql2::Error: All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead: CREATE TABLE &lt;code&gt;posts&lt;/code&gt; (&lt;code&gt;id&lt;/code&gt; int(11) DEFAULT NULL auto_increment PRIMARY KEY, &lt;code&gt;name&lt;/code&gt; varchar(255), &lt;code&gt;title&lt;/code&gt; varchar(255), &lt;code&gt;content&lt;/code&gt; text, &lt;code&gt;created_at&lt;/code&gt; datetime NOT NULL, &lt;code&gt;updated_at&lt;/code&gt; datetime NOT NULL) ENGINE=InnoDB
/usr/share/rvm/gems/ruby-2.1.6/gems/mysql2-0.3.23/lib/mysql2/client.rb:80:in &lt;code&gt;_query'
/usr/share/rvm/gems/ruby-2.1.6/gems/mysql2-0.3.23/lib/mysql2/client.rb:80:in&lt;/code&gt;block in query'
/usr/share/rvm/gems/ruby-2.1.6/gems/mysql2-0.3.23/lib/mysql2/client.rb:79:in &lt;code&gt;handle_interrupt'
/usr/share/rvm/gems/ruby-2.1.6/gems/mysql2-0.3.23/lib/mysql2/client.rb:79:in&lt;/code&gt;query'&lt;/p&gt;</description>
      <author>18234105447</author>
      <pubDate>Wed, 08 Jun 2022 09:28:49 +0800</pubDate>
      <link>https://ruby-china.org/topics/42441</link>
      <guid>https://ruby-china.org/topics/42441</guid>
    </item>
    <item>
      <title>ruby2.1.6 安装 mysql2 依赖错误哪位老师指点一下 折腾一周了快 mysqlclient 已经安装但就是找不到</title>
      <description>&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/share/rvm/gems/ruby-2.1.6/gems/mysql2-0.3.21/ext/mysql2
/usr/share/rvm/rubies/ruby-2.1.6/bin/ruby -I /usr/share/rvm/rubies/ruby-2.1.6/lib/ruby/site_ruby/2.1.0 -r ./siteconf20220601-23605-1nr6gle.rb extconf.rb
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes&lt;/p&gt;
&lt;h2 id="checking for mysql_query() in -lmysqlclient... no"&gt;checking for mysql_query() in -lmysqlclient... no&lt;/h2&gt;&lt;h2 id="libmysqlclient is missing. Trying again with extra runtime libraries..."&gt;libmysqlclient is missing. Trying again with extra runtime libraries...&lt;/h2&gt;
&lt;p&gt;checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no&lt;/p&gt;
&lt;h2 id="checking for main() in -lmygcc... no"&gt;checking for main() in -lmygcc... no&lt;/h2&gt;&lt;h2 id="libmysqlclient is missing. You may need to 'apt-get install libmysqlclient-dev' or 'yum install mysql-devel', and try again."&gt;libmysqlclient is missing. You may need to 'apt-get install libmysqlclient-dev' or 'yum install mysql-devel', and try again.&lt;/h2&gt;
&lt;p&gt;*** 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}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/share/rvm/rubies/ruby-2.1.6/bin/ruby
        --with-mysql-dir
        --without-mysql-dir
        --with-mysql-include
        --without-mysql-include=${mysql-dir}/include
        --with-mysql-lib
        --without-mysql-lib=${mysql-dir}/lib
        --with-mysql-config
        --without-mysql-config
        --with-mysql-dir
        --without-mysql-dir
        --with-mysql-include
        --without-mysql-include=${mysql-dir}/include
        --with-mysql-lib
        --without-mysql-lib=${mysql-dir}/lib
        --with-mysqlclientlib
        --without-mysqlclientlib
        --with-mlib
        --without-mlib
        --with-mysqlclientlib
        --without-mysqlclientlib
        --with-zlib
        --without-zlib
        --with-mysqlclientlib
        --without-mysqlclientlib
        --with-socketlib
        --without-socketlib
        --with-nsllib
        --without-nsllib
        --with-mysqlclientlib
        --without-mysqlclientlib
        --with-mygcclib
        --without-mygcclib&lt;/p&gt;</description>
      <author>18234105447</author>
      <pubDate>Wed, 01 Jun 2022 14:56:47 +0800</pubDate>
      <link>https://ruby-china.org/topics/42429</link>
      <guid>https://ruby-china.org/topics/42429</guid>
    </item>
  </channel>
</rss>
