#10 楼 @as181920 Using thin (1.5.0)
Using uglifier (1.3.0)
Using will_paginate (3.0.3)
Your bundle is complete! Use bundle show [gemname]
to see where a bundled gem is installed.
liucc@liucc-HP-Compaq-6280-Pro-MT-PC:~/mds$ rails s
/home/liucc/.rvm/gems/ruby-1.9.2-p320/gems/thin-1.5.0/lib/thin.rb:39:in `require': no such file to load -- thin_parser (LoadError)
我用一台 mac 访问的时候很快!!!难道是浏览器的原因?还是应为杀毒软件?
rvm pkg install readline --verify-downloads 1
谢谢!那我还是存在文件里!
我现在已经链接上 mysql 了但是数据迁移也成功,也没有提示错误就是迁移后表没有建成功!?!
#1 楼 @woaigithub 不是 sudo 的问题!是要增加 libmysql-ruby libmysqlclient-dev 两个包
虽然 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:in
initialize'
哪位好心人帮我看看啊!为什么 require': cannot load such file -- mkmf (LoadError) 没有这个文件,需要安装什么啊!
#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:in
require'
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
#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 包的时候报错: [ruby@localhost ~]$ rvm list
rvm rubies
ruby-1.8.7-p371 [ i686 ] =* ruby-1.9.3-p286 [ i686 ]
[ruby@localhost ~]$ 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:in
require'
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:in
fetch_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:in
execute'
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:in
process_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:in
run'
from /home/ruby/.rvm/rubies/ruby-1.9.3-p286/bin/gem:25:in `
#8 楼 @lyfi2003 没有!我用的是 red hat 6.0! 这个 readline 没有装成功导致我 gem source -a http://ruby.taobao.org 也报错啊!?
[ruby@localhost ~]$ 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 ruby-1.9.2-p320@global pristine.