aaronmarkham commented on a change in pull request #15454: [WIP] Julia docs
URL: https://github.com/apache/incubator-mxnet/pull/15454#discussion_r301751246
 
 

 ##########
 File path: docs/install/ubuntu_setup.md
 ##########
 @@ -310,25 +310,86 @@ Refer to the [Clojure setup 
guide](https://github.com/apache/incubator-mxnet/tre
 
 ### Install the MXNet Package for Julia
 
-The MXNet package for Julia is hosted in a separate repository, MXNet.jl, 
which is available on [GitHub](https://github.com/dmlc/MXNet.jl). To use Julia 
binding it with an existing libmxnet installation, set the ```MXNET_HOME``` 
environment variable by running the following command:
+#### Install Julia
+The package available through `apt-get` is old and not compatible with the 
latest version of MXNet.
+Fetch the latest version (1.0.3 at the time of this writing).
 
 ```bash
-    export MXNET_HOME=/<path to>/libmxnet
+wget -qO julia-10.tar.gz 
https://julialang-s3.julialang.org/bin/linux/x64/1.0/julia-1.0.3-linux-x86_64.tar.gz
 ```
 
-The path to the existing libmxnet installation should be the root directory of 
libmxnet. In other words, you should be able to find the ```libmxnet.so``` file 
at ```$MXNET_HOME/lib```. For example, if the root directory of libmxnet is 
```~```, you would run the following command:
+Place the extracted files somewhere like a julia folder in your home dir.
 
 ```bash
-    export MXNET_HOME=/~/libmxnet
+mkdir ~/julia
+mv julia-10.tar.gz ~/julia
+cd ~/julia
+tar xvf julia-10.tar.gz
 ```
 
-You might want to add this command to your ```~/.bashrc``` file. If you do, 
you can install the Julia package in the Julia console using the following 
command:
+Test Julia.
+```bash
+cd julia-1.0.3/bin
+julia -e 'using InteractiveUtils; versioninfo()'
+```
+
+If you're still getting the old version, remove it.
+```bash
+sudo apt remove julia
+```
+
+Update your PATH to have Julia's new location. Add this to your `.zshrc`, 
`.bashrc` or `.bash_profile`.
+```bash
+export PATH=~/julia/julia-1.0.3/bin:$PATH
+```
+
+Validate your PATH.
+```bash
+echo $PATH
+```
+
+Validate Julia works and is the expected version.
+```bash
+julia -e 'using InteractiveUtils; versioninfo()'
+```
+
+#### Setup Your MXNet-Julia Environment
 
 Review comment:
   These steps come from CI's runtime_functions.sh:
   
https://github.com/apache/incubator-mxnet/blob/master/ci/docker/runtime_functions.sh#L1059-L1073
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to