草庐IT

wicked-gem

全部标签

ruby-on-rails - gem install rails -v 4.1.0 卡在 ri-documentation

我已经在我的服务器上运行了geminstallrails-v4.1.0,但不知何故它卡住了Parsingdocumentationforrails-4.1.0Installingridocumentationforrails-4.1.0我可以中止吗?我需要ri文档做什么?真的需要吗? 最佳答案 虽然文档不是运行rails所必需的;我发现它很可能没有卡住。在我的四核i7上完成geminstallrails-v4.1.0花了五分钟多一点,但如果你的电脑速度较慢,你的体验可能会更糟(它花了15m47s仅用于ri,额外的16m21s用于我的

ruby-on-rails - RubyMine 错误 : Unable to run gem 'rails' . 找不到 'rails'

当我尝试使用RubyMine创建Rails应用程序时,它失败并显示消息“无法运行gem'rails'。找不到'rails'”。为什么?以及如何解决?RubyMine的版本是4.0.2。有一些关于我的系统的信息:$ruby-vruby1.9.3p0(2011-10-30revision33570)[x86_64-linux]$gem-v1.8.11$uname-aLinuxsomehost3.2.0-2-amd64#1SMPTueMar2018:36:37UTC2012x86_64GNU/Linux$lsb_release-dDescription:DebianGNU/Linuxtest

ruby-on-rails - 为什么 `gem install rails` 会失败?

作为背景,这是我的环境:vishal@dishDell:~$gemenvRubyGemsEnvironment:-RUBYGEMSVERSION:1.8.24-RUBYVERSION:1.9.3(2011-10-30patchlevel0)[x86_64-linux]-INSTALLATIONDIRECTORY:/usr/lib/ruby/gems/1.9.1-RUBYEXECUTABLE:/usr/bin/ruby1.9.1-EXECUTABLEDIRECTORY:/usr/bin-RUBYGEMSPLATFORMS:-ruby-x86_64-linux-GEMPATHS:-/usr

ruby-on-rails - 在 Linux 上安装 ruby​​-filemagic gem 时缺少库

我需要gemruby​​-filemagic来满足我项目中的某些需求。在运行bundleinstall时它给我这个错误***ERROR:missingrequiredlibrarytocompilethismodule***extconf.rbfailed***请帮我解决这个问题。 最佳答案 sudoapt-getinstalllibmagic-dev帮我做了 关于ruby-on-rails-在Linux上安装ruby​​-filemagicgem时缺少库,我们在StackOverflo

mysql - 无法在 RubyMine 中将 mysql2 gem 与 Rails 4.1.5 一起使用

我想在Rails中使用mysql2gem,所以我添加了gem'mysql2'。我无法使用bundleinstall安装它,它给了我这个错误。Gem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension./Users/Ben/.rvm/rubies/ruby-2.2.0/bin/ruby-r./siteconf20150307-17143-1jx7cob.rbextconf.rbcheckingforruby/thread.h...yescheckingforrb_thread_call_without_gvl()inruby/th

mysql - 无法安装 do_mysql gem?

我正在尝试在我的SnowLeopord系统MacbookPro13"上安装do_mysql",但我一直收到此错误:n216-160:~myself$sudogem1.9installdo_mysqlPassword:Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingdo_mysql:ERROR:Failedtobuildgemnativeextension./opt/local/bin/ruby1.9extconf.rbcheckingformysql_query()in-lmysqlclient..

mysql - 错误 : Error installing mysql2: ERROR: Failed to build gem native extension

我在尝试为Rails安装geminstallmysql2-v'0.3.17'时遇到了一些问题。当我尝试通过运行geminstallmysql2-v'0.3.17'或geminstallmysql2-v'0.3.17'来安装它时,出现以下错误:ERROR:Errorinstallingmysql2:ERROR:Failedtobuildgemnativeextension.CouldnotcreateMakefileduetosomereason,probablylackofnecessarylibrariesand/orheaders.Checkthefileformoredetail

mysql - 由于 "bundle update"gem,我无法运行 "mysql2"

我在Gemfile中有这个:gem'mysql2'但是当我运行bundleupdate时,我收到以下错误消息:Anerroroccurredwhileinstallingmysql2(0.3.16),andBundlercannotcontinue.Makesurethat`geminstallmysql2-v'0.3.16'`succeedsbeforebundling.我已尝试将其移至生产部分,如下所示:group:productiondogem'mysql2'end但是运行bundleupdate之后,结果是一样的。此部分是否仅在生产模式下处理?如何摆脱本地主机上的这个错误信息?

mysql - Snow Leopard + Ruby 1.9.1 + MySQL Gem = 大问题

我尝试了大约3-4个小时,试图让mysqlgem为雪豹上的ruby​​1.9.1安装。在我升级到雪豹之前,mysqlgem在1.9.1上工作得很好。我从我的机器上卸载了MySQL服务器和gem。然后我下载并安装了:mysql-5.1.37-osx10.5-x86_64.dmg。我已经能够断言我安装的这个新版本作为64位应用程序运行。我卸载了mysqlgem。当我尝试使用此命令安装gem时:envARCHFLAGS="-archx86_64"geminstallmysql--verbose----with-mysql-config=/usr/local/mysql/bin/mysql_c

mysql - 为错误的 mysql 客户端库版本编译的 Ruby mysql2 gem

使用apt-get将MySQL更新到5.5后,mysql2gem停止工作。这是错误:IncorrectMySQLclientlibraryversion!Thisgemwascompiledfor5.5.17buttheclientlibraryis5.1.58.(RuntimeError)我尝试使用mysql_config重新安装,但它似乎没有什么不同..geminstallmysql2----with-mysql-config=/usr/bin/mysql_config相应地,我尝试告诉bundle使用mysql-config编译mysql2,但错误仍然存​​在。bundlecon