草庐IT

install_dotnet

全部标签

ruby - 为什么 rvm install ruby​​ 不起作用?

据说在theRails3.2.9blog建议安装Ruby1.9.3-p327。但是rvminstallruby-1.9.3-p327实际上给出了一个错误,并且日志说:Thereisnochecksumfor'http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p327.tar.bz2'or'ruby-1.9.3-p327.tar.bz2',it'snotpossibletovalidateit.Ifyouwishtocontinuewithunverifieddownloadadd'--verify-downloads1'afterthec

ruby-on-rails - bundle install/在 rails 上安装 libv8 (3.3.10.4) 时出错(在 Lion 上运行)

我在我的gem文件中添加了gem'sunspot_rails'并运行了bundleinstall。我在安装libv8时一直报错,报错信息如下:Installinglibv8(3.3.10.4)withnativeextensionsGem::Installer::ExtensionBuildError:ERROR:Failedtobuildgemnativeextension./opt/local/bin/rubyextconf.rb***extconf.rbfailed***CouldnotcreateMakefileduetosomereason,probablylackofnec

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 4 : Error when installing tiny_tds gem?

我使用Rubyv2和Railsv4开发了一个RailsWeb项目。它在我当前的系统中运行良好,当我尝试在另一台Linux机器(Ubuntu12.4)中运行该项目时,出现Tidy_tds错误。此错误在bundleinstall时显示,错误详情如下Gem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension./home/action/.rvm/rubies/ruby-2.1.1/bin/rubyextconf.rbcheckingforiconv_open()iniconv.h...yescheckingforsybfront.h..

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 - 如何卸载ruby-install安装的ruby

我安装了很多rubyruby-install在~/.rubies下:ls.rubiesruby-1.9.3-p545ruby-2.0.0-p598ruby-2.1.3ruby-2.1.5ruby-2.0.0-p451ruby-2.1.2ruby-2.1.4ruby-2.2.0我想卸载ruby​​-install安装的一个ruby​​,我该怎么做? 最佳答案 不幸的是ruby-install与RVM不同,只是下载并编译Ruby,没有删除它的选项或rbenv.因此,您可能需要在此处运行一些手动命令来删除所有已安装的文件。1。找到它通常r

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-on-rails - Vagrant/VirtualBox VM 配置 : rbenv installs successfully but subsequent uses in script fail

我正在使用Vagrant+VirtualBox为我的Rails应用设置虚拟机。我正在清理Vagrantfile中引用的.sh配置脚本,如下所示:config.vm.provision"shell",path:"script/provision-script.sh"配置脚本做了很多事情,但最后它应该安装rbenvRuby版本控制,然后使用rbenv安装Ruby2.2.1。供应脚本的那部分看起来像这样:echo"settinguprbenv"#executetheremainingcommandsasvagrantuser,insteadofrootsudo-H-uvagrantbash-

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