Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8207055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:52:55+00:00 2026-06-07T08:52:55+00:00

Pretty straight to the point I think. Is this do-able? Background: I’m doing this

  • 0

Pretty straight to the point I think. Is this do-able?

Background: I’m doing this because I need to run php-cgi on suse enterprise 9 and can’t get LD_PRELOAD or LD_LIBRARY_PATH to use other-than-system version of glibc.

php-cgi: /lib/tls/libc.so.6: version `GLIBC_2.7' not found

I downloaded 2.7 from here

http://rpmfind.net/linux/rpm2html/search.php?query=libc.so.6(GLIBC_2.7)

more precisely

ftp://rpmfind.net/linux/sourceforge/r/ro/roblinux/64-32_pkg/core/i686/glibc-2.7-2rt.i686.rpm

and unpacked it using rpm2cpio.

I need php-cgi because I can’t install php and want to try JavaBridge for running php out of tomcat.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T08:52:56+00:00Added an answer on June 7, 2026 at 8:52 am

    How can I compile php-cgi binary using a custom glibc for suse enterprise linux out of cygwin?

    Pretty straight to the point I think.

    No, a very confused and circuitous question.

    First, cygwin has absolutely nothing to do with your question: it’s for running UNIX programs on Windows, which is not at all what you are asking about.

    Second, your question appears to be: "how do I run pre-build php-cgi binary on a system that has older glibc than the one php-cgi has been built on?", and not about compiling anything.

    To that question, the answer is: you can’t (easily) — UNIX systems do not support forward binary compatibility (build on a new system, run on an older one). Only backward compatibility is supported (old dynamically-linked binaries continue to run on newer systems).

    Your best approach is to try to build php-cgi on your system (which would eliminate its dependency on GLIBC_2.7. If you can’t, you should still be able to run such a binary against unpacked glibc-2.7 build, if that binary doesn’t re-exec itself. The way to do that, assuming you unpacked glibc-2.7 into e.g. /tmp/glibc-2.7 is something like:

    /tmp/glibc-2.7/lib/ld-linux.so.2 --library-path \
        /tmp/glibc-2.7/lib:/lib:/usr/lib \
      /path/to/php-cgi <args>
    

    (The library path above may need some adjustments to make the loader find all the required libraries.)

    Update:

    is it practical to compile stuff for my linux box in cygwin

    It is possible, but significantly more pain then simply compiling on the linux box itself (and so isn’t really practical). You appear to lack any reason to want to do that, other than mis-guided belief that cygwin solves all problems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this may sound pretty straight forward, but still I want to post this question
This is pretty straight forward. EDIT: Updated question and added fourth echo. Here is
This seems like it should be pretty straight forward, but I'm apparently confused. I
I am trying to get my head around this query - seems pretty straight
Well, first of all sorry about this question it must be pretty straight forward
My web app, up until this point, has been fairly straight forward. I have
Ok at this point, I am pretty confused on how to construct my pagination
Does anyone know if SASS file extension is pretty much deprecated at this point
I'm pretty sure this is a straight up DNS question. Easy for most I
Pretty straight forward. In javascript, I need to check if a string contains any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.