| <!DOCTYPE html> |
| |
| <!--- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| http://www.apache.org/licenses/LICENSE-2.0 |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| <html lang=" en"><head> |
| <meta charset="utf-8"> |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| <meta name="viewport" content="width=device-width, initial-scale=1"> |
| <link href="/versions/1.9.1/assets/img/mxnet-icon.png" rel="icon" type="image/png"><!-- Begin Jekyll SEO tag v2.6.1 --> |
| <title>OSX Setup | Apache MXNet</title> |
| <meta name="generator" content="Jekyll v3.8.6" /> |
| <meta property="og:title" content="OSX Setup" /> |
| <meta property="og:locale" content="en_US" /> |
| <meta name="description" content="A flexible and efficient library for deep learning." /> |
| <meta property="og:description" content="A flexible and efficient library for deep learning." /> |
| <link rel="canonical" href="https://mxnet.apache.org/versions/1.9.1/get_started/osx_setup" /> |
| <meta property="og:url" content="https://mxnet.apache.org/versions/1.9.1/get_started/osx_setup" /> |
| <meta property="og:site_name" content="Apache MXNet" /> |
| <script type="application/ld+json"> |
| {"description":"A flexible and efficient library for deep learning.","headline":"OSX Setup","@type":"WebPage","url":"https://mxnet.apache.org/versions/1.9.1/get_started/osx_setup","@context":"https://schema.org"}</script> |
| <!-- End Jekyll SEO tag --> |
| <link rel="stylesheet" href="/versions/1.9.1/assets/docsearch.min.css" /><link rel="stylesheet" href="/versions/1.9.1/assets/main.css"><link type="application/atom+xml" rel="alternate" href="https://mxnet.apache.org/versions/1.9.1/feed.xml" title="Apache MXNet" /><!-- Matomo --> |
| <script> |
| var _paq = window._paq = window._paq || []; |
| /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ |
| /* We explicitly disable cookie tracking to avoid privacy issues */ |
| _paq.push(['disableCookies']); |
| _paq.push(['trackPageView']); |
| _paq.push(['enableLinkTracking']); |
| (function() { |
| var u="https://analytics.apache.org/"; |
| _paq.push(['setTrackerUrl', u+'matomo.php']); |
| _paq.push(['setSiteId', '23']); |
| var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; |
| g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); |
| })(); |
| </script> |
| <!-- End Matomo Code --> |
| |
| <script src="/versions/1.9.1/assets/js/jquery-3.3.1.min.js"></script> |
| <script src="/versions/1.9.1/assets/js/docsearch.min.js"></script><script src="/versions/1.9.1/assets/js/globalSearch.js" defer></script> |
| <script src="/versions/1.9.1/assets/js/clipboard.js" defer></script> |
| <script src="/versions/1.9.1/assets/js/copycode.js" defer></script></head> |
| <body><header class="site-header" role="banner"> |
| |
| <script> |
| $(document).ready(function () { |
| |
| // HEADER OPACITY LOGIC |
| |
| function opacity_header() { |
| var value = "rgba(4,140,204," + ($(window).scrollTop() / 300 + 0.4) + ")" |
| $('.site-header').css("background-color", value) |
| } |
| |
| $(window).scroll(function () { |
| opacity_header() |
| }) |
| opacity_header(); |
| |
| // MENU SELECTOR LOGIC |
| $('.page-link').each( function () { |
| if (window.location.href.includes(this.href)) { |
| $(this).addClass("page-current"); |
| } |
| }); |
| }) |
| </script> |
| <div class="wrapper"> |
| <a class="site-title" rel="author" href="/versions/1.9.1/"><img |
| src="/versions/1.9.1/assets/img/mxnet_logo.png" class="site-header-logo"></a> |
| <nav class="site-nav"> |
| <input type="checkbox" id="nav-trigger" class="nav-trigger"/> |
| <label for="nav-trigger"> |
| <span class="menu-icon"> |
| <svg viewBox="0 0 18 15" width="18px" height="15px"> |
| <path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/> |
| </svg> |
| </span> |
| </label> |
| <div class="gs-search-border"> |
| <div id="gs-search-icon"></div> |
| <form id="global-search-form"> |
| <input id="global-search" type="text" title="Search" placeholder="Search" /> |
| <div id="global-search-dropdown-container"> |
| <button class="gs-current-version btn" type="button" data-toggle="dropdown"> |
| <span id="gs-current-version-label">1.9.1</span> |
| <svg class="gs-dropdown-caret" viewBox="0 0 32 32" class="icon icon-caret-bottom" aria-hidden="true"> |
| <path class="dropdown-caret-path" d="M24 11.305l-7.997 11.39L8 11.305z"></path> |
| </svg> |
| </button> |
| <ul class="gs-opt-group gs-version-dropdown"> |
| |
| |
| <li class="gs-opt gs-versions">master</li> |
| |
| |
| |
| <li class="gs-opt gs-versions active">1.9.1</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">1.8.0</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">1.7.0</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">1.6.0</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">1.5.0</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">1.4.1</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">1.3.1</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">1.2.1</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">1.1.0</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">1.0.0</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">0.12.1</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">0.11.0</li> |
| |
| |
| </ul> |
| </div> |
| <span id="global-search-close">x</span> |
| </form> |
| </div> |
| <div class="trigger"> |
| <div id="global-search-mobile-border"> |
| <div id="gs-search-icon-mobile"></div> |
| <input id="global-search-mobile" placeholder="Search..." type="text"/> |
| <div id="global-search-dropdown-container-mobile"> |
| <button class="gs-current-version-mobile btn" type="button" data-toggle="dropdown"> |
| <svg class="gs-dropdown-caret" viewBox="0 0 32 32" class="icon icon-caret-bottom" aria-hidden="true"> |
| <path class="dropdown-caret-path" d="M24 11.305l-7.997 11.39L8 11.305z"></path> |
| </svg> |
| </button> |
| <ul class="gs-opt-group gs-version-dropdown-mobile"> |
| |
| |
| <li class="gs-opt gs-versions">master</li> |
| |
| |
| |
| <li class="gs-opt gs-versions active">1.9.1</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">1.8.0</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">1.7.0</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">1.6.0</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">1.5.0</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">1.4.1</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">1.3.1</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">1.2.1</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">1.1.0</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">1.0.0</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">0.12.1</li> |
| |
| |
| |
| <li class="gs-opt gs-versions">0.11.0</li> |
| |
| |
| </ul> |
| </div> |
| </div> |
| <a class="page-link" href="/versions/1.9.1/get_started">Get Started</a> |
| <a class="page-link" href="/versions/1.9.1/features">Features</a> |
| <a class="page-link" href="/versions/1.9.1/ecosystem">Ecosystem</a> |
| <a class="page-link" href="/versions/1.9.1/api">Docs & Tutorials</a> |
| <a class="page-link" href="/versions/1.9.1/trusted_by">Trusted By</a> |
| <a class="page-link" href="https://github.com/apache/mxnet">GitHub</a> |
| <div class="dropdown" style="min-width:100px"> |
| <span class="dropdown-header">Apache |
| <svg class="dropdown-caret" viewBox="0 0 32 32" class="icon icon-caret-bottom" aria-hidden="true"><path class="dropdown-caret-path" d="M24 11.305l-7.997 11.39L8 11.305z"></path></svg> |
| </span> |
| <div class="dropdown-content" style="min-width:250px"> |
| <a href="https://www.apache.org/foundation/">Apache Software Foundation</a> |
| <a href="https://www.apache.org/licenses/">License</a> |
| <a href="/versions/1.9.1/api/faq/security.html">Security</a> |
| <a href="https://privacy.apache.org/policies/privacy-policy-public.html">Privacy</a> |
| <a href="https://www.apache.org/events/current-event">Events</a> |
| <a href="https://www.apache.org/foundation/sponsorship.html">Sponsorship</a> |
| <a href="https://www.apache.org/foundation/thanks.html">Thanks</a> |
| </div> |
| </div> |
| <div class="dropdown"> |
| <span class="dropdown-header">1.9.1 |
| <svg class="dropdown-caret" viewBox="0 0 32 32" class="icon icon-caret-bottom" aria-hidden="true"><path class="dropdown-caret-path" d="M24 11.305l-7.997 11.39L8 11.305z"></path></svg> |
| </span> |
| <div class="dropdown-content"> |
| <a href="/">master</a> |
| <a class="dropdown-option-active" href="/versions/1.9.1/">1.9.1</a> |
| <a href="/versions/1.8.0/">1.8.0</a> |
| <a href="/versions/1.7.0/">1.7.0</a> |
| <a href="/versions/1.6.0/">1.6.0</a> |
| <a href="/versions/1.5.0/">1.5.0</a> |
| <a href="/versions/1.4.1/">1.4.1</a> |
| <a href="/versions/1.3.1/">1.3.1</a> |
| <a href="/versions/1.2.1/">1.2.1</a> |
| <a href="/versions/1.1.0/">1.1.0</a> |
| <a href="/versions/1.0.0/">1.0.0</a> |
| <a href="/versions/0.12.1/">0.12.1</a> |
| <a href="/versions/0.11.0/">0.11.0</a> |
| </div> |
| </div> |
| </div> |
| </nav> |
| </div> |
| </header> |
| <main class="page-content" aria-label="Content"> |
| <script> |
| |
| </script> |
| <article class="post"> |
| |
| <header class="post-header wrapper"> |
| <h1 class="post-title">OSX Setup</h1> |
| <h3></h3><a style="float:left; margin-top:20px" href="/versions/1.9.1/get_started" class="btn btn-action">Get Started |
| <span class="span-accented">›</span></a></header> |
| |
| <div class="post-content"> |
| <div class="wrapper"> |
| <!--- Licensed to the Apache Software Foundation (ASF) under one --> |
| |
| <!--- or more contributor license agreements. See the NOTICE file --> |
| |
| <!--- distributed with this work for additional information --> |
| |
| <!--- regarding copyright ownership. The ASF licenses this file --> |
| |
| <!--- to you under the Apache License, Version 2.0 (the --> |
| |
| <!--- "License"); you may not use this file except in compliance --> |
| |
| <!--- with the License. You may obtain a copy of the License at --> |
| |
| <!--- http://www.apache.org/licenses/LICENSE-2.0 --> |
| |
| <!--- Unless required by applicable law or agreed to in writing, --> |
| |
| <!--- software distributed under the License is distributed on an --> |
| |
| <!--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --> |
| |
| <!--- KIND, either express or implied. See the License for the --> |
| |
| <!--- specific language governing permissions and limitations --> |
| |
| <!--- under the License. --> |
| |
| <h1 id="installing-mxnet-from-source-on-os-x-mac">Installing MXNet from source on OS X (Mac)</h1> |
| |
| <p>The following installation instructions are for building MXNet from source. For |
| instructions to build MXNet from source on other platforms, see the general |
| <a href="build_from_source">Build From Source guide</a>.</p> |
| |
| <p>Instead of building from source, you can install a binary version of MXNet. For |
| that, please follow the information at <a href="get_started">Get Started</a>.</p> |
| |
| <p>Building MXNet from source is a two-step process:</p> |
| |
| <ol> |
| <li>Build the shared library from the MXNet C++ source code.</li> |
| <li>(optional) Install the supported language-specific packages for MXNet.</li> |
| </ol> |
| |
| <p>If you plan to build with GPU, you need to set up the environment for CUDA and |
| cuDNN. Please follow the <a href="https://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html">NVIDIA CUDA Installation Guide for Mac OS |
| X</a> and |
| <a href="https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html#install-mac">cuDNN Installation |
| Guide</a>. |
| Note that CUDA stopped supporting macOS in 2019 and future versions of CUDA may |
| not support macOS.</p> |
| |
| <h2 id="contents">Contents</h2> |
| |
| <ul> |
| <li><a href="#build-mxnet-from-source">Build the MXNet shared library from source</a></li> |
| <li><a href="#installing-language-packages-for-mxnet">Install Language Packages</a> |
| |
| <ul> |
| <li><a href="#install-the-mxnet-package-for-r">R</a></li> |
| <li><a href="#install-the-mxnet-package-for-julia">Julia</a></li> |
| <li><a href="#install-the-mxnet-package-for-scala">Scala</a></li> |
| <li><a href="#install-the-mxnet-package-for-java">Java</a></li> |
| <li><a href="#install-the-mxnet-package-for-perl">Perl</a></li> |
| <li><a href="#contributions">Contributions</a></li> |
| <li><a href="#next-steps">Next Steps</a></li> |
| </ul></li> |
| </ul> |
| |
| <p><hr></p> |
| |
| <h2 id="build-the-mxnet-shared-library-from-source">Build the MXNet shared library from source</h2> |
| |
| <p>On OS X, you need the following dependencies:</p> |
| |
| <p><strong>Step 1:</strong> Install prerequisite packages.</p> |
| <div class="highlight"><pre><code class="language-bash" data-lang="bash"><span class="c"># Install OS X Developer Tools</span> |
| xcode-select <span class="nt">--install</span> |
| |
| <span class="c"># Install Homebrew</span> |
| /usr/bin/ruby <span class="nt">-e</span> <span class="s2">"</span><span class="si">$(</span>curl <span class="nt">-fsSL</span> https://raw.githubusercontent.com/Homebrew/install/master/install<span class="si">)</span><span class="s2">"</span> |
| |
| <span class="c"># Install dependencies</span> |
| brew <span class="nb">install </span>cmake ninja ccache opencv |
| </code></pre></div> |
| <p><code>opencv</code> is an optional dependency. You can delete it from above <code>brew install</code> |
| line and build MXNet without OpenCV support by setting <code>USE_OPENCV</code> to <code>OFF</code> in |
| the configuration file described below.</p> |
| |
| <p><strong>Step 2:</strong> Download MXNet sources and configure</p> |
| |
| <p>Clone the repository:</p> |
| <div class="highlight"><pre><code class="language-bash" data-lang="bash">git clone <span class="nt">--recursive</span> https://github.com/apache/mxnet.git mxnet |
| <span class="nb">cd </span>mxnet |
| <span class="nb">cp </span>config/darwin.cmake config.cmake |
| </code></pre></div> |
| <p>Please edit the config.cmake file based on your needs. The file contains a |
| series of <code>set(name value CACHE TYPE "Description")</code> entries. For example, to |
| build without Cuda, change <code>set(USE_CUDA ON CACHE TYPE "Build with CUDA |
| support")</code> to <code>set(USE_CUDA OFF CACHE TYPE "Build with CUDA support")</code>.</p> |
| |
| <p>For a GPU-enabled build make sure you have installed the <a href="#cuda-dependencies">CUDA dependencies |
| first</a>). When building a GPU-enabled build on a machine |
| without GPU, MXNet build can't autodetect your GPU architecture and will target |
| all available GPU architectures. Please set the <code>MXNET_CUDA_ARCH</code> variable in |
| <code>config.cmake</code> to your desired cuda architecture to speed up the build.</p> |
| |
| <p>To (optionally) build with MKL math library, please install MKL first based on |
| the guide in <a href="build_from_source#math-library-selection">Math Library Selection</a>.</p> |
| |
| <p><strong>Step 3:</strong> Build MXNet core shared library.</p> |
| <div class="highlight"><pre><code class="language-bash" data-lang="bash"><span class="nb">rm</span> <span class="nt">-rf</span> build |
| <span class="nb">mkdir</span> <span class="nt">-p</span> build <span class="o">&&</span> <span class="nb">cd </span>build |
| cmake .. |
| cmake <span class="nt">--build</span> <span class="nb">.</span> |
| </code></pre></div> |
| <p>Specify <code>cmake --build . --parallel N</code> to set the number of parallel compilation |
| jobs. Default is derived from CPUs available.</p> |
| |
| <p>After a successful build, you will find the <code>libmxnet.dylib</code> in the <code>build</code> |
| folder in your MXNet project root. <code>libmxnet.dylib</code> is required to install |
| language bindings described in the next section.</p> |
| |
| <p><hr></p> |
| |
| <h2 id="installing-language-packages-for-mxnet">Installing Language Packages for MXNet</h2> |
| |
| <p>After you have installed the MXNet core library. You may install MXNet interface |
| packages for the programming language of your choice: |
| - <a href="#install-mxnet-for-python">Python</a> |
| - <a href="#install-the-mxnet-package-for-c++">C++</a> |
| - <a href="#install-the-mxnet-package-for-clojure">Clojure</a> |
| - <a href="#install-the-mxnet-package-for-julia">Julia</a> |
| - <a href="#install-the-mxnet-package-for-perl">Perl</a> |
| - <a href="#install-the-mxnet-package-for-r">R</a> |
| - <a href="#install-the-mxnet-package-for-scala">Scala</a> |
| - <a href="#install-the-mxnet-package-for-java">Java</a></p> |
| |
| <p><hr></p> |
| |
| <h3 id="install-mxnet-for-python">Install MXNet for Python</h3> |
| |
| <p>To install the MXNet Python binding navigate to the root of the MXNet folder then run the following:</p> |
| <div class="highlight"><pre><code class="language-bash" data-lang="bash"><span class="nb">cd </span>python |
| pip <span class="nb">install</span> <span class="nt">--user</span> <span class="nt">-e</span> <span class="nb">.</span> |
| </code></pre></div> |
| <p>Note that the <code>-e</code> flag is optional. It is equivalent to <code>--editable</code> and means |
| that if you edit the source files, these changes will be reflected in the |
| package installed.</p> |
| |
| <h3 id="install-the-mxnet-package-for-c">Install the MXNet Package for C++</h3> |
| |
| <p>Refer to the <a href="c_plus_plus">C++ Package setup guide</a>. |
| <hr></p> |
| |
| <h3 id="install-the-mxnet-package-for-clojure">Install the MXNet Package for Clojure</h3> |
| |
| <p>Refer to the <a href="https://github.com/apache/mxnet/tree/master/contrib/clojure-package">Clojure setup guide</a>. |
| <hr></p> |
| |
| <h3 id="install-the-mxnet-package-for-r">Install the MXNet Package for R</h3> |
| |
| <p>Run the following commands to install the MXNet dependencies and build the MXNet |
| R package.</p> |
| <div class="highlight"><pre><code class="language-r" data-lang="r"><span class="w"> </span><span class="n">Rscript</span><span class="w"> </span><span class="o">-</span><span class="n">e</span><span class="w"> </span><span class="s2">"install.packages('devtools', repo = 'https://cran.rstudio.com')"</span><span class="w"> |
| </span></code></pre></div><div class="highlight"><pre><code class="language-bash" data-lang="bash"> <span class="nb">cd </span>R-package |
| Rscript <span class="nt">-e</span> <span class="s2">"library(devtools); library(methods); options(repos=c(CRAN='https://cran.rstudio.com')); install_deps(dependencies = TRUE)"</span> |
| <span class="nb">cd</span> .. |
| make <span class="nt">-f</span> R-package/Makefile rpkg |
| </code></pre></div> |
| <h2 id="install-the-mxnet-package-for-julia">Install the MXNet Package for Julia</h2> |
| |
| <p>The MXNet package for Julia is hosted in a separate repository, MXNet.jl, which is available on <a href="https://github.com/dmlc/MXNet.jl">GitHub</a>. To use Julia binding it with an existing libmxnet installation, set the <code>MXNET_HOME</code> environment variable by running the following command:</p> |
| <div class="highlight"><pre><code class="language-bash" data-lang="bash"> <span class="nb">export </span><span class="nv">MXNET_HOME</span><span class="o">=</span>/<path to>/libmxnet |
| </code></pre></div> |
| <p>The path to the existing libmxnet installation should be the root directory of libmxnet. In other words, you should be able to find the <code>libmxnet.so</code> file at <code>$MXNET_HOME/lib</code>. For example, if the root directory of libmxnet is <code>~</code>, you would run the following command:</p> |
| <div class="highlight"><pre><code class="language-bash" data-lang="bash"> <span class="nb">export </span><span class="nv">MXNET_HOME</span><span class="o">=</span>/~/libmxnet |
| </code></pre></div> |
| <p>You might want to add this command to your <code>~/.bashrc</code> file. If you do, you can install the Julia package in the Julia console using the following command:</p> |
| <div class="highlight"><pre><code class="language-julia" data-lang="julia"> <span class="n">Pkg</span><span class="o">.</span><span class="n">add</span><span class="x">(</span><span class="s">"MXNet"</span><span class="x">)</span> |
| </code></pre></div> |
| <p>For more details about installing and using MXNet with Julia, see the <a href="/versions/1.9.1/api/julia">MXNet Julia documentation</a>.</p> |
| |
| <h3 id="install-the-mxnet-package-for-scala">Install the MXNet Package for Scala</h3> |
| |
| <p>To use the MXNet-Scala package, you can acquire the Maven package as a dependency.</p> |
| |
| <p>Further information is in the <a href="scala_setup">MXNet-Scala Setup Instructions</a>.</p> |
| |
| <p>If you use IntelliJ or a similar IDE, you may want to follow the <a href="/versions/1.9.1/api/scala/docs/tutorials/mxnet_scala_on_intellij">MXNet-Scala on IntelliJ tutorial</a> instead.</p> |
| |
| <h3 id="install-the-mxnet-package-for-perl">Install the MXNet Package for Perl</h3> |
| |
| <p>Before you build MXNet for Perl from source code, you must complete <a href="#build-the-shared-library">building the shared library</a>. |
| After you build the shared library, run the following command from the MXNet source root directory to build the MXNet Perl package:</p> |
| <div class="highlight"><pre><code class="language-bash" data-lang="bash"> brew <span class="nb">install </span>swig |
| <span class="nb">sudo </span>sh <span class="nt">-c</span> <span class="s1">'curl -L https://cpanmin.us | perl - App::cpanminus'</span> |
| <span class="nb">sudo </span>cpanm <span class="nt">-q</span> <span class="nt">-n</span> PDL Mouse Function::Parameters Hash::Ordered PDL::CCS |
| |
| <span class="nv">MXNET_HOME</span><span class="o">=</span><span class="k">${</span><span class="nv">PWD</span><span class="k">}</span> |
| <span class="nb">export </span><span class="nv">PERL5LIB</span><span class="o">=</span><span class="k">${</span><span class="nv">HOME</span><span class="k">}</span>/perl5/lib/perl5 |
| |
| <span class="nb">cd</span> <span class="k">${</span><span class="nv">MXNET_HOME</span><span class="k">}</span>/perl-package/AI-MXNetCAPI/ |
| perl Makefile.PL <span class="nv">INSTALL_BASE</span><span class="o">=</span><span class="k">${</span><span class="nv">HOME</span><span class="k">}</span>/perl5 |
| make |
| install_name_tool <span class="nt">-change</span> lib/libmxnet.so <span class="se">\</span> |
| <span class="k">${</span><span class="nv">MXNET_HOME</span><span class="k">}</span>/lib/libmxnet.so <span class="se">\</span> |
| blib/arch/auto/AI/MXNetCAPI/MXNetCAPI.bundle |
| make <span class="nb">install |
| |
| cd</span> <span class="k">${</span><span class="nv">MXNET_HOME</span><span class="k">}</span>/perl-package/AI-NNVMCAPI/ |
| perl Makefile.PL <span class="nv">INSTALL_BASE</span><span class="o">=</span><span class="k">${</span><span class="nv">HOME</span><span class="k">}</span>/perl5 |
| make |
| install_name_tool <span class="nt">-change</span> lib/libmxnet.so <span class="se">\</span> |
| <span class="k">${</span><span class="nv">MXNET_HOME</span><span class="k">}</span>/lib/libmxnet.so <span class="se">\</span> |
| blib/arch/auto/AI/NNVMCAPI/NNVMCAPI.bundle |
| make <span class="nb">install |
| |
| cd</span> <span class="k">${</span><span class="nv">MXNET_HOME</span><span class="k">}</span>/perl-package/AI-MXNet/ |
| perl Makefile.PL <span class="nv">INSTALL_BASE</span><span class="o">=</span><span class="k">${</span><span class="nv">HOME</span><span class="k">}</span>/perl5 |
| make <span class="nb">install</span> |
| </code></pre></div> |
| <h2 id="contributions">Contributions</h2> |
| |
| <p>You are more than welcome to contribute easy installation scripts for other operating systems and programming languages. |
| See the <a href="/versions/1.9.1/community/contribute">community contributions page</a> for further information.</p> |
| |
| <h2 id="next-steps">Next Steps</h2> |
| |
| <ul> |
| <li><a href="/versions/1.9.1/api">Tutorials</a></li> |
| <li><a href="/versions/1.9.1/api/faq/add_op_in_backend">How To</a></li> |
| <li><a href="/versions/1.9.1/api/architecture/overview">Architecture</a></li> |
| </ul> |
| |
| </div> |
| </div> |
| |
| </article> |
| |
| </main><footer class="site-footer h-card"> |
| <div class="wrapper"> |
| <div class="row"> |
| <div class="col-4"> |
| <h4 class="footer-category-title">Resources</h4> |
| <ul class="contact-list"> |
| <li><a href="/versions/1.9.1/community/contribute#mxnet-dev-communications">Mailing lists</a></li> |
| <li><a href="https://cwiki.apache.org/confluence/display/MXNET/Apache+MXNet+Home">Developer Wiki</a></li> |
| <li><a href="https://issues.apache.org/jira/projects/MXNET/issues">Jira Tracker</a></li> |
| <li><a href="https://github.com/apache/mxnet/labels/Roadmap">Github Roadmap</a></li> |
| <li><a href="https://medium.com/apache-mxnet">Blog</a></li> |
| <li><a href="https://discuss.mxnet.io">Forum</a></li> |
| <li><a href="/versions/1.9.1/community/contribute">Contribute</a></li> |
| </ul> |
| </div> |
| |
| <div class="col-4"><ul class="social-media-list"><li><a href="https://github.com/apache/mxnet"><svg class="svg-icon"><use xlink:href="/versions/1.9.1/assets/minima-social-icons.svg#github"></use></svg> <span class="username">apache/mxnet</span></a></li><li><a href="https://www.twitter.com/apachemxnet"><svg class="svg-icon"><use xlink:href="/versions/1.9.1/assets/minima-social-icons.svg#twitter"></use></svg> <span class="username">apachemxnet</span></a></li><li><a href="https://youtube.com/apachemxnet"><svg class="svg-icon"><use xlink:href="/versions/1.9.1/assets/minima-social-icons.svg#youtube"></use></svg> <span class="username">apachemxnet</span></a></li></ul> |
| </div> |
| |
| <div class="col-4 footer-text"> |
| <p>A flexible and efficient library for deep learning.</p> |
| </div> |
| </div> |
| </div> |
| </footer> |
| <footer class="site-footer2"> |
| <div class="wrapper"> |
| <div class="row"> |
| <div class="col-3"> |
| <img src="/versions/1.9.1/assets/img/asf_logo.svg" class="footer-logo col-2"> |
| </div> |
| <div class="footer-bottom-warning col-9"> |
| </p><p>"Copyright © 2017-2022, The Apache Software Foundation. Licensed under the Apache License, Version 2.0. Apache MXNet, MXNet, Apache, the Apache |
| feather, and the Apache MXNet project logo are either registered trademarks or trademarks of the |
| Apache Software Foundation."</p> |
| </div> |
| </div> |
| </div> |
| </footer> |
| |
| |
| |
| |
| </body> |
| |
| </html> |