[FIX] Steemd on OSX: Homebrew Error Fix

metasyn(43)
Published in
#osx
Words
201
Reading
1 min
Listen
Play
10y

Today I was helping djleo@djleo build the steemd source code on OSX. We wanted to update to the newest release. We were going to use teego@teego's recent homebrew approach, simply:

brew install steem

And it should be all good to go. However, evidently on the 0.9.0rc2 & 0.10.0 updates, we found it broke during make due to a missing file:

Scanning dependencies of target project_secp256k1
[  6%] Performing autogen step for 'project_secp256k1'
/usr/local/bin/glibtoolize: line 406: /usr/local/Library/ENV/4.3/sed: No such file or directory

A little google sleuthing brought me to a few pages where this is mentioned, most notably this one:
https://github.com/Homebrew/legacy-homebrew/issues/43874

Evidently, the problem is in a few lines of glibtool and glibtoolize, where sed is hardcoded to the wrong location. By going into the file manually, you can change the hardcoded path to the real path to sed, and the program will compile fully.

So for me, sed is located at /usr/bin/sed, you you can check by running:

$ which sed

If you go and look at the sed path of glibtool or glibtoolize, you'll see sed is set like this:

SED= "/usr/local/Library/ENV/4.3/sed"

Rather than clumsily replacing that hard coding by hand, you can fix the problem the right way by running the following:

brew update
brew doctor
brew uninstall libtool
export HOMEBREW_BUILD_FROM_SOURCE 
brew install libtool

Then if you check the source of glibtool, for me, in /usr/local/Cellar/libtool/2.4.6/bin, you'll see:

SED="/usr/local/Library/Homebrew/shims/super/sed"

And when you then run make, everything compiled (well, at least for me).
Good luck !

[FIX] Steemd on OSX: Homebrew Error Fix | Ecency