Forums

Hans
Hans
Offline
Resolved
0 votes
I am trying to install Python 2.7.11 by using pyenv for a specific user. It's needed for some applications I want to use. During installation it warns about:
Installing Python-2.7.11...
WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?
WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?
WARNING: The Python sqlite3 extension was not compiled. Missing the SQLite3 lib?
Installed Python-2.7.11 to /home/user/.pyenv/versions/2.7.11


Specific packages missing are: bzip2-devel, readline-devel and sqlite-devel

Anyone know in what repos I can find them to install them safely?
Monday, January 11 2016, 02:18 PM
Share this post:
Responses (6)
  • Accepted Answer

    Hans
    Hans
    Offline
    Thursday, January 14 2016, 02:04 PM - #Permalink
    Resolved
    0 votes
    Wasn't happy with the outcome and removed the alias.
    Did
    # yum info sqlite-devel --enablerepo=*

    Name        : sqlite-devel
    Arch : x86_64
    Version : 3.6.20
    Release : 1.el6_7.2
    Size : 283 k
    Repo : installed
    From repo : clearos-centos-updates
    Summary : Development tools for the sqlite3 embeddable SQL database engine
    URL : http://www.sqlite.org/
    License : Public Domain
    Description : This package contains the header files and development documentation
    : for sqlite. If you like to develop programs using sqlite, you will need
    : to install sqlite-devel.


    and it installed without any errors.
    The reply is currently minimized Show
  • Accepted Answer

    Hans
    Hans
    Offline
    Wednesday, January 13 2016, 08:33 PM - #Permalink
    Resolved
    0 votes
    Solved it by pointing to sqlite of the standard ClearOS python 2.6 version.

    ln -s /usr/lib64/python2.6/lib-dynload/_sqlite3.so /home/user/.pyenv/versions/2.7.11/lib/python2.7/lib-dynload/
    The reply is currently minimized Show
  • Accepted Answer

    Hans
    Hans
    Offline
    Monday, January 11 2016, 08:49 PM - #Permalink
    Resolved
    0 votes
    That rules out some of the errors but it needs the non x64 version of sqlite.
    yum install sqlite-devel --enablerepo=clearos-centos --exclude=*.i686
    Loaded plugins: clearcenter-marketplace, fastestmirror
    ...
    --> Running transaction check
    ---> Package sqlite-devel.x86_64 0:3.6.20-1.el6 will be installed
    --> Processing Dependency: sqlite = 3.6.20-1.el6 for package: sqlite-devel-3.6.20-1.el6.x86_64
    --> Finished Dependency Resolution
    Error: Package: sqlite-devel-3.6.20-1.el6.x86_64 (clearos-centos)
    Requires: sqlite = 3.6.20-1.el6
    Installed: sqlite-3.6.20-1.el6_7.2.x86_64 (@clearos-updates)
    sqlite = 3.6.20-1.el6_7.2
    Available: sqlite-3.6.20-1.el6.x86_64 (clearos)
    sqlite = 3.6.20-1.el6
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest
    The reply is currently minimized Show
  • Accepted Answer

    Monday, January 11 2016, 07:02 PM - #Permalink
    Resolved
    0 votes
    Not the right answer but you can try adding "--exclude=*.i686" to your yum command.
    The reply is currently minimized Show
  • Accepted Answer

    Hans
    Hans
    Offline
    Monday, January 11 2016, 04:29 PM - #Permalink
    Resolved
    0 votes
    I get the following issue. Why does it want 32 bit version of sqlite?

    Resolving Dependencies
    --> Running transaction check
    ---> Package sqlite-devel.x86_64 0:3.6.20-1.el6 will be installed
    --> Processing Dependency: sqlite = 3.6.20-1.el6 for package: sqlite-devel-3.6.20-1.el6.x86_64
    --> Running transaction check
    ---> Package sqlite.i686 0:3.6.20-1.el6 will be installed
    --> Processing Dependency: libreadline.so.6 for package: sqlite-3.6.20-1.el6.i686
    --> Processing Dependency: libpthread.so.0(GLIBC_2.2) for package: sqlite-3.6.20-1.el6.i686
    --> Processing Dependency: libpthread.so.0(GLIBC_2.1) for package: sqlite-3.6.20-1.el6.i686
    --> Processing Dependency: libpthread.so.0(GLIBC_2.0) for package: sqlite-3.6.20-1.el6.i686
    --> Processing Dependency: libpthread.so.0 for package: sqlite-3.6.20-1.el6.i686
    --> Processing Dependency: libdl.so.2(GLIBC_2.1) for package: sqlite-3.6.20-1.el6.i686
    --> Processing Dependency: libdl.so.2(GLIBC_2.0) for package: sqlite-3.6.20-1.el6.i686
    --> Processing Dependency: libdl.so.2 for package: sqlite-3.6.20-1.el6.i686
    --> Processing Dependency: libc.so.6(GLIBC_2.4) for package: sqlite-3.6.20-1.el6.i686
    --> Running transaction check
    ---> Package glibc.i686 0:2.12-1.166.el6 will be installed
    --> Processing Dependency: glibc-common = 2.12-1.166.el6 for package: glibc-2.12-1.166.el6.i686
    --> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.12-1.166.el6.i686
    --> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.166.el6.i686
    ---> Package readline.i686 0:6.0-4.el6 will be installed
    --> Processing Dependency: libtinfo.so.5 for package: readline-6.0-4.el6.i686
    --> Running transaction check
    ---> Package glibc.i686 0:2.12-1.166.el6 will be installed
    --> Processing Dependency: glibc-common = 2.12-1.166.el6 for package: glibc-2.12-1.166.el6.i686
    ---> Package ncurses-libs.i686 0:5.7-4.20090207.el6 will be installed
    ---> Package nss-softokn-freebl.i686 0:3.14.3-22.el6_6 will be installed
    --> Finished Dependency Resolution
    Error: Package: glibc-2.12-1.166.el6.i686 (clearos-centos)
    Requires: glibc-common = 2.12-1.166.el6
    Installed: glibc-common-2.12-1.166.el6_7.3.x86_64 (@clearos-updates)
    glibc-common = 2.12-1.166.el6_7.3
    Available: glibc-common-2.12-1.149.el6_6.5.x86_64 (clearos)
    glibc-common = 2.12-1.149.el6_6.5
    Available: glibc-common-2.12-1.166.el6.x86_64 (clearos-centos)
    glibc-common = 2.12-1.166.el6
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest
    The reply is currently minimized Show
  • Accepted Answer

    Hans
    Hans
    Offline
    Monday, January 11 2016, 02:30 PM - #Permalink
    Resolved
    0 votes
    Oops, should have tried harder before posting question.
    bzip2-devel and readline-devel found, both in clearos-centos repo.

    Also sqlite-devel is there but having hard time installing. Lots of dependency problems.
    The reply is currently minimized Show
Your Reply