首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >gem在macos上安装rb-appscript失败/ Alfred todo工作流

gem在macos上安装rb-appscript失败/ Alfred todo工作流
EN

Stack Overflow用户
提问于 2017-11-17 11:44:47
回答 2查看 491关注 0票数 0

我想在我的macbook pro上安装rb-appscript,但是由于我不知道的原因,它失败了

代码语言:javascript
复制
sa@mbp: ~ sudo gem install rb-appscript
Password:
Building native extensions.  This could take a while...
ERROR:  Error installing rb-appscript:
    ERROR: Failed to build gem native extension.

    current directory: /usr/local/lib/ruby/gems/2.4.0/gems/rb-appscript-0.6.1
/usr/local/opt/ruby/bin/ruby -r ./siteconf20171117-38586-zi3axn.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/usr/local/Cellar/ruby/2.4.2_1/bin/$(RUBY_BASE_NAME)
extconf.rb:44:in `<main>': uninitialized constant Config (NameError)
Did you mean?  RbConfig
               CONFIG

extconf failed, exit code 1

Gem files will remain installed in /usr/local/lib/ruby/gems/2.4.0/gems/rb-appscript-0.6.1 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.4.0/extensions/x86_64-darwin-17/2.4.0/rb-appscript-0.6.1/gem_make.out
sa@mbp: ~ uname -a
Darwin mbp.home 17.2.0 Darwin Kernel Version 17.2.0: Fri Sep 29 18:27:05 PDT 2017; root:xnu-4570.20.62~3/RELEASE_X86_64 x86_64
sa@mbp: ~ ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]
sa@mbp: ~ xcode-select -p
/Library/Developer/CommandLineTools
sa@mbp: ~ gcc -v
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin17.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
sa@mbp: ~ make -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0
sa@mbp: ~

有关于问题是什么以及如何解决它的线索吗?

我实际上想要实现的是为alfred安装一个似乎需要'rb-appscript‘https://github.com/dv/alfred-omnifocus-workflow的工作流

EN

回答 2

Stack Overflow用户

发布于 2017-11-17 20:31:11

我最近也遇到了这个问题。问题是rb-appscript gem非常过时;它的最后一次更新是在2011年。它不适用于现代的Mac OS。有一个现代的替代品叫做rb-scpt。在写这篇文章的时候,它最后一次更新是在9天前。我在一个正在运行的应用程序中使用它,所以我可以确认它是有效的。

https://github.com/BrendanThompson/rb-scpt

票数 1
EN

Stack Overflow用户

发布于 2017-11-18 03:50:00

我想,rb-appscript才是问题的根源。遗憾的是,我真的很喜欢omnifocus的alfred工作流,因为它可以快速地将任务放入omnifocus中,并继续执行您正在处理的任何工作。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47342929

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档