无法在MacOS 10.14.2 Mojave上安装任何带RVM的Ruby:运行'__rvm#U make-j4和#x27;

无法在MacOS 10.14.2 Mojave上安装任何带RVM的Ruby:运行'__rvm#U make-j4和#x27;,ruby,xcode,rvm,macos-mojave,Ruby,Xcode,Rvm,Macos Mojave,在将MacOS升级到10.14.2 Mojave之后,我无法再安装任何带有RVM的Ruby版本。它总是会出现如下错误: $rvm install 2.5.3 ruby-2.5.3 - #removing src/ruby-2.5.3.. Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.14/x86_64/ruby-2.5.3. Continuing wit

在将MacOS升级到10.14.2 Mojave之后,我无法再安装任何带有RVM的Ruby版本。它总是会出现如下错误:

$rvm install 2.5.3
ruby-2.5.3 - #removing src/ruby-2.5.3..
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.14/x86_64/ruby-2.5.3.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates bundle '/usr/local/etc/openssl@1.1/cert.pem' is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/jdinse/.rvm/rubies/ruby-2.5.3, this may take a while depending on your cpu(s)...
ruby-2.5.3 - #downloading ruby-2.5.3, this may take a while depending on your connection...
ruby-2.5.3 - #extracting ruby-2.5.3 to /Users/jdinse/.rvm/src/ruby-2.5.3.....
ruby-2.5.3 - #configuring....................................................................
ruby-2.5.3 - #post-configuration.
ruby-2.5.3 - #compiling....................
Error running '__rvm_make -j4',
please read /Users/jdinse/.rvm/log/1547136259_ruby-2.5.3/make.log

There has been an error while running make. Halting the installation.
making srcs under enc
make[1]: Nothing to be done for `srcs'.
generating transdb.h
linking static-library libruby.2.5.3-static.a
libtool: object: dln.o malformed object (unknown load command 1)
libtool: object: localeinit.o malformed object (unknown load command 1)
libtool: object: loadpath.o malformed object (unknown load command 1)
libtool: object: array.o malformed object (unknown load command 1)
libtool: object: bignum.o malformed object (unknown load command 1)
libtool: object: class.o malformed object (unknown load command 1)
...
查看
make.log
,唯一的错误如下:

$rvm install 2.5.3
ruby-2.5.3 - #removing src/ruby-2.5.3..
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.14/x86_64/ruby-2.5.3.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates bundle '/usr/local/etc/openssl@1.1/cert.pem' is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/jdinse/.rvm/rubies/ruby-2.5.3, this may take a while depending on your cpu(s)...
ruby-2.5.3 - #downloading ruby-2.5.3, this may take a while depending on your connection...
ruby-2.5.3 - #extracting ruby-2.5.3 to /Users/jdinse/.rvm/src/ruby-2.5.3.....
ruby-2.5.3 - #configuring....................................................................
ruby-2.5.3 - #post-configuration.
ruby-2.5.3 - #compiling....................
Error running '__rvm_make -j4',
please read /Users/jdinse/.rvm/log/1547136259_ruby-2.5.3/make.log

There has been an error while running make. Halting the installation.
making srcs under enc
make[1]: Nothing to be done for `srcs'.
generating transdb.h
linking static-library libruby.2.5.3-static.a
libtool: object: dln.o malformed object (unknown load command 1)
libtool: object: localeinit.o malformed object (unknown load command 1)
libtool: object: loadpath.o malformed object (unknown load command 1)
libtool: object: array.o malformed object (unknown load command 1)
libtool: object: bignum.o malformed object (unknown load command 1)
libtool: object: class.o malformed object (unknown load command 1)
...
到目前为止,我所尝试的:

  • 重新安装的RVM
  • 尝试以前的RVM 1.29.6或主分支
  • 重新安装的自制软件
  • 重新安装的XCode
  • 重新安装的命令行工具
  • 已安装gcc,gcc@7或gcc@8使用自制软件,或将其全部卸载
  • 已安装openssl或openssl@1.1,或将其全部卸载
这一切以及类似问题的任何其他提示都无济于事


有什么想法吗?或者知道是什么原因导致错误的吗?

您是否安装了多个版本的boost?我采取了以下步骤来解决这个问题(尽管我使用的是rbenv)

首先,我删除了我的xcode库:
rm-rf/Library/Developer/CommandLineTools

然后我重新安装了它:
xcode选择--安装

然后我运行了
brew ls
,发现我有两个版本的boost<代码>增压和
boost@1.6.0
。我删除了
boost@1.6.0
boost
并重新安装
boost
,并确保已通过
brew link boost
链接


从那以后,它似乎开始工作。

我终于能够通过完全删除(非常旧的版本)MacPorts来修复它。其他一切都给了我同样的问题


希望这对你也有用。我花了一天多的时间才找到一个线索,把我引向这一点。

我也遇到了这个问题。在我的情况下,这是因为MacPorts在我升级到(MacOS)Mojave后已经过时

我遵循了MacPorts迁移指南中列出的步骤:

关闭和重新打开的航站楼(仅b/c)


运行
rvm安装ruby
并获得
安装ruby-2.6.0-#完成
,万岁

能解决这个问题吗?我遇到了完全相同的问题,我被难住了。我还没有运气:(我正在考虑改用rbenv。我能够解决这个问题,我将在下面回答:)我做到了,并删除了我的brew安装。重新安装brew,但未安装任何内容。
rvm是否安装了ruby-2.6.0
然后让rvm安装依赖项
安装所需的软件包:autoconf、automake、libtool、pkg config、coreutils、libyaml、readline、libksba、,openssl@1.1
…我和杰伊·丁斯有同样的问题。我没有安装boost,但我仍然有这个问题。宾果!!!在取消安装MacPorts的步骤之后,我再次尝试通过RVM安装Ruby,结果成功了。顺便说一句,在卸载所有旧的Macports软件包时,我注意到
boost
也被卸载了。