无法在MacOS上安装任何带RVM的Ruby 10.14.2 Mojave:运行’__rvm
发布时间:2020-12-14 19:10:30 所属栏目:百科 来源:网络整理
导读:将MacOS升级到10.14.2 Mojave后,我无法再安装任何带RVM的 Ruby版本了.它总是会出现这样的错误: $rvm install 2.5.3ruby-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
将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. 查看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) ... 到目前为止我尝试过的: >重新安装RVM 这个或类似问题的任何其他提示都没有帮助. 有任何想法吗?或任何想法是什么导致错误libtool:对象:dln.o格式错误的对象(未知的加载命令1)以及如何解决它? 解决方法
您是否安装了多个版本的boost?我采取了以下步骤来解决这个问题(虽然我使用的是rbenv).
首先我删除了我的xcode lib: 然后我重新安装它: 然后我跑了brew ls并注意到我有两个版本的提升. boost和boost@1.6.0.我删除了boost@1.6.0并提升并重新安装了boost并确保它通过brew链接提升链接. 之后似乎工作了. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |