Jay*_*nse 6 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 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.
Run Code Online (Sandbox Code Playgroud)
展望make.log,唯一的错误是这样的:
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)
...
Run Code Online (Sandbox Code Playgroud)
到目前为止我尝试过的:
这个或类似问题的任何其他提示都没有帮助.
有任何想法吗?或者任何想法是什么导致错误libtool: object: dln.o malformed object (unknown load command 1)以及如何解决它?
我也遇到了这个问题。就我而言,这是由于我升级到 (MacOS) Mojave 后 MacPorts 已过时。
我按照此处 MacPorts 迁移指南中列出的步骤操作:https : //trac.macports.org/wiki/Migration
关闭并重新开放的航站楼(仅 b/c)
然rvm install ruby,得到了Install of ruby-2.6.0 - #complete,万岁!
| 归档时间: |
|
| 查看次数: |
1065 次 |
| 最近记录: |