user69347: I'm working on installing Bitcoin Core for the mac. I've cloned the repo and installed the dependencies via brew. I'm trying to run autogen.sh but it is failing:
$ ./autogen.sh
/usr/local/bin/glibtoolize: line 406: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 2513: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 2513: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 3601: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 3845: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 861: /usr/local/Library/ENV/4.3/sed: No such file or directory
: putting auxiliary files in '.'.
: copying file './ltmain.sh'
/usr/local/bin/glibtoolize: line 3771: /usr/local/Library/ENV/4.3/sed: No such file or directory
configure.ac:45: error: required file 'build-aux/ltmain.sh' not found
autoreconf: automake failed with exit status: 1

I'm not sure what is failing. brew doctor is clean. glibtoolize and sed can both be found. There is no .../Library/ENV directory, so I'm not sure why that isn't automatically getting created.
Any help would be greatly appreciated.
Mac 10.12.6
Bitcoin (7b57bc9) - v0.15.1


user78653: This happens because /usr/local/bin/glibtoolize: is pointing to the wrong directory
line  49 : ${SED="/usr/local/Library/ENV/4.3/sed"}
This was changed when homebrew decided to move their paths. See this stackoverflow post 
What worked for me was
brew reinstall libtool

69347: <p>I'm working on installing Bitcoin Core for the <a href="https://github.com/bitcoin/bitcoin/blob/v0.15.1/doc/build-osx.md" rel="nofollow noreferrer">mac</a>. I've cloned the repo and installed the dependencies via brew. I'm trying to run <code>autogen.sh</code> but it is failing:</p>

<pre><code>$ ./autogen.sh
/usr/local/bin/glibtoolize: line 406: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 2513: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 2513: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 3601: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 3845: /usr/local/Library/ENV/4.3/sed: No such file or directory
/usr/local/bin/glibtoolize: line 861: /usr/local/Library/ENV/4.3/sed: No such file or directory
: putting auxiliary files in '.'.
: copying file './ltmain.sh'
/usr/local/bin/glibtoolize: line 3771: /usr/local/Library/ENV/4.3/sed: No such file or directory
configure.ac:45: error: required file 'build-aux/ltmain.sh' not found
autoreconf: automake failed with exit status: 1
</code></pre>

<p>I'm not sure what is failing. <code>brew doctor</code> is clean. <code>glibtoolize</code> and <code>sed</code> can both be found. There is no <code>.../Library/ENV</code> directory, so I'm not sure why that isn't automatically getting created.</p>

<p>Any help would be greatly appreciated.</p>

<pre><code>Mac 10.12.6
Bitcoin (7b57bc9) - v0.15.1
</code></pre>
 78653: <p>This happens because <code>/usr/local/bin/glibtoolize:</code> is pointing to the wrong directory</p>

<p><code>line  49 : ${SED="/usr/local/Library/ENV/4.3/sed"}</code></p>

<p>This was changed when homebrew decided to move their paths. See this stackoverflow <a href="https://stackoverflow.com/questions/38440350/sed-directory-not-found-when-running-r-with-e-flag#38471855">post</a> </p>

<p>What worked for me was</p>

<p><code>brew reinstall libtool</code></p>
