草庐IT

amoeba-gem

全部标签

ruby-on-rails - 使用 gem 安装 rails,错误加载命令 : install undefined method 'invoke_with_build_args`

我正在尝试在Debian上安装Rails。当运行这个命令时gem安装rails我给出了这个错误:ERROR:Loadingcommand:install(LoadError)cannotloadsuchfile--zlibERROR:Whileexecutinggem...(NoMethodError)undefinedmethod``invoke_with_build_args'fornil:NilClass即使我尝试这个命令:gem安装我给出了这个错误:ERROR:Loadingcommand:install(LoadError)cannotloadsuchfile--zlibER

ruby - 错误sudo : gem: command not found

我试图在CentOS上安装ruby​​rep,当执行sudogeminstallruby​​rep时,我收到错误sudo:gem:commandnotfound。Sudo和gem都已安装并可以正常工作,只是结合使用时不行。我的设置:[rubyrep]#whichsudo/usr/bin/sudo[rubyrep]#whichgem/usr/local/rvm/rubies/ruby-2.1.2/bin/gem[rubyrep]#whichruby/usr/local/rvm/rubies/ruby-2.1.2/bin/ruby[rubyrep]#$PATH-bash:/usr/loca

ruby - 错误sudo : gem: command not found

我试图在CentOS上安装ruby​​rep,当执行sudogeminstallruby​​rep时,我收到错误sudo:gem:commandnotfound。Sudo和gem都已安装并可以正常工作,只是结合使用时不行。我的设置:[rubyrep]#whichsudo/usr/bin/sudo[rubyrep]#whichgem/usr/local/rvm/rubies/ruby-2.1.2/bin/gem[rubyrep]#whichruby/usr/local/rvm/rubies/ruby-2.1.2/bin/ruby[rubyrep]#$PATH-bash:/usr/loca

mysql - gem安装mysql失败

我已按照http://geryit.com/blog/2011/01/installing-mysql-with-rails-on-mac-os-x-snow-leopard/上的说明进行操作,包括通过macport安装ruby​​。每当我执行geminstallmysql时,我都会收到以下错误bash-3.2#geminstallmysqlBuildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingmysql:ERROR:Failedtobuildgemnativeextension./opt/local/b

mysql - gem安装mysql失败

我已按照http://geryit.com/blog/2011/01/installing-mysql-with-rails-on-mac-os-x-snow-leopard/上的说明进行操作,包括通过macport安装ruby​​。每当我执行geminstallmysql时,我都会收到以下错误bash-3.2#geminstallmysqlBuildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingmysql:ERROR:Failedtobuildgemnativeextension./opt/local/b

mysql - 在 macOS Sierra 上安装 mysql2 gem

我正在尝试在macOSSierra(10.12.1)上安装mysql2gem(0.4.5)并收到错误。我没有本地mysql服务器,它是远程的。这是错误日志:checkingforruby/thread.h...yescheckingforrb_thread_call_without_gvl()inruby/thread.h...yescheckingforrb_thread_blocking_region()...nocheckingforrb_wait_for_single_fd()...yescheckingforrb_hash_dup()...yescheckingforrb_i

mysql - 在 macOS Sierra 上安装 mysql2 gem

我正在尝试在macOSSierra(10.12.1)上安装mysql2gem(0.4.5)并收到错误。我没有本地mysql服务器,它是远程的。这是错误日志:checkingforruby/thread.h...yescheckingforrb_thread_call_without_gvl()inruby/thread.h...yescheckingforrb_thread_blocking_region()...nocheckingforrb_wait_for_single_fd()...yescheckingforrb_hash_dup()...yescheckingforrb_i

mysql - Rails 3 - MySQL 客户端库版本不正确!为错误的客户端库版本编译的 Gem

我克隆了github存储库https://github.com/8bitpal/hackful,运行“bundleinstall”,现在运行“rakedb:create”。但是我收到一条错误消息:IncorrectMySQLclientlibraryversion!Thisgemwascompiledfor5.0.45buttheclientlibraryis5.5.15.试图找出有关我的mysql设置的更多信息:$mysql_config--version$5.0.45$mysql$mysql>SELECTversion();+-----------+|version()|+----

mysql - Rails 3 - MySQL 客户端库版本不正确!为错误的客户端库版本编译的 Gem

我克隆了github存储库https://github.com/8bitpal/hackful,运行“bundleinstall”,现在运行“rakedb:create”。但是我收到一条错误消息:IncorrectMySQLclientlibraryversion!Thisgemwascompiledfor5.0.45buttheclientlibraryis5.5.15.试图找出有关我的mysql设置的更多信息:$mysql_config--version$5.0.45$mysql$mysql>SELECTversion();+-----------+|version()|+----

mysql - 未初始化的常量 MysqlCompat::MysqlRes(使用 mms2r gem)

将我的一个Rails应用程序移到了新服务器上,并且必须安装一些gem依赖项。但是,在安装mysqlgem之后,每当我尝试运行涉及mysql数据库的rake命令时,我都会收到错误,未初始化的常量MysqlCompat::MysqlRes。似乎只有在需要mms2rgem时才会出现此错误。有没有人听说过这个?我正在运行mysql2.8.1gem。 最佳答案 在我的MacOSX10.6上,我这样做是为了安装2.8.1gem,它与我的MacPortsmysql5-server完美配合:sudoenvARCHFLAGS="-archx86_64