ruby - 具有双高清和 "space in name"错误的 RVM

标签 ruby macos rvm hardware

我有两台开发机器,都运行 Mac OS Mountain Lion。我必须安装 HD 的桌面之一(应用程序和系统安装在 SD 上,用户帐户是标准的。)在这台机器上,当我去安装 RVM 时,它说了一些关于成为幸运的“用户名中的空间”用户和我需要添加一些特殊链接或诸如此类的东西。然后,这些方法会导致它们自己的大量错误。我的问题是,将我的 usr/local 放在一台硬盘上而将我的用户帐户放在另一台硬盘上会导致这个问题吗?

最佳答案

我遇到了与 motleydev 相同的问题, 空格原来是一条红鲱鱼。相反,RVM 脚本似乎在某处硬编码“/Volumes/Macintosh HD”。我通过以下实验得出结论:

我有两个分区,原始分区(“Macintosh HD”)和我正在处理的新分区(“Macintosh HD Rawr”)。 (在制作我的 rawr 分区时,我假设分区名称中的空格是可以的,因为显然 Macintosh HD 以前一直对我有用)

运行时出现初始错误 rvm install ruby​​-1.9.3-p484 --verify-downloads 1:

/bin/sh: /Volumes/Macintosh: No such file or directory
make: *** [enc] Error 127

当我尝试将“/Volumes/Macintosh\HD\Rawr”重命名为“/Volumes/Macintosh”时(我通过 Finder 重命名,这使符号链接(symbolic link) /Volumes/Macintosh ->/ 完好无损),安装仍然失败,但出现不同的错误:

/bin/sh: /Volumes/Macintosh: source: no such file or directory
make: *** [enc] Error 127

然后我将我的旧卷从“/Volumes/Macintosh\HD”重命名为“/Volumes/MacintoshHD”,安装仍然失败,但现在我收到不同的错误:

command(7): ./configure --prefix=/opt/twitter/rvm/rubies/ruby-1.9.3-p484 --with-opt-dir=/opt/twitter/opt/libyaml:/opt/twitter/opt/readline:/opt/twitter/opt/libksba:/opt/twitter/opt/openssl --without-tcl --without-tk --disable-install-doc --enable-shared
configure: WARNING: unrecognized options: --without-tcl, --without-tk
checking build system type... x86_64-apple-darwin13.3.0
checking host system type... x86_64-apple-darwin13.3.0
checking target system type... x86_64-apple-darwin13.3.0
checking whether the C compiler works... no
configure: error: in `/opt/twitter/rvm/src/ruby-1.9.3-p484':
configure: error: C compiler cannot create executables
See `config.log' for more details

查看config.log,发现如下错误:

xcrun: error: active developer path ("/Volumes/Macintosh HD/Applications/Xcode.app/Contents/Developer") does not exist, use xcode-select to change

由于此时两个卷都没有命名为“Macintosh HD”,这表明它已被硬编码在 RVM 代码中的某处。

果然,将我想要的分区更改为“/Volumes/Macintosh\HD”让 rvm 完成了它的工作。

关于ruby - 具有双高清和 "space in name"错误的 RVM,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12226069/

相关文章:

ios - 如何在 SpriteKit 中为带有物理体的迷宫创建路径

通过 NVM 安装 Ruby 失败并出现依赖项错误

ruby - 从 String#split 返回的零长度字符串

ruby-on-rails - 在同一 View RoR 中的表单之间传递参数

Python从文件中读取列表

c++ - 如何使用 bazel 在 OS X 上设置 C++ 编译器?

ruby - 找不到 ubuntu 上的 Rails - 但在我的 gem 安装列表中

ruby - 如何在 ruby​​ 中创建 Dir.chdir 以获取或加载项目 .rvmrc 文件?

ruby - 如何卸载/不需要 gem

json - Rswag 模式不会因数组中对象的无效属性而失败