# Pouring gcc-8.1.0.high\_sierra failed

**URL:** <https://discourse.julialang.org/t/pouring-gcc-8-1-0-high-sierra-failed/10974>\
**Category:** New to Julia\
**Tags:** hdf5, matlab\
**Created:** [May 18, 2018, 1:33am UTC](https://discourse.julialang.org/t/pouring-gcc-8-1-0-high-sierra-failed/10974 "2018-05-18T01:33:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![briochemc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/briochemc/32/4209_2.png) [@briochemc](https://discourse.julialang.org/u/briochemc)\
**Post date:** [May 18, 2018, 1:33am UTC](https://discourse.julialang.org/t/pouring-gcc-8-1-0-high-sierra-failed/10974/1 "2018-05-18T01:33:25Z")

</div>

Hi there,

(not sure this is the correct way or place to ask for this…)  
I just started playing within Julia, and I wanted to load a `.mat` file. So I tried to add the MAT package by typing `Pkg.add("MAT")`, but then during the brew install of the HDF5 dependency package, I got some errors. More specifically (I erased parts of the output):

```julia
==> Pouring gcc-8.1.0.high_sierra.bottle.1.tar.gz
Error: Failed changing install name in (...)
Error: Updated load commands do not fit in the header of (...)
Warning: Bottle installation failed: building from source.

```

It then goes on to build from source, but the `make` just hangs there for a looooong time… (Still running as I write this). Am I doing something wrong?

Please let me know,  
Cheers,  
Ben.

---

<div class="post-metadata">

**Author:** ![ringohoffman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ringohoffman/32/4259_2.png) [@ringohoffman](https://discourse.julialang.org/u/ringohoffman)\
**Post date:** [May 29, 2018, 8:15pm UTC](https://discourse.julialang.org/t/pouring-gcc-8-1-0-high-sierra-failed/10974/2 "2018-05-29T20:15:45Z")

</div>

I had the exact same problem. Reading from the [HDF5 git repo](http://mirror.vsibiri.info/libraries.io/julia/HDF5.htm), HDF5 needs to be installed on your system before you can install it in Julia.

Try running

```julia
brew install hdf5

```

and then try building it with Pkg.build(“HDF5”).

Good luck m8

---

<div class="post-metadata">

**Author:** ![briochemc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/briochemc/32/4209_2.png) [@briochemc](https://discourse.julialang.org/u/briochemc)\
**Post date:** [May 29, 2018, 9:02pm UTC](https://discourse.julialang.org/t/pouring-gcc-8-1-0-high-sierra-failed/10974/3 "2018-05-29T21:02:07Z")

</div>

Oh thanks! Well eventually after an hour or so it finished building from source 🙂

---

<div class="post-metadata">

**Author:** ![axsk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/axsk/32/1952_2.png) [@axsk](https://discourse.julialang.org/u/axsk)\
**Post date:** [May 31, 2018, 12:37pm UTC](https://discourse.julialang.org/t/pouring-gcc-8-1-0-high-sierra-failed/10974/4 "2018-05-31T12:37:23Z")

</div>

> [@ringohoffman](#):
>
> Try running
> 
> ```julia
> brew install hdf5
> 
> ```

Had the same problem, this helped.  
Still strange it doesn’t work automatically though…

---

<div class="post-metadata">

**Author:** ![jonathanBieler](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jonathanBieler](https://discourse.julialang.org/u/jonathanBieler)\
**Post date:** [May 31, 2018, 1:18pm UTC](https://discourse.julialang.org/t/pouring-gcc-8-1-0-high-sierra-failed/10974/5 "2018-05-31T13:18:57Z")

</div>

It’s a problem with gcc bottle, it was reported to Homebrew, but it doesn’t seem to have been correctly fixed:

[https://github.com/Homebrew/homebrew-core/issues/27751](https://github.com/Homebrew/homebrew-core/issues/27751)

I would try to avoid updating packages in the meanwhile, unless you’re willing to recompile gcc.

---

<div class="post-metadata">

**Author:** ![Noah\_Shipley](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@Noah\_Shipley](https://discourse.julialang.org/u/Noah_Shipley)\
**Post date:** [June 5, 2018, 3:55pm UTC](https://discourse.julialang.org/t/pouring-gcc-8-1-0-high-sierra-failed/10974/6 "2018-06-05T15:55:18Z")

</div>

I had the same issue. Running a `brew install hdf5` also resolved things for me.
