[FIX] Steemd on OSX: Homebrew Error Fix

in osx •  8 years ago  (edited)

Today I was helping @djleo build the steemd source code on OSX. We wanted to update to the newest release. We were going to use @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 !

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thanks very much for this, I have no idea whats going on but you got it working for me! i wouldn't have had a hope of getting this working so thank you. I hope more people see this as its not actually very hard to do at all.

REALLY grateful - thank you!!!!

Nice! Thank you, I'll give it a try.

*macOS :)

I don't think it becomes macOS until sierra - http://www.apple.com/osx/

I didn't mean to be pedantic, was just a light-hearted comment (hence the smilie).

But you are absolutely right, current versions are still branded OS X. But I bet they abandon the OS X name and go with macOS across the board come fall 2016.

EDIT:

You can fix most of this just by upgrading homebrew & now using homebrew normally - @teego already updated everything to version 0.11.

brew update
brew upgrade

:)

I did brew upgrade, and brew update... then brew install steem and got

Error: No available formula with the name "steem" 
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.

brew -v

Homebrew 0.9.9 (git revision 2b9a2; last commit 2016-07-21)
Homebrew/homebrew-core (git revision 51f94; last commit 2016-07-22)

So not sure why I am not getting the version 0.11 mentioned.

I did brew upgrade, and brew update... then brew install steem and got

Error: No available formula with the name "steem" 
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.

brew -v

Homebrew 0.9.9 (git revision 2b9a2; last commit 2016-07-21)
Homebrew/homebrew-core (git revision 51f94; last commit 2016-07-22)

So not sure why I am not getting the version 0.11 mentioned.

I went and found @teego's post here, and you need to install it directly from his repo. It's not part of "core" #Homebrew packages.

You can do that by running this command:

brew install TigerND/core/steem