草庐IT

nodeJS安装(超详细小白教程)

全部标签

ruby - 使用 RVM 安装 Ruby 1.9.3 但命令行不显示 ruby​​ -v

这是控制台输出:sergio@sergio-VirtualBox:~$rvmlistrvmrubiesruby-1.9.3[i386]sergio@sergio-VirtualBox:~$rvmuse1.9.3Using/usr/share/ruby-rvm/gems/ruby-1.9.3sergio@sergio-VirtualBox:~$ruby-vTheprogram'ruby'canbefoundinthefollowingpackages:*ruby1.8*ruby1.9.1Try:sudoapt-getinstall这是怎么回事?我需要重启我的机器吗?或者它应该立即起作用吗

ruby - 安装 CocoaPods : no response

尝试从终端安装CocoaPods:$sudogeminstallcocoapods输入根密码后,没有任何反应。我该如何调试它? 最佳答案 对于其他有同样疑问的人,安装gem需要很长时间。如果你运行:exportGEM_HOME=~/.gemsexportPATH=$GEM_HOME/bin:$PATHgeminstallcocoapods-V使用标记V进行安装会启用详细的输出,这样您就可以在下载和安装过程中看到所有输出,非常多。 关于ruby-安装CocoaPods:noresponse

ruby - 无法在 OS X "El Capitan"上安装 gems

我无法在ElCapitanBeta5上安装和运行fakes3gem。我试过:sudogeminstallfakes3ERROR:Whileexecutinggem...(Errno::EPERM)Operationnotpermitted-/usr/bin/fakes3然后我尝试用cocoapods的方式来做。它适用于cocoapods但不适用于fakes3。mkdir-p$HOME/Software/rubyexportGEM_HOME=$HOME/Software/rubygeminstallcocoapods[...]1geminstalledgeminstallfakes3ER

ruby-on-rails - 无法安装 pg gem

我尝试使用geminstallpg但它似乎不起作用。geminstallpg给出这个错误TemporarilyenhancingPATHtoincludeDevKit...Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingpg:ERROR:Failedtobuildgemnativeextension.C:/Ruby/bin/ruby.exeextconf.rbcheckingforpg_config...noNopg_config...tryinganyway.Ifbuildingfails,ple

ruby - rvm 安装不工作 : "RVM is not a function"

我刚刚安装了RVM,但无法正常工作。我的.profile文件末尾有这样一行:[[-s"$HOME/.rvm/scripts/rvm"]]&&."$HOME/.rvm/scripts/rvm"我尝试运行source.profile并重新启动终端,但是,当我运行rvmuse1.9.2时,我仍然得到:RVMisnotafunction,selectingrubieswith'rvmuse...'willnotwork.我的系统是Ubuntu11.10。 最佳答案 您需要运行以下命令$source~/.rvm/scripts/rvm然后运行

ruby - 如何找到gem文件的安装位置

我可以找到使用gemlist安装的gem,但它没有显示这些gem的安装位置。如何找到gem的位置,以及在安装gem之前我如何知道它将被安装到哪里? 最佳答案 使用gemenvironment了解您的gem环境:RubyGemsEnvironment:-RUBYGEMSVERSION:2.1.5-RUBYVERSION:2.0.0(2013-06-27patchlevel247)[x86_64-darwin12.4.0]-INSTALLATIONDIRECTORY:/Users/ttm/.rbenv/versions/2.0.0-p2

ruby - 无法构建 gem native 扩展(安装 Compass)

当我尝试安装最新版本的compass(https://rubygems.org/gems/compass/versions/1.0.0.alpha.17)时,出现以下错误。ERROR:Errorinstallingcompass:ERROR:Failedtobuildgemnativeextension.ERROR:Errorinstallingcompass:ERROR:Failedtobuildgemnativeextension./System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/rubyextconf.r

ruby-on-rails - bundle 安装失败,出现 SSL 证书验证错误

当我在Centos5.5上为我的Rails3项目运行bundleinstall时,它失败并出现错误:Gem::RemoteFetcher::FetchError:SSL_connectreturned=1errno=0state=SSLv3readservercertificateB:certificateverifyfailed(https://bb-m.rubygems.org/gems/multi_json-1.3.2.gem)Anerroroccuredwhileinstallingmulti_json(1.3.2),andBundlercannotcontinue.Makes

ruby-on-rails - 安装 ruby​​gems 时出现 SSL 错误,无法从“https ://rubygems. org/”提取数据

我正在尝试完成MichaelHartl教程。当我尝试在我的gemset中安装rails3.2.14时,出现以下问题:$geminstallrails-v3.2.14ERROR:Couldnotfindavalidgem'rails'(=3.2.14),hereiswhy:Unabletodownloaddatafromhttps://rubygems.org/-SSL_connectreturned=1errno=0state=SSLv3readservercertificateB:certificateverifyfailed(https://s3.amazonaws.com/pro

ruby - 无法使用 RVM 在 Lion 下安装 Ruby – GCC 问题

关于此问题的大多数问题都是由于缺少Xcode;我安装了Xcode4.2。安装尝试:rvminstall1.9.3InstallingRubyfromsourceto:/Users/jamie/.rvm/rubies/ruby-1.9.3-p0,thismaytakeawhiledependingonyourcpu(s)...ruby-1.9.3-p0-#fetchingruby-1.9.3-p0-#extractedto/Users/jamie/.rvm/src/ruby-1.9.3-p0(alreadyextracted)Fetchingyaml-0.1.4.tar.gzto/Use