-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got an error while building with CMake -Python2.7.a: error adding symbols #1699
Comments
See issue #1639. Your python is certainly not built with the |
Well, finally solved this issue. I will explain my experience briefly. I had to reinstall Ubuntu 14.04 because I messed up python libraries. You need to rebuild python. In order to do that I strongly recommend to replace pre-installed python with your new one. I did not want to take any risk so I build python 2.7.6 with
source: http://askubuntu.com/questions/101591/how-do-i-install-python-2-7-2-on-ubuntu You NEED gocode. -in my case I was trying to use YCM for go-lang auto completion and I missed this point form the installation guide- Here you can find installation instruction for gocode: https://github.com/nsf/gocode after these you can easily build and use. For Pathogen users like me 0- make sure your Vim has python support. To see that Sorry for mess, as I mentioned before I am new to Linux environment. Now YCM works without any issues. |
Hi,
First of all, thank you for developing this kind of application to improve our productivity. I am new to Linux environment and new to vim as well.
I am trying to use YCM but i cannot build it at the moment. I got an error at 90% while building with CMake. The error was:
/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: error adding symbols: Bad value collect2: error: ld returned 1 exit status make[3]: *** [/home/ibrahim/.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
`Eventually i built YCM, after that i get some error from vim
Error detected while processing function youcompleteme#Enable..<SNR>69_SetUpPython: line 34: Traceback (most recent call last): Press ENTER or type command to continue Error detected while processing function youcompleteme#Enable..<SNR>69_SetUpPython: line 34: File "<string>", line 30, in <module> Press ENTER or type command to continue Error detected while processing function youcompleteme#Enable..<SNR>69_SetUpPython: line 34: File "/home/ibrahim/.vim/bundle/YouCompleteMe/autoload/../python/ycm/youcompleteme.py", line 32, in <module> Press ENTER or type command to continue Error detected while processing function youcompleteme#Enable..<SNR>69_SetUpPython: line 34: from ycm.omni_completer import OmniCompleter Press ENTER or type command to continue Error detected while processing function youcompleteme#Enable..<SNR>69_SetUpPython: line 34: File "/home/ibrahim/.vim/bundle/YouCompleteMe/autoload/../python/ycm/omni_completer.py", line 22, in <module> Press ENTER or type command to continue Error detected while processing function youcompleteme#Enable..<SNR>69_SetUpPython: line 34: from ycmd.completers.completer import Completer Press ENTER or type command to continue Error detected while processing function youcompleteme#Enable..<SNR>69_SetUpPython: line 34: File "/home/ibrahim/.vim/bundle/YouCompleteMe/autoload/../third_party/ycmd/ycmd/completers/completer.py", line 25, in <module> Press ENTER or type command to continue Error detected while processing function youcompleteme#Enable..<SNR>69_SetUpPython: line 34: from ycm_client_support import FilterAndSortCandidates Press ENTER or type command to continue Error detected while processing function youcompleteme#Enable..<SNR>69_SetUpPython: line 34: ImportError: /home/ibrahim/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_client_support.so: undefined symbol: PyUnicodeUCS2_FromEncoded Object
`The text was updated successfully, but these errors were encountered: