草庐IT

ruby - Lion OSX : How to install libfreetype. 6.dylib?

我正在尝试安装ruby​​gem,但安装过程已停止,因为:ld:filenotfound:/usr/local/lib/libfreetype.6.dylibforarchitecturex86_64clang:error:linkercommandfailedwithexitcode1(use-vtoseeinvocation)如何安装这个库?我检查了/usr/local/lib/并且那里缺少库。编辑:我运行locatelibfreetype.6.dylib并得到:/Applications/MAMP/Library/lib/libfreetype.6.dylib/Applicati

ruby - 运行 make install 时出现 RVM 错误。安装 power_assert gem 时出错

我正在尝试在我的arch机器上安装ruby​​2.2.2。当我运行rvminstall时,出现以下错误。试了几次。甚至删除了rvm并重新安装。还是一样的问题。○rvminstall2.2.2Searchingforbinaryrubies,thismighttakesometime.Nobinaryrubiesavailablefor:arch/libc-2.21/x86_64/ruby-2.2.2.Continuingwithcompilation.Pleaseread'rvmhelpmount'togetmoreinformationonbinaryrubies.Checkingr

ruby - jruby -S bundle install jruby : No such file or directory -- bundle (LoadError)

我有我的ruby​​onrails应用程序,我已经在我的WindowsXP中安装了jruby-1.7.4。当我尝试运行jruby-Sbundleinstall时,它给我一个错误jruby:Nosuchfileordirectory--bundle(LoadError)我真的很纠结这个错误..请帮助.. 最佳答案 Bundler可能没有安装。您可以检查jruby-Sgemlist的输出来验证,然后安装它:jruby-Sgeminstallbundler一般来说,LoadError意味着您缺少gem依赖项。

ruby - 使用 sudo 进行 gem 安装 cocoapods

当我运行时$geminstallcocoapods我明白了Fetching:i18n-0.7.0.gem(100%)ERROR:Whileexecutinggem...(Gem::FilePermissionError)Youdon'thavewritepermissionsforthe/Library/Ruby/Gems/2.0.0directory.我读过这篇文章cocoaPodspodinstallPermissiondenied但是那里的答案并没有说明在你的geminstall上运行sudo是否正确(尽管在问题中被问到-即cocoaPods的sudo安装是否以错误的方式还是正常

ruby - 为什么 `rvm install ruby-2.1.0` 会安装 preview1?

我刚刚尝试安装Ruby2.1,却安装了2.1Preview1。这对我来说似乎很疯狂。2.1出来了。当我说rvminstallruby​​-2.1.0时,为什么RVM会认为我真的的意思是rvminstallruby​​-2.1.0-预览1?为什么它不匹配我指定的精确版本,而不是以该子字符串开头的版本? 最佳答案 愚蠢的澄清问题(如果我有足够的声誉,我会把它作为评论发布),但是你最近更新了RVM了吗?rvmgetstable(或者如果你想生活在边缘,rvmgethead)我预计会更新已发布的ruby​​版本的内部列表。

ruby-on-rails - sudo gem install pg 不起作用

我正在尝试让Rails与PostgreSQL一起工作。显然,我一路上需要做的一件事是sudogeminstallpg。当我这样做时,我得到了这个:jason@buster:~/projects$sudogeminstallpgBuildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingpg:ERROR:Failedtobuildgemnativeextension./usr/bin/ruby1.8extconf.rbextconf.rb:2:in`require':nosuchfiletoload--mkmf(

ruby - 使用 RVM 在 Ubuntu 10.10 上安装 Ruby,gem 有问题

我决定从ubuntu10.10开始。我从安装git开始,然后从gitrepo安装rvm。一切正常很好,我编译并安装了ruby​​1.8.7和ruby​​1.9.2gem也已安装,我运行gem-v但是当运行gemlist或geminstallrake我得到以下错误ERROR:Loadingcommand:list(LoadError)nosuchfiletoload--zlibERROR:Whileexecutinggem...(NameError)uninitializedconstantGem::Commands::ListCommand知道如何解决这个问题吗?我也试过sudoapt

ruby-on-rails - 运行 autoconf 时 rvm install 1.9.2 失败?

当我运行时rvminstall1.9.2我在尝试运行autoconf时遇到错误。这是堆栈跟踪:kenmare:ruby-1.9.2-p0lee$rvminstall1.9.2-p0/Users/lee/.rvm/rubies/ruby-1.9.2-p0,thismaytakeawhiledependingonyourcpu(s)...ruby-1.9.2-p0-#fetchingruby-1.9.2-p0-#extractedto/Users/lee/.rvm/src/ruby-1.9.2-p0(alreadyextracted)RunningautoconfErrorrunning'

ruby - 请安装 postgresql 适配器 : `gem install activerecord-postgresql-adapter`

这个问题在这里已经有了答案:关闭11年前。PossibleDuplicate:HowtohandleRubyonRailserror:“Pleaseinstallthepostgresqladapter:`geminstallactiverecord-postgresql-adapter'”我正在尝试让Redmine与postgres一起工作。在我的日志中,我不断看到。Pleaseinstallthepostgresqladapter:`geminstallactiverecord-postgresql-adapter`在谷歌搜索之后,每个人都说你需要做geminstallpg。但是当

ruby-on-rails - gem install mysql2 v '0.3.11' 无法在 Yosemite 上运行

在ruby​​版本1.9.3(rvm)上执行mysql2版本0.3.11的捆绑安装或直接gem安装时,我收到以下错误。但是当我安装最新版本0.3.16时它可以工作。我还包含了我的gcc版本以供引用。Gem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension./Users/ginocarlocortez/.rvm/rubies/ruby-1.9.3-p547/bin/rubyextconf.rbcheckingforrb_thread_blocking_region()...yescheckingforrb_wait_for_si