You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compiled python modules are linking to ubuntu's python library instead of pyenv's python version #82
By doing "ldd _sqlite3.so" found in tmp build directory, I noticed the compiled sqlite3 module is linking to Ubuntu's default python2.7, which does not have _PyInt_AsInt symbol, since it is not python 2.7.6.
Adding a note for anyone who wants to --enable-shared like myself,
I had pyenv inside /opt/pyenv. Therefore, I setup my shared library path like this: export LD_LIBRARY_PATH=/opt/pyenv/versions/2.7.6/lib:$LD_LIBRARY_PATH
be sure that LD_LIBRARY_PATH is a permanent entry in ~/.bashrc and not just during pyenv install 2.7.6.
I pushed 43212f6 which will set rpath if --enable-shared was given in PYTHON_CONFIGURE_OPTS. With this fix, just passing --enable-shared will resolve the issue.
Activity
yyuu commentedon Nov 21, 2013
You might need to set
LD_LIBRARY_PATHon GNU/Linux if you give--enable-sharedasCONFIGURE_OPTS. See also #66.ckhoo commentedon Nov 25, 2013
Thanks Yuu. Your reference (#66) works for me.
ckhoo commentedon Nov 26, 2013
Adding a note for anyone who wants to
--enable-sharedlike myself,I had pyenv inside
/opt/pyenv. Therefore, I setup my shared library path like this:export LD_LIBRARY_PATH=/opt/pyenv/versions/2.7.6/lib:$LD_LIBRARY_PATHbe sure that
LD_LIBRARY_PATHis a permanent entry in~/.bashrcand not just duringpyenv install 2.7.6.Pass rpath to linker if `--enable-shared` was given (#65, #66, #82)
yyuu commentedon Dec 20, 2013
I pushed 43212f6 which will set
rpathif--enable-sharedwas given inPYTHON_CONFIGURE_OPTS. With this fix, just passing--enable-sharedwill resolve the issue.lambdalisue commentedon Dec 24, 2013
👍
this commit saved me a lot. thanks
pyenv v0.4.0-20140110
pyenv v0.4.0-20140110.1
pyenv v0.4.0-20140110.1
pyenv v0.4.0-20140110.1
pyenv v0.4.0-20140110.1
pyenv v0.4.0-20140110.1
pyenv 0.4.0-20140110.1
pyenv 0.4.0-20140110.1
pyenv 0.4.0-20140110.1