[SOLVED] ImportError: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib/libpq.so.5)
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
/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).
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.