title: Chef installing uwsgi libiconv.so.2 no such file or directory
body: <p>I am trying to setup a Django server with <code>uwsgi</code>. When installing just <code>uwsgi</code> using <a href="https://github.com/poise/poise-python" rel="nofollow noreferrer"><code>poise-python</code></a> with the following recipe:</p>
  
  <pre><code>python_runtime '3'
  
  python_package 'uwsgi' do
      python '3'
  end
  </code></pre>
  
  <p>When I login to the machine and just run <code>uwsgi</code> without any options, it will throw an error:</p>
  
  <pre><code>uwsgi: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>I checked the libraries and <code>libiconv.so.2</code> was not installed as so:</p>
  
  <pre><code>sudo ldconfig -p | grep libiconv
  </code></pre>
  
  <p>However, when I reinstall it as follows:</p>
  
  <pre><code>sudo pip uninstall uwsgi
  sudo pip install uwsgi
  </code></pre>
  
  <p>The <code>uwsgi</code> command works again. What is weird is that when I check if <code>libiconv.so.2</code> is installed, it is still not installed.</p>
  
  <p>How should I tell chef to install <code>uwsgi</code> properly without using <code>execute</code> to run the commands I did?</p>
  
  <p>Note: I am using test kitchen and the virtual environment has been reset before running any commands. The os is debian 8.6.</p>