草庐IT

adt-bundle-mac-x

全部标签

ruby-on-rails - 安装 nokogiri Mac OS X 10.8.2 XCode 安装

尝试在MountainLion上安装nokogiri。我使用的是ruby​​1.8.7,但刚刚升级到1.9.3,但它阻止了捆绑安装的工作。顺便说一下,我可以通过卸载ruby​​1.9.3并恢复到1.8.7来解决这个问题。然而,这显然是一个次优的解决方案,因为我不想在剩下的时间里一直停留在1.8.7上......Users-MacBook-Pro:sample_appuser$lsGemfileappdocscriptGemfile.lockconfiglibspecREADME.mdconfig.rulogtmpRakefiledbpublicvendorRavins-MacBook-

ruby - 如何修复意外的 'sudo bundle install dir_name' ?

我不小心运行了sudobundleinstallsmtp_mail,现在我所有的gem都在我的Rails应用程序中这个名为smtp_mail的目录中。我不确定gem的默认位置?而且,我的Rails应用程序在启动时提示。有什么办法可以恢复原状吗? 最佳答案 经过一番谷歌搜索后,我找到了答案只需运行:sudobundleinstall--system然后您会将您的gem放回到它们适当的系统目录中。 关于ruby-如何修复意外的'sudobundleinstalldir_name'?,我们在S

ruby-on-rails - Rails bundler : how to undo bundle package?

如何撤销bundlepackage?我删除了vendor/cache中的所有内容,但是当我运行bundleinstall时它又重新安装在那里。 最佳答案 根据这个答案:https://stackoverflow.com/a/9471980/219883必须删除隐藏的.bundle目录,然后重新运行bundleinstall-否则会继续添加vendor/cache每次返回目录。 关于ruby-on-rails-Railsbundler:howtoundobundlepackage?,我们在

ruby - 无法从 `sudo bundle install` 恢复

我错误地在我的项目上运行了sudobundleinstall,现在当我以自己的身份运行它时bundleinstall我得到了权限被拒绝的错误(如下)。我在这里尝试了说明https://github.com/bundler/bundler/blob/master/ISSUES.md#other-problems,还尝试将我的项目克隆到一个新目录并从那里运行bundle,但没有用。请帮忙!error:cannotopen.git/FETCH_HEAD:PermissiondeniedRetryinggitfetch--force--quiet--tags"/home/akonsu/.bun

ruby-on-rails - Mac OS X 山狮 "Rails is not currently installed on this system."

我正在全新安装OSXMountainLion。我通过以下方式安装了Rails:sudogeminstallrails一切似乎都安装正确,但是当我键入rails命令(railss、rails-v等)时,我收到此错误:Railsisnotcurrentlyinstalledonthissystem.Togetthelatestversion,simplytype:$sudogeminstallrailsYoucanthenrerunyour"rails"command.'whichrails'的结果是/usr/bin/rails我认为这是一个路径问题,也许是,但我可以看到/usr/bin是

Ruby gem rmagick 无法安装在 Mac OS X 上

我知道这个问题很早就被问过了,但是没有一个解决方案对我有用,我现在真的很绝望。我正在尝试让rMagick使用gem安装diaspora。我已经通过自制软件安装了imagick,当我尝试运行geminstallrmagick时,我收到了这个错误:ERROR:Errorinstallingrmagick:ERROR:Failedtobuildgemnativeextension./Users/tobischweiger/.rvm/rubies/ruby-1.9.3-p385/bin/rubyextconf.rbcheckingforRubyversion>=1.8.5...yescheck

ruby - 使用 bundle exec 可以解决这个问题吗?

这是我的Gemfilesource:rubygemsgem'rake','0.9.2.2'gem'sinatra'gem'activerecord','3.0.9'gem'pg','~>0.12.2'gem'logger'gem'nokogiri'group:development,:testdogem'rack-test'gem'ruby-debug19'gem'sqlite3'end我运行在其他项目中工作的rakeconsole,现在我收到这条消息:您已经激活了activesupport3.1.3,但是您的Gemfile需要activesupport3.0.9。使用bundleex

ruby-on-rails - 为什么 'bundle install --without production' 命令在更新后不需要 '--without production'?

为什么第二个命令不$bundleinstall不需要--withoutproduction(因为这是教程中的内容,所以我认为它是正确的)不需要它背后发生了什么/原因是什么?来自http://ruby.railstutorial.org/chapters/a-demo-app#sec-demo_users_resource$bundleinstall--withoutproduction$bundleupdate$bundleinstall 最佳答案 我相信这是因为bundler在您的项目文件夹中创建了一个.bundle/config

ruby - 错误 : Failed to build gem native extension (ruby extconf. rb): Mac OSX

这个问题在这里已经有了答案:RubyGeminstallJsonfailsonMavericksandXcode5.1-unknownargument:'-multiply_definedsuppress'(11个答案)关闭7年前。我正在尝试安装一个gem,但出现了这个错误,这是我自己和gem作者以前从未见过的。我该如何解决这个问题?Davids-MacBook-Pro:webdavid$sudo/usr/bin/geminstallcompass--prePassword:Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Err

ruby - 设置环境、OSX rbenv 和 bundle battle

所以我刚刚从ubuntu切换到mac,设置env并不像promise的那么容易。这是我遵循的过程。安装xcode-然后进入首选项并下载命令行工具然后通过运行gcc--version验证是否安装了正确的版本i686-apple-darwin11-llvm-gcc-4.2(GCC)4.2.1(BasedonAppleInc.build5658)(LLVMbuild2336.11.00)Copyright(C)2007FreeSoftwareFoundation,Inc.Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNO