# Getting mysterious WARNING / Error messages during package installations

**URL:** <https://discourse.julialang.org/t/getting-mysterious-warning-error-messages-during-package-installations/1075>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [December 20, 2016, 9:39pm UTC](https://discourse.julialang.org/t/getting-mysterious-warning-error-messages-during-package-installations/1075 "2016-12-20T21:39:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg/32/359_2.png) [@Greg](https://discourse.julialang.org/u/Greg)\
**Post date:** [December 20, 2016, 9:39pm UTC](https://discourse.julialang.org/t/getting-mysterious-warning-error-messages-during-package-installations/1075/1 "2016-12-20T21:39:13Z")

</div>

Dear Sirs,

I just installed Julia for the first time. I’m using an Ubuntu 16.04 machine, and I used [Elliot Saba’s PPA](https://launchpad.net/~staticfloat/+archive/ubuntu/juliareleases).

When I run Pkg.add(“…”) for any package, I see the following errors:

```julia
WARNING: Error during initialization of module LinAlg:
ErrorException("could not load library "liblapack.so.3"
liblapack.so.3.so: cannot open shared object file: No such file or directory")
WARNING: Error during initialization of module CHOLMOD:
ErrorException("could not load library "libcholmod"
/usr/lib/liblapack.so.3: undefined symbol: gotoblas")

```

I do have libcholomod and liblapack installed. I also had openblas installed before I installed julia.  
What can I do to ensure everything works properly and the warnings disappear?

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [December 20, 2016, 10:33pm UTC](https://discourse.julialang.org/t/getting-mysterious-warning-error-messages-during-package-installations/1075/2 "2016-12-20T22:33:31Z")

</div>

You could try the official binaries instead. They are available from the JuliaLang website.

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [December 21, 2016, 2:40am UTC](https://discourse.julialang.org/t/getting-mysterious-warning-error-messages-during-package-installations/1075/3 "2016-12-21T02:40:55Z")

</div>

Ccing @staticfloat for possible fix.

---

<div class="post-metadata">

**Author:** ![staticfloat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/staticfloat/32/34_2.png) [@staticfloat](https://discourse.julialang.org/u/staticfloat)\
**Post date:** [December 21, 2016, 3:18am UTC](https://discourse.julialang.org/t/getting-mysterious-warning-error-messages-during-package-installations/1075/4 "2016-12-21T03:18:12Z")

</div>

@Greg; what versions of `openblas` and `liblapack` do you have installed? You can find via `dpkg -l`, like this:

```julia
$ dpkg -l | grep openblas
ii libopenblas-base 0.2.10.1-trusty2 amd64 Optimized BLAS (linear algebra) library based on GotoBLAS2
ii libopenblas-dev 0.2.10.1-trusty2 amd64 Optimized BLAS (linear algebra) library based on GotoBLAS2
$ dpkg -l | grep lapack
ii liblapack-dev 3.5.0-2ubuntu1 amd64 Library of linear algebra routines 3 - static version
ii liblapack3 3.5.0-2ubuntu1 amd64 Library of linear algebra routines 3 - shared version

```

If your versions are significantly different, when was the last time you ran `sudo apt update && sudo apt upgrade`?

---

<div class="post-metadata">

**Author:** ![Greg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg/32/359_2.png) [@Greg](https://discourse.julialang.org/u/Greg)\
**Post date:** [December 21, 2016, 2:47pm UTC](https://discourse.julialang.org/t/getting-mysterious-warning-error-messages-during-package-installations/1075/5 "2016-12-21T14:47:45Z")

</div>

@kristoffer.carlsson, @dpsanders, and @staticfloat, thank you for such prompt response! This encourages me to continue trying out Julia 🙂

@kristoffer.carlsson, thanks, I will surely try the official binaries if we can’t resolve this otherwise.

@staticfloat here is the output of my `dpkg -l`:

```julia
algomorph@Juggernaut:~$ dpkg -l | grep openblas
ii libopenblas-base 0.2.18-1ubuntu1 amd64 Optimized BLAS (linear algebra) library (shared library)
ii libopenblas-dev 0.2.18-1ubuntu1 amd64 Optimized BLAS (linear algebra) library (development files)
algomorph@Juggernaut:~$ dpkg -l | grep lapack
ii liblapack-dev 3.6.0-2ubuntu2 amd64 Library of linear algebra routines 3 - static version
ii liblapack3 3.6.0-2ubuntu2 amd64 Library of linear algebra routines 3 - shared version

```

---

<div class="post-metadata">

**Author:** ![Greg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg/32/359_2.png) [@Greg](https://discourse.julialang.org/u/Greg)\
**Post date:** [December 21, 2016, 9:33pm UTC](https://discourse.julialang.org/t/getting-mysterious-warning-error-messages-during-package-installations/1075/6 "2016-12-21T21:33:08Z")

</div>

Apparently, the PPA I referenced and used to install Julia _is_ the one containing “official binaries”, see [http://julialang.org/downloads/platform.html](http://julialang.org/downloads/platform.html), the Ubuntu section.

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [December 21, 2016, 10:47pm UTC](https://discourse.julialang.org/t/getting-mysterious-warning-error-messages-during-package-installations/1075/7 "2016-12-21T22:47:07Z")

</div>

In the Linux section, it says “It is strongly recommended that the official generic linux binaries from the downloads page be used to install Julia. The following distribution-specific packages are community contributed.”

Have you tried using the generic linux binaries? This should be easy to try.

---

<div class="post-metadata">

**Author:** ![Greg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg/32/359_2.png) [@Greg](https://discourse.julialang.org/u/Greg)\
**Post date:** [December 22, 2016, 1:42pm UTC](https://discourse.julialang.org/t/getting-mysterious-warning-error-messages-during-package-installations/1075/8 "2016-12-22T13:42:20Z")

</div>

Thanks for your response! I have removed the PPA version, downloaded the official archive, and, for lack of any clear instructions, just stuffed the corresponding folders in my /usr/local (bin, share, etc, lib, include) with the corresponding contents from the archive.

The error has gone away. I have filed a bug report with the PPA maintainer.

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [December 23, 2016, 5:46pm UTC](https://discourse.julialang.org/t/getting-mysterious-warning-error-messages-during-package-installations/1075/9 "2016-12-23T17:46:41Z")

</div>

You can also just make a symbolic link in e.g. `/usr/bin/` to the binary that exists at `/bin/julia` in the compressed archive. That way you don’t have to move around so many files.
