# Can't install Julia 5.0 via Git on Amazon EC2 instance

**URL:** <https://discourse.julialang.org/t/cant-install-julia-5-0-via-git-on-amazon-ec2-instance/1444>\
**Category:** New to Julia\
**Created:** [January 12, 2017, 6:20pm UTC](https://discourse.julialang.org/t/cant-install-julia-5-0-via-git-on-amazon-ec2-instance/1444 "2017-01-12T18:20:55Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwojnowicz](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@mwojnowicz](https://discourse.julialang.org/u/mwojnowicz)\
**Post date:** [January 12, 2017, 6:20pm UTC](https://discourse.julialang.org/t/cant-install-julia-5-0-via-git-on-amazon-ec2-instance/1444/1 "2017-01-12T18:20:55Z")

</div>

Here is the code I used. I am an on r3.8xlarge. This worked fine for v0.4.6 as well as for other versions. Can anybody help?

sudo yum install cmake.x86\_64  
sudo yum install gcc48-gfortran.x86\_64  
sudo yum install libgfortran.x86\_64  
cd ~  
git clone [https://github.com/JuliaLang/julia.git](https://github.com/JuliaLang/julia.git)  
cd julia  
git checkout v0.5.0  
make -j 32  
~/julia/julia

---

<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:** [January 12, 2017, 6:49pm UTC](https://discourse.julialang.org/t/cant-install-julia-5-0-via-git-on-amazon-ec2-instance/1444/2 "2017-01-12T18:49:53Z")

</div>

> [@mwojnowicz](#):
>
> Can anybody help?

Not without an error message. Try `make -j1` after this happens, what do you see?

---

<div class="post-metadata">

**Author:** ![mwojnowicz](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@mwojnowicz](https://discourse.julialang.org/u/mwojnowicz)\
**Post date:** [January 12, 2017, 7:01pm UTC](https://discourse.julialang.org/t/cant-install-julia-5-0-via-git-on-amazon-ec2-instance/1444/3 "2017-01-12T19:01:47Z")

</div>

The build was exiting with error code 2, prior to which I was getting the error

```julia
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES
  OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindOpenSSL.cmake:313 (find_package_handle_standard_args)
  CMakeLists.txt:277 (FIND_PACKAGE)

```

I suspected the problem was related to the following statement in the Linux Build Troubleshooting section of the installation page:

```julia
If LibGit2 configuration step reports CMake Error at /usr/share/cmake-3.0/Modules/FindOpenSSL.cmake:294 (list): then the versions of OpenSSL and CMake are probably incompatible. The recommended solution is to upgrade the version of CMake to 3.1.2 or above.

```

I did upgrade cmake (to version 3.7.1) and the build still exits with error code 2 with the same problem with OpenSSL:

```julia
CMake Error at /usr/local/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES
  OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/share/cmake-3.7/Modules/FindOpenSSL.cmake:385 (find_package_handle_standard_args)
  CMakeLists.txt:277 (FIND_PACKAGE)

```

When I try make -j 1 I get a similar error:

```julia
CMake Error at /usr/local/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES
  OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/share/cmake-3.7/Modules/FindOpenSSL.cmake:385 (find_package_handle_standard_args)
  CMakeLists.txt:277 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!
See also "/home/mwojnowicz/julia/deps/build/libgit2-211e117a0590583a720c53172406f34186c543bd/CMakeFiles/CMakeOutput.log".
See also "/home/mwojnowicz/julia/deps/build/libgit2-211e117a0590583a720c53172406f34186c543bd/CMakeFiles/CMakeError.log".
make[1]: *** [build/libgit2-211e117a0590583a720c53172406f34186c543bd/Makefile] Error 1
make: *** [julia-deps] Error 2

```

---

<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:** [January 12, 2017, 7:02pm UTC](https://discourse.julialang.org/t/cant-install-julia-5-0-via-git-on-amazon-ec2-instance/1444/4 "2017-01-12T19:02:46Z")

</div>

Do you have openssl-devel installed?

---

<div class="post-metadata">

**Author:** ![mwojnowicz](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@mwojnowicz](https://discourse.julialang.org/u/mwojnowicz)\
**Post date:** [January 12, 2017, 7:13pm UTC](https://discourse.julialang.org/t/cant-install-julia-5-0-via-git-on-amazon-ec2-instance/1444/5 "2017-01-12T19:13:37Z")

</div>

Thanks for your help. I guess not. I verified that I had installed everything listed in “Required Build Tools and External Libraries,” but did not see it there. I tried installing OpenSSL using

```julia
./config --prefix=/usr \
         --openssldir=/etc/ssl \
         --libdir=lib \
         shared \
         zlib-dynamic &&
make depend &&
make

```

which installs “openssl” at /usr/bin/openssl

```julia
make -j1 

```

produces the same error message. Attempting to comply with the error message, I did

```julia
sudo cmake -DOPENSSL_ROOT_DIR=/usr/bin/openssl

```

and got

```julia
CMake Error: The source directory "/home/mwojnowicz" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

```

---

<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:** [January 12, 2017, 7:25pm UTC](https://discourse.julialang.org/t/cant-install-julia-5-0-via-git-on-amazon-ec2-instance/1444/6 "2017-01-12T19:25:55Z")

</div>

Isn’t there a package you can install with yum for openssl-dev?

---

<div class="post-metadata">

**Author:** ![mwojnowicz](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@mwojnowicz](https://discourse.julialang.org/u/mwojnowicz)\
**Post date:** [January 12, 2017, 7:32pm UTC](https://discourse.julialang.org/t/cant-install-julia-5-0-via-git-on-amazon-ec2-instance/1444/7 "2017-01-12T19:32:00Z")

</div>

Okay, yeah, I did

```julia
sudo yum install openssl-devel

```

and re-ran

```julia
make -j 1

```

and now things seem to be working. I did not realize that it doesn’t suffice to install openssl (Following the error message, I was just trying to install openssl), and that for this I would need openssl-devel so that the header files are available as well as the binary.

Thank you for your time. I’m sure some of this would have been obvious to many of you, but I’m a non-very-CS-savvy statistician.

---

<div class="post-metadata">

**Author:** ![mwojnowicz](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@mwojnowicz](https://discourse.julialang.org/u/mwojnowicz)\
**Post date:** [January 12, 2017, 7:39pm UTC](https://discourse.julialang.org/t/cant-install-julia-5-0-via-git-on-amazon-ec2-instance/1444/8 "2017-01-12T19:39:44Z")

</div>

BTW, Shouldn’t openssl-devel be added to the build dependencies?

---

<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:** [January 12, 2017, 7:46pm UTC](https://discourse.julialang.org/t/cant-install-julia-5-0-via-git-on-amazon-ec2-instance/1444/9 "2017-01-12T19:46:46Z")

</div>

If it’s not there, yes. Please feel free to file a Pull Request to the docs. For simple changes to the docs, it is easiest to navigate to the file in GitHub and click the “pencil” icon in the top right. This will allow you to edit the file and submit the Pull Request right in the browser.

---

<div class="post-metadata">

**Author:** ![mwojnowicz](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@mwojnowicz](https://discourse.julialang.org/u/mwojnowicz)\
**Post date:** [January 12, 2017, 7:51pm UTC](https://discourse.julialang.org/t/cant-install-julia-5-0-via-git-on-amazon-ec2-instance/1444/10 "2017-01-12T19:51:05Z")

</div>

Sure, will do. I’m at

```julia
https://github.com/JuliaLang/julia#Required-Build-Tools-External-Libraries

```

but don’t see a pencil in the top right. Should I be in a different place or do I need to login somewhere?

---

<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:** [January 12, 2017, 8:55pm UTC](https://discourse.julialang.org/t/cant-install-julia-5-0-via-git-on-amazon-ec2-instance/1444/11 "2017-01-12T20:55:20Z")

</div>

You need to navigate to the README file itself:

> <https://github.com/JuliaLang/julia/blob/master/README.md>
