-
37 votesanswersviews
如何降级捆绑器或升级rails?
我在我的gemfile中添加了omniauth gem并试图运行bundle install,但是收到了有关rails和bundler版本不兼容的消息 . 我试图更新rails,但收到有关与其他gem不兼容的消息 . 如何将bundler降级到1.0? $ bundle install Fetching gem metadata from http://rubygems.org/...... Fe... -
2 votesanswersviews
让Bundler从加载了:path的gem / s中的Gemfile / s解析并加载依赖关系
这是我目前的情况: 我正在开发一个rails引擎(“awesome_engine”) . 我通过主机应用程序进行所有开发,即一个rails应用程序,它使用:path参数在其Gemfile中将此引擎指定为依赖项 gem "awesome_engine", :path => "awesome_engine" 这很有效 - 引擎gem文件夹相对于宿主应用程... -
1 votesanswersviews
Bundler找不到gem“spree_core”的兼容版本
我正在尝试安装spree_braintree gem以将braintree网关与spree 3.0.1集成 . 当我运行“bundle install”时,我收到此错误“Bundler无法找到gem的兼容版本”spree_core“” . 这是我的Gemfile . source 'https://rubygems.org' # Bundle edge Rails instead: gem... -
1 votesanswersviews
找不到宝石'rails x86-mingw32'
我正在做Michael Hartl的Rails教程,我在尝试运行rails服务器时遇到了这个问题 . 这是我的宝石文件 宝石'轨道','4.1.5' 宝石'sqlite3' 宝石'sass-rails','〜> 4.0.3' gem'ugllifier','> = 1.3.0 gem'coffee-rails','〜> 4.0.0' 宝石'jquery-rails' 宝石'tur... -
1 votesanswersviews
Selenium无法找到firefox路径 - selenium-webdriver
我有用ruby编写的自动化框架 . 我得到无法找到Firefox二进制文件(os = windows) . 确保安装Firefox或使用Selenium手动设置路径:: WebDriver :: Firefox :: Binary.path =(Selenium :: WebDriver :: Error :: WebDriverError) 当然我已经安装了firefox . 我尝试重新安装fi... -
1 votesanswersviews
gem install sqlite3有效,bundle install不行?
root@localhost:~# which ruby /usr/local/bin/ruby root@localhost:~# which gem /usr/local/bin/gem root@localhost:~# ruby -v ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux] root@localhost:~# gem ... -
0 votesanswersviews
在Centos 6.5上安装新鲜的Ruby / Gems
我刚刚在Centos 6.5盒子上通过'yum install ruby'/'yum install rubygems'安装了Ruby 1.8.7和RubyGems 1.3.7 . 刚刚击球,只是运行宝石给了我这个: /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require':没有要加载的文... -
0 votesanswersviews
Rails在自己的宝石中缺少模板
我分叉了一块宝石并改变了一些东西,但我真的很绝望 . 我总是得到模板丢失: 缺少模板缺少模板spree / addresses / index,spree / store / index,spree / base / index,application / index with {:locale => [:de,:en],:formats => [:html], :handlers ... -
0 votesanswersviews
Rspec email_spec问题
我正在阅读这个用户身份验证教程.. http://larsgebhardt.de/user-authentication-with-ruby-on-rails-rspec-and-capybara/ ..which使用gem'mail_spec' . 当然,作者使用了早期版本的rails和rspec,我遇到了让gem正常工作的问题 . 添加时.. spec_helper.rb RSpec.conf... -
0 votesanswersviews
.rvm / gems / ruby-2.0.0-p353 / gems / configatron-2.9.1 / lib / configatron / store.rb:328:in“<class:Store>”:未初始化的常量Psych :: Syck(NameError)
我在做padrino启动时遇到错误 . 我卸载并安装了很多次gems,rvm和ruby甚至捆绑器然后安装,但每次都会收到错误 uninitialized constant Psych::Syck (NameError) bharath@bharath-HP-ProBook-6450b:~/workspace/consumer_api$ padrino start /home/bharath/.... -
0 votesanswersviews
Rails Forem安装协助
所以我在过去几个小时内一直试图安装它,并且在尝试运行 rails s 时遇到以下错误,或者如果我尝试使用 rails g forem:install 安装它 /usr/lib64/ruby/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in"load':/home/forem/conf... -
12 votesanswersviews
制作Ruby宝石 - 无法加载此类文件
我正在尝试使用http://guides.rubygems.org/make-your-own-gem/中的说明构建Ruby gem . 以下似乎工作正常,并生成* .gem文件 . gem build mygem.gemspec 以下似乎也是成功的(仅当以 sudo 开头): sudo gem install mygem-0.0.1.gem 但是,当我在irb中尝试 require 'myg... -
0 votesanswersviews
在gem中使用内存数据库
我正在编写一个gem,它可以对plist文件进行一些复杂的解析/组合 . 我认为使用ActiveRecord接口并将“结构”构建为内存数据库是有意义的 . 宝石本身很好用 . 但是,我希望能够将它合并到Rails项目中 . 问题是我的gem在ActiveRecord :: Base上调用了establish_conneciton,它杀死了Rails应用程序之前的任何连接 . 它似乎有可能,因为Ac... -
17 votesanswersviews
无法在OS X上安装mysql gem
我正在做 sudo gem install mysql 在OS X上安装mysql gem . 这失败,输出如下: 构建原生扩展 . 这可能需要一段时间......错误:安装mysql时出错:错误:无法构建gem原生扩展 . /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb检查mys... -
0 votesanswersviews
Ruby没有安装json -v 1.8.1作为bundle的一部分,ERROR:无法构建gem原生扩展
我've tried installing using as part of the bundle and using sudo, but I get the same error message every time. I'目前正在 Ruby 2.0.0 and Rails 4.1.8 . 我不确定发生了什么 . 以下确切的错误消息: 从https://rubygems.org / ....... -
0 votesanswersviews
无法通过bundler安装原子v1.1.13 gem
我试图通过bundler安装原子宝石 . 我收到以下错误消息: **使用本机扩展安装atomic 1.1.13系统找不到指定的路径 . Gem :: Installer :: ExtensionBuildError:错误:无法构建gem原生扩展 . c:/Ruby200/bin/ruby.exe extconf.rb创建Makefile Gem文件将保留在c:/Ruby200/lib/rub... -
1 votesanswersviews
PostgreSQL 's pg gem won' t在OS X上安装
我已经看了互联网上的所有解决方案,重新安装了一切,但仍然没有......当我做宝石安装时,我得到: 构建原生扩展 . 这可能需要一段时间...错误:安装pg时出错:错误:无法构建gem原生扩展 . /Users/henriquedubugras/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb --with-pgsql-> lib = / u... -
-1 votesanswersviews
rails bundle安装sqlite3在kali linux中失败了
请帮我解决这个问题我用kali linux os !! root @ artisla:〜/ Documents / Adilet / Programming / blog#gem install sqlite3 - --with-sqlite3-dir = / opt / local使用以下命令构建原生扩展:' - with-sqlite3-dir = / opt / local'这可能需要... -
2 votesanswersviews
无法安装RMagic gem
我想安装RMagic gem,我得到了“找不到Magick-config”所以我安装了 $ sudo apt-get install libmagickwand-dev 但现在我得到以下输出: Gem :: Ext :: BuildError:错误:无法构建gem原生扩展 . /usr/local/rvm/rubies/ruby-2.1.5/bin/ruby -r ./siteconf201... -
0 votesanswersviews
在OSX上安装rmagick gem时出错 - 错误:无法构建gem原生扩展
我已经安装了大约40个其他宝石,但是由于这个错误,这个宝石无法安装: 使用本机扩展安装rmagick(2.13.1)Gem :: Installer :: ExtensionBuildError:错误:无法构建gem本机扩展 . /Users/durrantm/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb 检查Ruby版本> = 1.8.5... -
0 votesanswersviews
将Spree部署到Heroku
为了将spree部署到heroku,当我输入"git push heroku master"时,我按照https://github.com/krozen20/Spree-version-0.11.0/blob/master/spree.txt中的guidline显示了这条消息 从http://rubygems.org安装gem chronic 0.2.3错误:安装chroni... -
3 votesanswersviews
尝试启动rails服务器时出现语法错误
我最近开始研究一个我从github克隆的项目 . 每次我尝试启动rails服务器时都会出现以下错误: /Users/thomas/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in load': /Users/thomas/Projects/BillingMiddl... -
0 votesanswersviews
Rails上的MySQL Gem安装错误
我正在使用Chef部署我的Rails应用程序 . 而 gem install mysql 我得到了错误, Gem :: Installer :: ExtensionBuildError:错误:无法构建gem原生扩展 . / opt / chef / embedded / bin / ruby extconf.rb检查mysql_ssl_set()... * extconf.rb失败*由于某... -
26 votesanswersviews
bundle install / update:libv8(therubyracer)安装失败(带有本机扩展)
我最近想更新我的gem包但遇到了libv8的安装问题(对therubyracer的要求): Installing libv8 (3.3.10.3) with native extensions /usr/local/rvm/rubies/ruby-1.9.3-head/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:552:in `rescue in ... -
-2 votesanswersviews
Gem安装错误:无法构建gem原生扩展
我安装了最新的Xcode Tools 3.2.4 . 每当我尝试安装任何gem时,例如,MySQL gem,就会发生这样的错误: VNMB:rails2app ABC $ sudo env ARCHFLAGS =“ - arch i386”gem install mysql - \ --with-mysql -dir = / usr / local / mysql --with-mysql... -
7 votesanswersviews
在CentOS 6上安装pg gem
我正在尝试使用ruby on rails和postgres设置我的VPS(CentOS 6.4) . 我安装了ruby(2.1.0p0),rails(4.1.0)和postgresql(9.3.4)没有问题 . 当我尝试创建新的rails应用程序(rails new new_app -d postgresql)时,它会在安装pg gem时停止 . 我查看了有关此错误的所有SO帖子,并尝试了我能找到... -
711 votesanswersviews
如何安装特定版本的ruby gem?
使用命令行 gem 工具,如何安装特定版本的gem? -
1 votesanswersviews
Rails 3.0.3和Polyglot Gem问题
我希望你能帮助我 . 我有一个在本地运行的rails应用程序,也在Heroku上传和运行 . 一切都好 . 上周,我又开始工作并陷入困境 . 在我开始的时候,我打开了终端并运行'rails s'来启动本地服务器 . 我收到了这个错误: doug-naegeles-macbook-pro-17:elig_check dougnaegele $ rails s /Library/Ruby/Gems/1... -
0 votesanswersviews
使用JRuby的Rails app不起作用
我有一个在Ubuntu上创建的Rails应用程序 . 我想在Mac上运行它,但在安装捆绑包并运行 rails s 后,我收到以下错误: LoadError:加载错误:sqlite3 / sqlite3_native - java.lang.UnsatisfiedLinkError:无法加载填充库,错误:dlopen(/Users/home/.rvm/rubies/jruby-1.7.4/li... -
110 votesanswersviews
即使在使用rvm pkg install zlib之后也无法加载此类文件 - zlib
我使用rvm安装了zlib包和ruby 1.9.3,但每当我尝试安装gem时它会说 cannot load such file -- zlib 我以前安装的命令是 $ rvm install 1.9.3 $ rvm pkg install zlib $ rvm reinstall 1.9.3 --with-readline-dir=/home/username/.rvm/usr \ -...