# Installing dependencies error: sudo: no tty present and no askpass program specified

**URL:** <https://discourse.julialang.org/t/installing-dependencies-error-sudo-no-tty-present-and-no-askpass-program-specified/778>\
**Category:** General Usage\
**Tags:** question, package\
**Created:** [December 7, 2016, 1:42pm UTC](https://discourse.julialang.org/t/installing-dependencies-error-sudo-no-tty-present-and-no-askpass-program-specified/778 "2016-12-07T13:42:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abelsiqueira](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abelsiqueira/32/47269_2.png) [@abelsiqueira](https://discourse.julialang.org/u/abelsiqueira)\
**Post date:** [December 7, 2016, 1:42pm UTC](https://discourse.julialang.org/t/installing-dependencies-error-sudo-no-tty-present-and-no-askpass-program-specified/778/1 "2016-12-07T13:42:07Z")

</div>

tl;dr: I can’t call sudo in `deps/build.jl`. Can’t use `BinDeps`. [This issue (BinDeps.jl#199)](https://github.com/JuliaLang/BinDeps.jl/issues/199) is related. What are the directives on installing dependencies?

Long version: I’m trying to install the dependencies of my packages using the `deps/build.jl` file. However, I’m getting the error

```julia
sudo: no tty present and no askpass program specified

```

At first I was using a bash script, but then I changed to BinDeps and the error remains. From what I understand, I could use askpass variable setting an askpass program but that seems counterproductive. I would like to install my package in the simplest way possible: one `Pkg.add` after a clean OS install.

Is this possible?

PS. `Pkg.add("GSL")` fails with the same problem, and I suspect others do too.

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ihnorton/32/26_2.png) [@ihnorton](https://discourse.julialang.org/u/ihnorton)\
**Post date:** [December 7, 2016, 3:02pm UTC](https://discourse.julialang.org/t/installing-dependencies-error-sudo-no-tty-present-and-no-askpass-program-specified/778/2 "2016-12-07T15:02:20Z")

</div>

Please see [my comment](https://github.com/JuliaLang/BinDeps.jl/issues/199#issuecomment-265467504) on the linked issue.
