Re: [PHP] question about compiling a portable web server for linux

[email protected] (Ashley Sheridan)
Newsgroups php.general
Message-ID <1281149839.2235.41.camel@localhost>
On Sat, 2010-08-07 at 10:43 +0800, lainme wrote:

> thanks for the reply. I know it is not a PHP problem.  And I want to know
> whether it is possible to make it architecture independent.
> 
> On Sat, Aug 7, 2010 at 10:38 AM, Ashley Sheridan
> <[email protected]>wrote:
> 
> >  On Sat, 2010-08-07 at 10:22 +0800, lainme wrote:
> >
> > Hi, I recently compiled a portable portable web server for linux, using
> > lighttpd and php.
> >
> > But it seems that php can only run on machine with the same glibc version
> > compiled it.  How can I solve the problem?
> >
> >
> > It's not a PHP problem. If you compile something, it's compiled to the same
> > architecture that you specify, which by default is yours. have you tried
> > compiling your executable with the same setup as you're currently using?
> >
> >   Thanks,
> > Ash
> > http://www.ashleysheridan.co.uk
> >
> >
> >


You can't compile to be architecture independent. The best you can do is
convert a language to a byte-code, like java.

Thanks,
Ash
http://www.ashleysheridan.co.uk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.