# Rmath issues

**URL:** https://discourse.julialang.org/t/rmath-issues/5984
**Category:** General Usage
**Created:** [September 19, 2017, 6:41pm UTC](https://discourse.julialang.org/t/rmath-issues/5984 "2017-09-19T18:41:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![gideonsimpson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gideonsimpson/32/1928_2.png) [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)
#### Post date: [September 19, 2017, 6:41pm UTC](https://discourse.julialang.org/t/rmath-issues/5984/1 "2017-09-19T18:41:40Z")

</div>

I’m attempting to use julia 0.6 in my home directory, and when I try to install Rmath (for Gadfly, amongst other packages), I get the following error:

```julia
INFO: Directory /home/gsimpson/.julia/v0.6/Rmath/deps/usr/lib already created
INFO: Changing Directory to /home/gsimpson/.julia/v0.6/Rmath/deps/src/Rmath-julia-0.2.0
In file included from i1mach.c:21:0:
nmath.h:40:18: fatal error: math.h: No such file or directory
compilation terminated.
make[1]: *** [i1mach.o] Error 1
make: *** [all] Error 2
================================[ERROR: Rmath]================================

LoadError: failed process: Process(`make`, ProcessExited(2)) [2]
while loading /home/gsimpson/.julia/v0.6/Rmath/deps/build.jl, in expression starting on line 42

================================================================================

================================[BUILD ERRORS]================================

WARNING: Rmath had build errors.

 - packages with build errors remain installed in /home/gsimpson/.julia/v0.6
 - build the package(s) and all dependencies with `Pkg.build("Rmath")`
 - build a single package by running its `deps/build.jl` script

```

---

<div class="post-metadata">

### Author: ![gideonsimpson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gideonsimpson/32/1928_2.png) [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)
#### Post date: [September 26, 2017, 5:02pm UTC](https://discourse.julialang.org/t/rmath-issues/5984/2 "2017-09-26T17:02:08Z")

</div>

This appeared to be the result of a missing package on my Linux Mint installation. This was resolved by ensuring `build-essential` was installed.

---

<div class="post-metadata">

### Author: ![simonbyrne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simonbyrne/32/19_2.png) [@simonbyrne](https://discourse.julialang.org/u/simonbyrne)
#### Post date: [September 26, 2017, 9:43pm UTC](https://discourse.julialang.org/t/rmath-issues/5984/3 "2017-09-26T21:43:14Z")

</div>

Sorry, this is unfortunately a known issue with BinDeps.jl which is used to build it.  
[https://github.com/JuliaStats/Rmath.jl/issues/27](https://github.com/JuliaStats/Rmath.jl/issues/27)

We do need a better solution.
