title: YouCompleteMe Installation Problems
body: <p>I am trying to install YouCompleteMe on my university server which runs Debian Linux(in my user home).
  When I run:</p>
  
  <pre><code>./install.sh
  </code></pre>
  
  <p>I get the following error after the "Building CXX object" stage.</p>
  
  <pre><code>[ 98%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ycm_core.cpp.o
  [100%] Building CXX object     ycm/CMakeFiles/ycm_client_support.dir/versioning.cpp.o
  [100%] Building CXX object ycm/CMakeFiles/ycm_client_support.dir/ycm_client_support.cpp.o
  Linking CXX shared library   /home/arenduc1/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_client_support.so
  /usr/bin/ld: /home/arenduc1/lib/../lib/libpython2.7.a(abstract.o): relocation   R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a   shared object; recompile with -fPIC
  /home/arenduc1/lib/../lib/libpython2.7.a: could not read symbols: Bad value
  collect2: error: ld returned 1 exit status
  make[3]: ***    [/home/arenduc1/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_client_support.so]    Error 1
  make[2]: *** [ycm/CMakeFiles/ycm_client_support.dir/all] Error 2
  make[2]: *** Waiting for unfinished jobs....
  Linking CXX shared library   /home/arenduc1/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.so
  /usr/bin/ld: /home/arenduc1/lib/../lib/libpython2.7.a(abstract.o): relocation   R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a   shared object; recompile with -fPIC
  /home/arenduc1/lib/../lib/libpython2.7.a: could not read symbols: Bad value
  collect2: error: ld returned 1 exit status
  make[3]: ***   [/home/arenduc1/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.so] Error 1
  make[2]: *** [ycm/CMakeFiles/ycm_core.dir/all] Error 2
  make[1]: *** [ycm/CMakeFiles/ycm_support_libs.dir/rule] Error 2
  make: *** [ycm_support_libs] Error 2
  Traceback (most recent call last):
    File "/home/arenduc1/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py", line 196, in &lt;module&gt;
      Main()
    File "/home/arenduc1/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py", line 189, in Main
      BuildYcmdLibs( GetCmakeArgs( args ) )
    File "/home/arenduc1/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py", line 152, in BuildYcmdLibs
  _err = sys.stderr )
    File "/home/arenduc1/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/sh/sh.py",   line 1021, in __call__
      return RunningCommand(cmd, call_args, stdin, stdout, stderr)
    File    "/home/arenduc1/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/sh/sh.py",   line 486, in __init__
      self.wait()
    File   "/home/arenduc1/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/sh/sh.py",  line 500, in wait
      self.handle_command_exit_code(exit_code)
    File  "/home/arenduc1/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/sh/sh.py",  line 516, in handle_command_exit_code
      raise exc(self.ran, self.process.stdout, self.process.stderr)
  sh.ErrorReturnCode_2:
  
    RAN: '/usr/bin/make -j 2 ycm_support_libs'
  
    STDOUT:
    STDERR:
  </code></pre>
  
  <p>The error message says "recomile using -fPIC" what must I recompile? Thank you.</p>