草庐IT

安装error

全部标签

ruby-on-rails - Bundle 无法在 Mac OSX 10.7 上安装 RMagick gem

我已经使用ImageMagick安装程序脚本安装了ImageMagickhttps://github.com/maddox/magick-installer.我在OSXLion10.7上,使用RVM、Ruby1.9.3p125。问题似乎出在MagickWand.h上,这是完整的日志/Users/pdjimeno/.rvm/rubies/ruby-1.9.3-p125/bin/rubyextconf.rbcheckingforRubyversion>=1.8.5...yesextconf.rb:128:UseRbConfiginsteadofobsoleteanddeprecatedCo

ruby-on-rails - 如何配置 config.yml 以便我可以安装 devkit?

MicrosoftWindows[Version6.1.7601]Copyright(c)2009MicrosoftCorporation.Allrightsreserved.C:\Users\Aaron>cd/DevKitThesystemcannotfindthepathspecified.C:\Users\Aaron>cd\DevKitC:\DevKit>rubydk.rbinitInitializationcomplete!Pleasereviewandmodifytheauto-generated'config.yml'filetoensureitcontainstheroo

记录一次mac电脑安装git并在idea中使用的问题

一、安装Git下载地址:https://sourceforge.net/projects/git-osx-installer/点击下载最新版就可以了,下载速度很快的。下载完直接打开,默认安装即可。安装完成直接在命令行用root用户执行:git--version。出现如下表示安装成功二、本地配置Git1、在mac命令行执行如下两个命令(两个都要执行),主要是配置全局用户名和邮箱gitconfig--globaluser.name"your_name"gitconfig--globaluser.email"your_email@youremail.com"2、修改git大小写敏感,默认是不敏感的g

ruby-on-rails - 简单的 Rails 应用程序 : Error Cannot visit Integer

我正在尝试构建一个简单的Rails应用程序。Railsv3.2.22.5(这是一项要求)。我用PostgreSQL运行它。然而,当我启动服务器时,当我尝试从数据库中读取一个简单的帖子时出现以下错误。CannotvisitInteger跟踪将我带到下面的显示方法。更具体到第二行。我是Rails的新手,完全不知道如何解决这个问题。搜索网络已经没有成功。欢迎提出任何想法。defshow@post=Post.find(params[:id])respond_todo|format|format.html#show.html.erbformat.json{renderjson:@post}end

ruby - 为每个 ruby​​ 版本重新安装每个 gem?

我刚刚使用rbenv安装了Ruby2.0.0,并将其设置为我系统的全局ruby​​版本。由于2.0兼容1.9.3,我尝试用它启动Rails项目,但出现以下错误。安装2.0后我做了rbenvrehashThe`rails'commandexistsintheseRubyversions:1.9.3-p327这是否意味着我在1.9.3系统上安装的每个gem都必须重新安装才能在2.0中使用? 最佳答案 如图所示here:您需要为您使用的每个Ruby版本重新安装bundler。查看安装它的Ruby版本:rbenvwhencebundle查看

ruby-on-rails - Rails 3.0 & Ruby 1.9.2rc : Rake commands return 'already initialized constant' & stack level too deep errors. 任何想法

我正在尝试在Ubuntu10.04上运行Rails3beta4和Ruby1.9.2rc。它最初有效,但在完成我的第一个bundleinstall/package之后,我现在在所有Rails项目中都遇到以下错误。即使是基本的“railsnewtestproject”后跟一个rake也会显示错误消息。简而言之,我很难过。非常感谢任何有关可能导致此问题的帮助。我唯一注意到的事情——可能相关也可能不相关——是~/.bundle文件中的目录是ruby​​/1.9.1。我的机器上没有安装1.9.1-只有1.9.2rc。ruby-v带回1.9.2(in/home/john/Websites/sand

ruby-on-rails - 对象.有效?返回 false 但 object.errors.full_messages 为空

我对无法保存的对象感到困惑,简化模型是classSubscription"User",:foreign_key=>"user_id"has_many:transactions,:class_name=>"SubscriptionTransaction"validates_presence_of:first_name,:message=>"nepeutêtrevide"validates_presence_of:last_name,:message=>"nepeutêtrevide"validates_presence_of:card_number,:message=>"nepeutêt

ruby-on-rails - Gem 安装调试器错误

我在MacOS10.9.2上运行Railsv4.0.2,一切顺利。当我尝试railsserver时,突然收到一条错误消息,提示缺少gems。我运行bundleinstall,这是输出:Fetchinggemmetadatafromhttps://rubygems.org/.......Fetchingadditionalmetadatafromhttps://rubygems.org/..Usingrake10.1.1Usingi18n0.6.9Usingminitest4.7.5Usingmulti_json1.9.0Usingatomic1.1.16Usingthread_safe

ruby - 安装 Bundler 时出错

我正在尝试在我的Mac上安装Bundlergem。使用命令:sudogeminstallbundler我收到以下错误:ERROR:Couldnotfindavalidgem'bundler'(>=0),hereiswhy:Unabletodownloaddatafromhttps://rubygems.org/-SSL_connectreturned=1errno=0state=SSLv3readservercertificateB:certificateverifyfailed(https://s3.amazonaws.com/production.s3.rubygems.org/l

ruby-on-rails - 安装调试器时出错 : Failed to build gem native extension with ruby-1. 9.3-p362

尝试为新项目运行bundle时,遇到以下错误:Installingdebugger(1.2.2)withnativeextensionsGem::Installer::ExtensionBuildError:ERROR:Failedtobuildgemnativeextension.C:/Ruby193/bin/ruby.exeextconf.rbcheckingforrb_method_entry_t.called_idinmethod.h...nocheckingforrb_control_frame_t.method_idinmethod.h...nocheckingforrb_