无法安装 autotest-fsevent 或 rs-fsevent;出现 ld 错误但 xcode 已安装

发布于 2024-10-14 07:57:48 字数 924 浏览 3 评论 0原文

这是我得到的:

$ sudo gem install autotest-fsevent 密码:构建本机扩展。 这可能需要一段时间...错误: 安装 autotest-fsevent 时出错: 错误:无法构建本地 gem 扩展名。

/Volumes/SSD/Users/Ross/.rvm/rubies/ruby-1.9.2-p136/bin/ruby extconf.rb ld:无法打开输出文件 用于写作:/Volumes/Macintosh 高清/Users/Ross/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/gems/1.9.1/gems/autotest-fsevent-0.2.4/bin/fsevent_sleep, errno=2collect2:ld返回1退出 状态 extconf.rb:30:in `': fsevent_sleep 编译失败 (参见自述文件)(运行时错误)

自述文件是这样说的:

故障排除:

fsevent_sleep编译失败

确保您有 Xcode (Mac OS X 开发套件)已安装。

我已经安装了最新的 xcode,甚至重新安装了它,以防万一丢失了某些东西。

任何人都知道如何至少进一步解决这个问题。我确实听到有人说这可能与路径有关。但这是有关路径的信息。我的机器中有两个驱动器,一个装有操作系统的 SSD 和一个装有我所有数据的 HDD。我的主目录在 SSD 上有一个符号链接,因此 /Volumes/SSD/Users/Ross/ 指向 /Volumes/Macintosh HD/Users/Ross 这是问题所在吗?卷名称中的空格可能是一个问题吗?我该如何解决这个问题?

Here's what I'm getting:

$ sudo gem install autotest-fsevent
Password: Building native extensions.
This could take a while... ERROR:
Error installing autotest-fsevent:
ERROR: Failed to build gem native
extension.

/Volumes/SSD/Users/Ross/.rvm/rubies/ruby-1.9.2-p136/bin/ruby
extconf.rb ld: can't open output file
for writing: /Volumes/Macintosh
HD/Users/Ross/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/gems/1.9.1/gems/autotest-fsevent-0.2.4/bin/fsevent_sleep,
errno=2 collect2: ld returned 1 exit
status extconf.rb:30:in `':
Compilation of fsevent_sleep failed
(see README) (RuntimeError)

The README says this:

TROUBLESHOOTING:

Compilation of fsevent_sleep Failed

Make sure you have Xcode (Mac OS X
Development Suite) installed.

I have installed the latest xcode and even re-installed it just in case something was missing.

Anyone know how to at least troubleshoot this further. I did hear some someone it it could be path related. But here's the information on the path. I have two drives in the machine, an SSD with the OS on it and a HDD with all my data. I have a symlink on the SSD for my home directory so /Volumes/SSD/Users/Ross/ points to /Volumes/Macintosh HD/Users/Ross
Is that the issue? Is the space in the Volume name an issue maybe? How could I get around this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

过期以后 2024-10-21 07:57:48

请查看Zen Spiders 博客。自动测试和咆哮方面发生了很多变化。我通常只需将其添加到我的 Gemfile(或 rvmsudo gem 安装)中,具体取决于?

  gem "ZenTest"
  gem "autotest-rails-pure"
  gem "autotest-growl"
  gem "autotest-fsevent"

然后将以下内容添加到 .autotest

  require 'autotest/growl'
  require 'autotest/fsevent'

让我们知道您的进展情况。一切顺利。请记住,当您使用 RVM 时,您不需要 SUDO 任何操作。如果权限被拒绝,则只需使用 RVMSUDO GEM INSTALL。

Have a look at Zen Spiders Blog. A lot has changed when it comes to Autotest and Growl. I normally simply add this to my Gemfile (or rvmsudo gem install) depending on?

  gem "ZenTest"
  gem "autotest-rails-pure"
  gem "autotest-growl"
  gem "autotest-fsevent"

Then add the following to .autotest

  require 'autotest/growl'
  require 'autotest/fsevent'

Let us know how you get on. All the Best. Remember when you are using RVM you do not SUDO anything. If permissions are denied then simply use RVMSUDO GEM INSTALL.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文