title: Unable to install Python-Rocksdb on Ubuntu 18.04
body: <p>My commands for installing rocksdb were:</p>
  
  <pre><code>apt-get install build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev
  git clone https://github.com/facebook/rocksdb.git
  cd rocksdb
  mkdir build &amp;&amp; cd build
  cmake ..
  make
  make install-shared INSTALL_PATH=/usr
  cd ..
  make install-shared INSTALL_PATH=/usr
  apt-get install python-virtualenv python-dev librocksdb-dev
  pip3 install python-rocksdb
  </code></pre>
  
  <p>I have also tried to install python-rocksdb using virtualenv.</p>
  
  <p>Regardless of types of attempts, I get the following error:</p>
  
  <pre><code>error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  
      ----------------------------------------
  Command "/home/aviral/dev/rocksdb/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-5kagbe5y/python-rocksdb/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-n3jza3pc/install-record.txt --single-version-externally-managed --compile --install-headers /home/aviral/dev/rocksdb/venv/include/site/python3.6/python-rocksdb" failed with error code 1 in /tmp/pip-install-5kagbe5y/python-rocksdb/
  </code></pre>
  
  <p>The full error is <a href="https://pastebin.com/sU5shmzE" rel="nofollow noreferrer">here</a>.</p>