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)
What I've tried so far:
reinstalled RVM
trying previous RVM 1.29.6 or master branch
reinstalled Homebrew
reinstalled XCode
reinstalled Command Line Tools
installed gcc, gcc@7 or gcc@8 with homebrew, or uninstalled all of them
installed openssl or [email protected], or uninstalled all of them
Nothing of this nor any other tips of similar questions helped.
Any ideas? Or any idea what caused the error libtool: object: dln.o malformed object (unknown load command 1)
and how to fix it?
I ran into this issue as well. In my case it was due to MacPorts being outdated after I upgraded to (MacOS) Mojave.
I followed the steps listed on MacPorts' migration guide here:
https://trac.macports.org/wiki/Migration
Closed and reopened Terminal (just b/c)
ran rvm install ruby
and got Install of ruby-2.6.0 - #complete
, hooray!
–
Do you have multiple versions of boost installed? I took the following steps to fix this (although I was using rbenv).
First I removed my xcode lib:
rm -rf /Library/Developer/CommandLineTools
Then I reinstalled it:
xcode-select --install
Then I ran brew ls
and noticed I had two versions of boost. boost
and [email protected]
. I removed [email protected]
and boost
and reinstalled boost
and made sure it was linked via brew link boost
.
Seemed to work after that.
–
–
I was finally able to fix it by completely removing (a very old version of) MacPorts. Everything else kept giving me the same issues.
Hope this works for you as well. It took me more than a day to find a hint that lead me to this point.
Resolved this by :
brew install rbenv
rbenv install 2.7.4 #repalce 2.7.4 with the version you want
rbenv global 2.7.4
Tried downloading it from rvm but nothing was working
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.