LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   ImportError: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib/libpq.so.5) (https://www.linuxquestions.org/questions/linux-server-73/importerror-lib-libc-so-6-version-%60glibc_2-14-not-found-required-by-usr-lib-libpq-so-5-a-4175581083/)

pg29 05-31-2016 05:59 AM

ImportError: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib/libpq.so.5)
 
I have to run a tornado webapp on a server using psycopg2 with postgresql as backend. I am working on Red Hat Enterprise Linux Server release 6.5. I set up a virtual environment for the entire process. Now, on this server, i don't have root access, i can't use pip, wget, yum and i can't copy text from the server(so i can't post the exact error log). I have been manually downloading tar files for the libraries and installing them. When i try to run the webapp, i get the following error:

ImportError: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /venv/usr/lib/libpq.so.5)

The version for libc.so.6 is 2.12. The error is displayed in psycopg2/init.py.

I looked around, and tried installing GLIBC-2.14 on the virtual environment but the server ran out of space during "make".

I apologize as this is not much to go on, but the server has a lot of restrictions and I am pretty new to Linux. Any help will be appreciated.

knudfl 05-31-2016 07:41 AM

/venv/usr/lib/libpq.so.5 : The file libpq.so.5 is from an old version of postgresql, like postgresql-libs-8.2.9-(1.fc7). I.e. a year 2009 version. But the requirement `GLIBC_2.14' indicates that your postgresql was compiled with a later OS. (A year 2011? OS). CentOS 6 is Fedora 12 based: Year 2010.

? Why not use the CentOS system version = postgresql-8.4.20 (Provides libpq.so.6).

pg29 05-31-2016 11:20 PM

Thank you, i switched the PostgreSQL version, it worked. Apparently PostgreSQL 9.3 is compatible as well. One question though(i am not sure if it is relevant here, forgive me if it isn't), if i host the tornado web app on a local machine, i can directly use localhost or 0.0.0.0 and the port address to access the front end. But if i am using a Linux server on a VM hosted somewhere else using Putty, what equivalent do i use?Or do i have to register a domain? Any help would be appreciated.

knudfl 06-01-2016 04:12 AM

Re #3.

Suggest : Start a new thread >>> How to use the "tornado web app".

Not many chances you get answers for "tornado web app" when the thread title is:
"" .. /lib/libc.so.6: version `GLIBC_2.14' not found .. ""

pg29 06-01-2016 04:26 AM

Hi,
Thank for the response. I kind of guessed that this is the wrong place to ask. Anyway, i figured out the way to use it via tunneling of port or port forwarding.


All times are GMT -5. The time now is 04:23 PM.