title: How to properly install MariaDB Connector/C and mariadb python package on NVIDIA Jetson?
body: <p>I'm failing to get MariaDB Connecter/C and the mariadb python package properly installed and cooperating on an NVIDIA Jetson AGX Xavier. Apparently the <code>.so</code> files ends up in a location where the python package cannot find it. How can I correct this? Here are the steps I'm currently taking...</p>
  <ol>
  <li>Download and untar the source tarball from <a href="https://downloads.mariadb.org/connector-c/" rel="nofollow noreferrer">here</a>.</li>
  <li>Build and install MariaDB Connector/C</li>
  </ol>
  <pre><code>mkdir build
  cd build
  cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local
  make
  sudo make install
  </code></pre>
  <p>This installs the library files in <code>/usr/local/lib/mariadb</code>.</p>
  <pre><code>gatekeeper@gatekeeper-agx02:/usr/local/lib/mariadb$ ls
  libmariadbclient.a  libmariadb.so  libmariadb.so.3  plugin
  </code></pre>
  <ol start="3">
  <li>Install the python package</li>
  </ol>
  <pre><code>pip install mariadb
  </code></pre>
  <p>Then, when I start python and try to import the mariadb package I get this error:</p>
  <pre><code>gatekeeper@gatekeeper-agx02:~$ python
  Python 3.6.9 (default, Jan 26 2021, 15:33:00) 
  [GCC 8.4.0] on linux
  Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
  &gt;&gt;&gt; import mariadb
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
    File &quot;/home/gatekeeper/.local/lib/python3.6/site-packages/mariadb/__init__.py&quot;, line 10, in &lt;module&gt;
      from ._mariadb import (
  ImportError: libmariadb.so.3: cannot open shared object file: No such file or directory
  </code></pre>
  <p>How can I change the library installation directory (and to what path name?) or point the python package the correct location?</p>