草庐IT

java - 设置工具栏时出现 NullPointerException

全部标签

ruby - 在 Windows 8 : Unable to execute file C:\Program Files(x86)\Heroku\ruby-1. 9.3\bin\gem.bat 上安装 heroku toolbelt 时出错

我想安装herokutoolbelt。我选择完全安装。安装时出现此错误。安装完成后herokulogin不起作用。 最佳答案 试试这个:Followthislink无论它是否与在Windows7上运行游戏有关,请在您的Windows8上尝试这个。如果它有效,请告诉我们。 关于ruby-在Windows8:UnabletoexecutefileC:\ProgramFiles(x86)\Heroku\ruby-1.9.3\bin\gem.bat上安装herokutoolbelt时出错,我们在

ruby - 安装 Ruby rvm 时出现问题(运行配置时出错)

关闭。这个问题是off-topic.它目前不接受答案。想改进这个问题吗?Updatethequestion所以它是on-topic用于堆栈溢出。关闭11年前。Improvethisquestionruby-1.9.3-p0-#configuring*ERROR:Errorrunning'./configure--prefix=/Users/davedelich/.rvm/rubies/ruby-1.9.3-p0--enable-shared--disable-install-doc--with-libyaml-dir=/Users/davedelich/.rvm/usr',please

ruby - 在 Mac OS X 10.5.8 中安装 Nokogiri gem 时出现问题

我正在尝试在OSXLeopard(10.5.8)中的RVM管理的Ruby1.8.7安装下安装Nokogirigem。我收到以下错误:Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingnokogiri:ERROR:Failedtobuildgemnativeextension./Users/user/.rvm/rubies/ruby-1.8.7-p352/bin/rubyextconf.rbcheckingforlibxml/parser.h...yescheckingforlibxslt/xslt.h

ruby-on-rails - 运行 "bin/rake assets:precompile"时未设置 I18n 加载路径!

我正在使用I18n-js,我的客户端I18n.t调用在生产环境中运行时都会返回翻译缺失消息。开发测试一切正常。这个问题的根源似乎在于Assets管道。I18n.load_path不包含我的任何翻译(当运行bin/rakeassets:precompile时)它只包含以下路径:["/home/chris/.rvm/gems/ruby-1.9.3-p125@Project/gems/activesupport-3.2.3/lib/active_support/locale/en.yml","/home/chris/.rvm/gems/ruby-1.9.3-p125@Project/gems

ruby - 使用 ruby​​ SDK 将 S3 存储桶设置为网站

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答。关闭4年前。Improvethisquestion我想按照此处所述将AmazonS3存储桶设置为网站:http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUTwebsite.html?r=5271但使用ruby​​API,最好是用于ruby​​的aws-sdk。是否有可能这样做/一个已经支持它的图书馆?在aws-sdk和right-aws中

ruby-on-rails - Rails 重定向在 nginx 和 gunicorn 设置上失败

我已经按照Railscasts第293集中的描述设置了在nginx和unicorn上运行。当我尝试重定向时,例如classPostsController"Testredirect"endend我被重定向到http://unicorn/posts而不是http://mydomain.com/posts这是我的应用程序的nginx.confupstreamunicorn{serverunix:/tmp/unicorn.scvrush.sockfail_timeout=0;}server{listen80defaultdeferred;#server_nameexample.com;root

ruby - 在优胜美地安装 Ruby 时出错

我最近将我的OSX更新到10.10,从那时起我就面临通过RVM安装ruby​​的问题。我无法解决对gcc46的依赖。任何帮助表示赞赏。下面是错误堆栈。rvmreinstallruby-1.9.3-p547ruby-1.9.3-p547-#removingsrc/ruby-1.9.3-p547-pleasewaitruby-1.9.3-p547-#removingrubies/ruby-1.9.3-p547-pleasewaitSearchingforbinaryrubies,thismighttakesometime.Nobinaryrubiesavailablefor:osx/10.

Ruby:方法莫名其妙地被覆盖并设置为零

如果我执行这个ruby​​代码:deffoo100endpdefined?(foo),fooiffalsefoo=200endpdefined?(foo),foo我得到的输出是:"method"100"local-variable"nil有人可以向我解释为什么foo在不执行if后设置为nil吗?这是预期的行为还是ruby​​错误? 最佳答案 分配左侧的名称设置为nil,即使在iffalse情况下无法访问代码。>>fooNameError:undefinedlocalvariableormethod`foo'formain:Objec

ruby - 安装 libv8 3.11.8.3 时出错

我正在运行全新安装的OSX10.9Mavericks和XCode5.0.1。当我尝试在我的项目中运行bundleinstall时,它无法安装libv8gem。这是输出:ERROR:Errorinstallinglibv8:ERROR:Failedtobuildgemnativeextension./Users/user1/.rvm/rubies/ruby-1.9.3-p448/bin/rubyextconf.rbcreatingMakefileConfiguredwith:--prefix=/Applications/Xcode.app/Contents/Developer/usr--

ruby - 使用 Ruby FFI 调用 Rust 库时出现段错误

我想将String传递给Rust库,但它总是会抛出段错误。代码如下://lib.rs#[no_mangle]pubexternfnprocess(foo:String)->String{foo}还有Ruby文件:#embed.rbrequire'ffi'moduleHelloextendFFI::Libraryffi_lib'target/release/libembed.dylib'attach_function:process,[:string],:stringendputsHello.process("foo") 最佳答案 免