草庐IT

MySQL安装

全部标签

ruby - 使用指南针安装 bootstrap sass

我正在尝试安装bootstrap-sass并收到以下错误。我试过旧版本的sass,但bundler一直在安装3.3.0。WARN:UnresolvedspecsduringGem::Specification.reset:sass(~>3.2)WARN:Clearingoutunresolvedspecs.Pleasereportabugifthiscausesproblems./Library/Ruby/Gems/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.r

ruby-on-rails - Ruby Gem (EventMachine) 无法使用 Bundler GEM 安装

所以我正在尝试安装GitLab,他们让我使用一个名为“bundler”的gem,它基本上安装了运行他们的应用程序所需的GEM。无论如何,在使用以下命令运行bundler之后:sudo-ugit-Hbundleinstall--deployment--withoutdevelopmenttestmysqlaws这将完美地安装大量gem,然后在安装后大约2分钟,我将在终端中收到以下错误。Ruby版本:来自SVN的最新版本(我已经检查过了,没问题)操作系统:Ubuntu14.04LTS(Trusty)Gem::Ext::BuildError:ERROR:Failedtobuildgemnat

ruby - apt Recipe 不会安装在我的 Recipe 中

我正在尝试使用Vagrant创建我的第一个ChefRecipe,但在第一步就遇到了问题。我的Recipe的第一行是:include_recipe"apt"但是当我尝试vagrantprovision时,出现以下错误:==>default:[2014-09-21T07:15:42+00:00]WARN:MissingCookbookDependency:==>default:Recipe`apt`isnotintherun_list,andcookbook'apt'==>default:isnotadependencyofanycookbookintherun_list.Toloadth

ruby - 如何使用 rbenv 在不使用 sudo 的情况下全局安装 gem?

我正在使用rbenv并尝试安装sass但没有成功。因此,我通过Homebrew安装了rbenv,然后是Ruby2.2(rbenvinstall2.2),最后是geminstallsass,但我无法在我的$上使用sass路径。时间紧迫,我sudogeminstallsass使用我系统(Yosemite)默认的Ruby2。这把所有东西都放在了/Library/Ruby/Gems/2.0.0事情确实有效,但不是以最理想的方式。理想情况下,使用rbenv我应该能够安装任何Ruby版本并将gems安装在该版本的目录中,然后符号链接(symboliclink)到/usrl/local/bin。如能

ruby - RVM 在 arch linux 上安装 ruby​​ 错误

我可以在archlinux(manjaro)上使用rvm安装任何ruby​​,我总是能做到这一点[anquegi@manjaro-pc~]$rvminstall2.1.6--autolibs=packagesruby-2.1.6-#removingsrc/ruby-2.1.6..Searchingforbinaryrubies,thismighttakesometime.Nobinaryrubiesavailablefor:manjaro/16.06-pre1/x86_64/ruby-2.1.6.Continuingwithcompilation.Pleaseread'rvmhelpm

ruby - 安装 dm-mysql-adapter 时出错

我是Ruby的新手。我安装了DataMapper并且正在尝试安装dm-mysql-adapter-1.0.2gem。但是当我尝试安装时,出现以下错误。我正在使用ubuntu操作系统。vinoth@vinoth-laptop:~/Downloads$geminstalldm-mysql-adapter-1.0.2----with-mysql-lib=/usr/lib/mysql----with-mysql-conf=/usr/bin/mysqlWARNING:Installingto~/.gemsince/home/vinoth/gemsand/home/vinoth/gems/bina

ruby - 在未安装 Excel 的服务器上使用 Ruby 读写 Excel 文件

我需要在一台没有安装Excel的Linux服务器上读写(->转换)Excel文件。对于Python,存在http://www.python-excel.org/.Ruby有类似的东西吗?可能不需要处理最新的Office格式。只需旧的xls文件就足够了。 最佳答案 我同意Gonzih的观点,并且我经常使用roo。它允许我使用模板文件进行读取、写入和写入。该项目在他们的site上有很好的记录。.我总是使用类似的东西:input=Excel.new(path)output=Array.newinput.default_sheet=inpu

ruby-on-rails - Heroku Cedar - 没有安装 Resque 前端的静态 Assets

我有一个简单的Rails应用程序部署到HerokuCedar堆栈。该应用程序使用Resque并安装了ResqueSinatra前端应用程序,因此我可以监控队列:#routes.rb...mountResque::Server,:at=>"/resque"这很好用,但是当部署到Heroku时,Resquefront-end'sCSS&JavaScript没有被送达。一段Heroku的日志表明它正在返回零字节:...2011-07-13T16:19:35+00:00heroku[router]:GETmyapp.herokuapp.com/resque/style.cssdyno=web.

ruby-on-rails - 为什么我不能用 gem install rails -v 4.0.0 安装 rails?

我已经在GNU/Linux上安装了:rvm1.23.16(stable)byWayneE.Seguin,MichalPapis[https://rvm.io/]ruby2.0.0p247(2013-06-27revision41674)[x86_64-darwin12.4.0]我的系统中显然有所有的gem,但是当我运行命令时:geminstallrails-v4.0.0它指出安装了一个gem。但是Rails还没有安装。当我使用geminstallrails-v4.0.0或geminstallrails--version=4.0发生:Parsingdocumentationforrail

ruby - gem 安装失败,出现 "Could not find a valid gem ' yaml'"

我正在从一个当前可用的ruby​​程序构建一个gem。它使用jruby1.7.12,除其他外,它执行“require'yaml”。对于gem,我的Gemfile包含:source'https://rubygems.org'gemspec当我运行时gembuildprogram.gemspec这很好用,但是当我运行时geminstallprogram-0.15.01.gem它失败了ERROR:Couldnotfindavalidgem'yaml'(>=0)inanyrepositoryERROR:Possiblealternatives:aml,cyaml,haml,maml,raml没