# Could not load library "libopenlibm"

**URL:** <https://discourse.julialang.org/t/could-not-load-library-libopenlibm/1880>\
**Category:** New to Julia\
**Created:** [February 3, 2017, 9:30pm UTC](https://discourse.julialang.org/t/could-not-load-library-libopenlibm/1880 "2017-02-03T21:30:30Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ali\_mohamed](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ali_mohamed/32/7633_2.png) [@ali\_mohamed](https://discourse.julialang.org/u/ali_mohamed)\
**Post date:** [February 3, 2017, 9:30pm UTC](https://discourse.julialang.org/t/could-not-load-library-libopenlibm/1880/1 "2017-02-03T21:30:30Z")

</div>

I’ve started learning arrays and i have faced this weird problem while using norm function  
could any one help me?

 ![](https://global.discourse-cdn.com/julialang/original/3X/8/7/87cae19bc0cabe29ae04769afbc368c1d6c76f7f.png)

---

<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:** [February 4, 2017, 5:38am UTC](https://discourse.julialang.org/t/could-not-load-library-libopenlibm/1880/2 "2017-02-04T05:38:49Z")

</div>

What is the output of `versioninfo()`?

---

<div class="post-metadata">

**Author:** ![ali\_mohamed](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ali_mohamed/32/7633_2.png) [@ali\_mohamed](https://discourse.julialang.org/u/ali_mohamed)\
**Post date:** [February 6, 2017, 5:17pm UTC](https://discourse.julialang.org/t/could-not-load-library-libopenlibm/1880/3 "2017-02-06T17:17:38Z")

</div>

I’m very sorry for may late reply  
this is the result

 ![](https://global.discourse-cdn.com/julialang/original/3X/5/5/55cfd943eb844619200f93dfa48e12d2721f4bed.png)

---

<div class="post-metadata">

**Author:** ![nalimilan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nalimilan/32/147_2.png) [@nalimilan](https://discourse.julialang.org/u/nalimilan)\
**Post date:** [February 7, 2017, 9:06pm UTC](https://discourse.julialang.org/t/could-not-load-library-libopenlibm/1880/4 "2017-02-07T21:06:11Z")

</div>

I assume you installed Julia from binaries? Do you get the same error if you run that code from the Julia console?

---

<div class="post-metadata">

**Author:** ![ali\_mohamed](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ali_mohamed/32/7633_2.png) [@ali\_mohamed](https://discourse.julialang.org/u/ali_mohamed)\
**Post date:** [February 7, 2017, 10:52pm UTC](https://discourse.julialang.org/t/could-not-load-library-libopenlibm/1880/5 "2017-02-07T22:52:07Z")

</div>

yes, i did it from binaries.  
yes, still the same error ☹

---

<div class="post-metadata">

**Author:** ![tkelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkelman/32/692_2.png) [@tkelman](https://discourse.julialang.org/u/tkelman)\
**Post date:** [February 7, 2017, 11:33pm UTC](https://discourse.julialang.org/t/could-not-load-library-libopenlibm/1880/6 "2017-02-07T23:33:27Z")

</div>

How about `versioninfo(true)` and `show(readdir(JULIA_HOME))` ?

If the latter shows a libopenlibm.dll present, then could you download Dependency Walker [http://www.dependencywalker.com/](http://www.dependencywalker.com/) and take a screenshot of the result when you open the libopenlibm.dll file in Dependency Walker?

---

<div class="post-metadata">

**Author:** ![ali\_mohamed](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ali_mohamed/32/7633_2.png) [@ali\_mohamed](https://discourse.julialang.org/u/ali_mohamed)\
**Post date:** [February 8, 2017, 8:46pm UTC](https://discourse.julialang.org/t/could-not-load-library-libopenlibm/1880/7 "2017-02-08T20:46:25Z")

</div>

This is the result:

 ![](https://global.discourse-cdn.com/julialang/original/3X/0/7/074fd32a357af012d0ae00d7275fed83785227d6.png)

---

<div class="post-metadata">

**Author:** ![ali\_mohamed](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ali_mohamed/32/7633_2.png) [@ali\_mohamed](https://discourse.julialang.org/u/ali_mohamed)\
**Post date:** [February 8, 2017, 8:47pm UTC](https://discourse.julialang.org/t/could-not-load-library-libopenlibm/1880/8 "2017-02-08T20:47:06Z")

</div>

![](https://global.discourse-cdn.com/julialang/original/3X/1/2/123b80f4a7681d013a4381fd9f3a9376e24e3048.png)

---

<div class="post-metadata">

**Author:** ![ali\_mohamed](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ali_mohamed/32/7633_2.png) [@ali\_mohamed](https://discourse.julialang.org/u/ali_mohamed)\
**Post date:** [February 8, 2017, 8:47pm UTC](https://discourse.julialang.org/t/could-not-load-library-libopenlibm/1880/9 "2017-02-08T20:47:37Z")

</div>

![](https://global.discourse-cdn.com/julialang/original/3X/7/4/7435cbce77bd05ce7df6cf847dc896d15323add2.png)

---

<div class="post-metadata">

**Author:** ![ali\_mohamed](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ali_mohamed/32/7633_2.png) [@ali\_mohamed](https://discourse.julialang.org/u/ali_mohamed)\
**Post date:** [February 8, 2017, 8:49pm UTC](https://discourse.julialang.org/t/could-not-load-library-libopenlibm/1880/10 "2017-02-08T20:49:43Z")

</div>

file libopenlibm is there in julia files, but when i saw this error for first time i told my friend then, he gave me this file from his own julia file and i replace my file with his file , but the problem still there . and i posted the problem here.  
i tried Dependency Walker for double check but he gave me an error.

small note: i replied with 4 replies because julia doesn’t allow me to add more than 3 images in one reply.

---

<div class="post-metadata">

**Author:** ![tkelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkelman/32/692_2.png) [@tkelman](https://discourse.julialang.org/u/tkelman)\
**Post date:** [February 9, 2017, 12:35am UTC](https://discourse.julialang.org/t/could-not-load-library-libopenlibm/1880/11 "2017-02-09T00:35:06Z")

</div>

Please reply with text in the future, images are not searchable if anyone else has the same issue.

Replacing openlibm.dll from your friend’s copy of Julia was a bad idea, as they most likely had a 64 bit copy of Julia. Reinstall Julia on your system without modifying any of the included files.

---

<div class="post-metadata">

**Author:** ![ali\_mohamed](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ali_mohamed/32/7633_2.png) [@ali\_mohamed](https://discourse.julialang.org/u/ali_mohamed)\
**Post date:** [February 9, 2017, 4:23am UTC](https://discourse.julialang.org/t/could-not-load-library-libopenlibm/1880/12 "2017-02-09T04:23:45Z")

</div>

I will try reinstall julia  
Thanks alot 💚💙
