Rails 3 - 捆绑安装不再工作了...一个sqlite3问题!

时间:2011-04-19 14:57:13

标签: ruby-on-rails

几分钟前我做了一个

bundle install git://github.com/vigetlabs/serialize_with_options.git

现在每次我尝试进行“捆绑安装”时都会收到此错误:

> MacBook-di-Andrea:village abramo$
> bundle install http://rubygems.org
> Fetching source index for
> http://rubygems.org/ Installing rake
> (0.8.7)  Installing abstract (1.0.0) 
> Installing activesupport (3.0.5) 
> Installing builder (2.1.2)  Installing
> i18n (0.5.0)  Installing activemodel
> (3.0.5)  Installing erubis (2.6.6) 
> Installing rack (1.2.1)  Installing
> rack-mount (0.6.13)  Installing
> rack-test (0.5.7)  Installing tzinfo
> (0.3.24)  Installing actionpack
> (3.0.5)  Installing mime-types (1.16) 
> Installing polyglot (0.3.1) 
> Installing treetop (1.4.9)  Installing
> mail (2.2.15)  Installing actionmailer
> (3.0.5)  Installing arel (2.0.9) 
> Installing activerecord (3.0.5) 
> Installing activeresource (3.0.5) 
> Installing xml-simple (1.0.14) 
> Installing aws-s3 (0.6.2)  Using
> bundler (1.0.10)  Installing paperclip
> (2.3.8)  Installing thor (0.14.6) 
> Installing railties (3.0.5) 
> Installing rails (3.0.5)  Installing
> sqlite3 (1.3.3) with native extensions
> /Users/abramo/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:529:in
> `rescue in block in build_extensions':
> ERROR: Failed to build gem native
> extension.
> (Gem::Installer::ExtensionBuildError)
> 
>         /Users/abramo/.rvm/rubies/ruby-1.9.2-p180/bin/ruby
> extconf.rb  checking for sqlite3.h...
> yes checking for
> sqlite3_libversion_number() in
> -lsqlite3... yes checking for rb_proc_arity()... yes checking for
> sqlite3_initialize()... yes checking
> for sqlite3_next_stmt()... yes
> checking for sqlite3_backup_init()...
> yes checking for
> sqlite3_column_database_name()... no
> checking for
> sqlite3_enable_load_extension()... no
> checking for
> sqlite3_load_extension()... no
> creating Makefile
> 
> make Makefile:148: *** target pattern
> contains no `%'.  Stop.
> 
> 
> Gem files will remain installed in
> /Users/abramo/village/http:/rubygems.org/ruby/1.9.1/gems/sqlite3-1.3.3
> for inspection. Results logged to
> /Users/abramo/village/http:/rubygems.org/ruby/1.9.1/gems/sqlite3-1.3.3/ext/sqlite3/gem_make.out
>   from
> /Users/abramo/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:507:in
> `block in build_extensions'   from
> /Users/abramo/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:482:in
> `each'    from
> /Users/abramo/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:482:in
> `build_extensions'    from
> /Users/abramo/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:156:in
> `install'     from
> /Users/abramo/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/source.rb:96:in
> `install'     from
> /Users/abramo/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/installer.rb:55:in `block in run'     from
> /Users/abramo/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:in
> `block in each'   from
> /Users/abramo/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:in
> `each'    from
> /Users/abramo/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:in
> `each'    from
> /Users/abramo/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/installer.rb:44:in `run'  from
> /Users/abramo/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/installer.rb:8:in
> `install'     from
> /Users/abramo/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/cli.rb:226:in
> `install'     from
> /Users/abramo/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/vendor/thor/task.rb:22:in
> `run'     from
> /Users/abramo/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/vendor/thor/invocation.rb:118:in
> `invoke_task'     from
> /Users/abramo/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/vendor/thor.rb:246:in `dispatch'  from
> /Users/abramo/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/vendor/thor/base.rb:389:in
> `start'   from
> /Users/abramo/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/bin/bundle:13:in
> `<top (required)>'    from
> /Users/abramo/.rvm/gems/ruby-1.9.2-p180/bin/bundle:19:in
> `load'    from
> /Users/abramo/.rvm/gems/ruby-1.9.2-p180/bin/bundle:19:in
> `<main>'

你知道如何解决这个问题吗?谢谢!

2 个答案:

答案 0 :(得分:3)

我通过删除项目文件夹中的文件夹解决了这个问题。我删除了几个隐藏文件夹。因此,如果您遇到类似的事情(并且您使用的是OS X),只需输入您的终端:

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

在此之后,您将在Finder中看到隐藏的文件夹。输入项目文件夹并逐个删除隐藏文件夹,以发现问题的根源。

答案 1 :(得分:2)

好像这是一个sqlite3安装问题,查看这个帖子,希望你也有同样的问题

How do I install SQlite3 for Ruby on Rails while using RVM

HTH

欢呼声

sameera