Sto costruendo il plugin YouCompleteMe
di vim, seguendo questo document. Quando corro make
ottengo il seguente errore.Errore di libpython durante la creazione di YouCompleteMe
Linking CXX shared library /home/sagar/.vim/bundle/YouCompleteMe/python/ycm_core.so
/usr/bin/ld: /usr/local/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
/usr/local/lib/libpython2.7.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
Qual è l'errore?
Ho installato pyenv per gestire le versioni Python. Sta causando problemi?
Prova a compilarlo con '-fPIC'. Dovresti anche avere le librerie Python 2.7 disponibili. – bosnjak
@Lawrence ha provato a compilare con '-fPIC' non funziona, lo stesso errore. –