Fred wrote:
> At 16:06 27/01/2008 -0600, Darrick Hartman (lists) wrote:
>> I've added optional sqlite support to php.  If you select the sqlite 
>> package, it will also build sqlite support into php.  This is disabled by 
>> default.
> 
> I did both: Compiling SQLite as a library, and added "--with-sqlite" in 
> PHP5.mk file. But what I meant, is that it's gonna be hard to cross-compile 
> my progs in C on CentOS and copy them in AstLinux, as the libraries and 
> processor are different.
> 
> I ran "ldd myprog.exe" to check which dynamic libraries it used, then 
> simply copie them in /lib on AstLinux, but it fails with "wrong 
> instruction". I don't know if it's because of the diference in libraries 
> (libc6 on CentOS vs. uClinux's libc on AstLinux), or the fact that I'm 
> using an AMD i686 to run CentOS but a Pentium 233 to run AstLinux.
> 
> But anyway, I don't mind statically compiling the C programs. Once 
> stripped, it only takes 500KB.
> 
> If you ran out of things to do, you could check how to compile the CGI and 
> CLI versions of PHP ;-)

As Lonnie mentioned in an earlier email, php-cli is compiled.  php-cgi 
is currently installed as /usr/bin/php.

If you're building from the build environment, copy the file from 
sapi/cli/php to php-cli (put it on your key disk if you want for now).

I confirmed (using your test.php) that it works as you would expect and 
differently than the php(-cgi)

bash-3.00# php test.php
X-Powered-By: PHP/5.2.5
Content-type: text/html

test
bash-3.00# php-cli -q test.php
test
bash-3.00# cat test.php
<?php
echo "test \n";
?>

Darrick
-- 
Darrick Hartman
DJH Solutions, LLC
http://www.djhsolutions.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to