• #9 楼 @alvin2ye 你好我想问一下你的 mysql 用的什么版本,你的 mysql 驱动器用的是 mysql,还是 mysql2?

  • #9 楼 @alvin2ye instiki 切换到 MYSQL,驱动我是装好了但是老是加载不上!bundle install 加载不上这个 gem! rails 好像老是不认为这个 gem 需要加载!?

  • Rails 切换数据库报错 at 2012年11月22日

    #1 楼 @woaigithub 不是 sudo 的问题!是要增加 libmysql-ruby libmysqlclient-dev 两个包

  • Rails 切换数据库报错 at 2012年11月22日

    虽然 MYSQL 连接器安装了,但是用不了啊! 提示: :~/blog$ rake db:create rake aborted! can't convert Fixnum into String /home/liucc/.rvm/gems/ruby-1.9.2-p320/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in connect' /home/liucc/.rvm/gems/ruby-1.9.2-p320/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:ininitialize'

  • Rails 切换数据库报错 at 2012年11月22日

    哪位好心人帮我看看啊!为什么 require': cannot load such file -- mkmf (LoadError) 没有这个文件,需要安装什么啊!

  • Rails 切换数据库报错 at 2012年11月22日

    #1 楼 @woaigithub ~/blog$ sudo gem install activerecord-mysql2-adapter [sudo] password for liucc: Fetching: mysql2-0.3.11.gem (100%) Building native extensions. This could take a while... ERROR: Error installing activerecord-mysql2-adapter: ERROR: Failed to build gem native extension.

    /usr/bin/ruby1.9.1 extconf.rb /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- mkmf (LoadError) from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' from extconf.rb:2:in `'

    Gem files will remain installed in /usr/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11 for inspection. Results logged to /usr/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11/ext/mysql2/gem_make.out

  • #7 楼 @alvin2ye 你好我想下你用的数据库是 SQLite3 还是其他,我切换数据库时候报错, HP-Compaq-6280-Pro-MT-PC:~$ gem install activerecord-mysql2-adapter Building native extensions. This could take a while... ERROR: Error installing activerecord-mysql2-adapter: ERROR: Failed to build gem native extension.

    /home/liucc/.rvm/rubies/ruby-1.9.2-p320/bin/ruby extconf.rb

  • #5 楼 @alvin2ye :谢谢!我部署成功了!我也安装了 rvm,但是我的 rvm -list 列出只有 1.9.2.呵呵。 我还想问一下,我第一次使用 WIKI 我想知道,这个 MAKEUP 一般怎么设置啊?还有如何把语言设计成中文。

  • #3 楼 @alvin2ye 你好我想问一下你们公司搭建的 instiki 是在什么环境,ruby 用的是 1.8 还是?rails 是 3.0 以上?还是? 我还问问我看 instiki 官网上看到要安装 1.8 的环境 $ sudo apt-get install ruby ruby1.8-dev libopenssl-ruby rake rubygems libsqlite3-ruby1.8 ri1.8 libxslt-dev libxml2-dev libsqlite3-dev swig flex bison 但是我现在已经是 ruby 1.9 和 rails 3.0 的环境,会冲突吗?

  • 你好你的问题最后怎么解决的??!?!?

  • #15 楼 @zjlovezj 你好,我的 ROR 在 MAC 安装成功,但是在 Linux 6.0 下安装没有报错,但是在获取 gem 包的时候报错: [[email protected] ~]$ rvm list

    rvm rubies

    ruby-1.8.7-p371 [ i686 ] =* ruby-1.9.3-p286 [ i686 ]

    => - current

    =* - current && default

    * - default

    [[email protected] ~]$ gem source -a http://ruby.taobao.org /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- zlib (LoadError) from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems.rb:540:in gunzip' from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:239:infetch_path' from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:269:in load_specs' from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/commands/sources_command.rb:72:inexecute' from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:278:in invoke' from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:147:inprocess_args' from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:117:in run' from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:65:inrun' from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/bin/gem:25:in `' [[email protected] ~]$

  • #12 楼 @zjlovezj patch 什么意思?

  • #12 楼 @zjlovezj rvm pkg install readline --verify-downloads 1 谢谢,恍然大悟!

  • #8 楼 @lyfi2003 没有!我用的是 red hat 6.0! 这个 readline 没有装成功导致我 gem source -a http://ruby.taobao.org 也报错啊!?

  • [[email protected] ~]$ rvm reinstall all --force Removing /home/ruby/.rvm/src/ruby-1.9.2-p320... Removing /home/ruby/.rvm/rubies/ruby-1.9.2-p320... No binary rubies available for: redhat/6.0/i386/ruby-1.9.2-p320. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing Ruby from source to: /home/ruby/.rvm/rubies/ruby-1.9.2-p320, this may take a while depending on your cpu(s)... ruby-1.9.2-p320 - #downloading ruby-1.9.2-p320, this may take a while depending on your connection... ruby-1.9.2-p320 - #extracting ruby-1.9.2-p320 to /home/ruby/.rvm/src/ruby-1.9.2-p320 ruby-1.9.2-p320 - #extracted to /home/ruby/.rvm/src/ruby-1.9.2-p320 ruby-1.9.2-p320 - #configuring

    ruby-1.9.2-p320 - #compiling ruby-1.9.2-p320 - #installing Removing old Rubygems files... Installing rubygems-1.8.24 for ruby-1.9.2-p320 ... Installation of rubygems completed successfully. Saving wrappers to '/home/ruby/.rvm/bin'. ruby-1.9.2-p320 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake). ruby-1.9.2-p320 - #importing default gemsets (/home/ruby/.rvm/gemsets/) Install of ruby-1.9.2-p320 - #complete Making gemset ruby-1.9.2-p320 pristine. Making gemset [email protected] pristine.

  • #4 楼 @lyfi2003 我重装了!还是不行啊! 执行:rvm reinstall all --force

  • #1 楼 @Jsiguo why your readline is readline-6.2,my readline is readline-5.2?