Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51705 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16007 invoked from network); 15 Mar 2011 20:50:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2011 20:50:26 -0000 Authentication-Results: pb1.pair.com header.from=tokul@users.sourceforge.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=tokul@users.sourceforge.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain users.sourceforge.net from 77.240.252.9 cause and error) X-PHP-List-Original-Sender: tokul@users.sourceforge.net X-Host-Fingerprint: 77.240.252.9 avilys.eik.lt Linux 2.6 Received: from [77.240.252.9] ([77.240.252.9:41874] helo=avilys.eik.lt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C8/B4-03183-F01DF7D4 for ; Tue, 15 Mar 2011 15:50:24 -0500 Received: from avilys.eik.lt (avilys.local [127.0.0.1]) by avilys.eik.lt (Postfix) with ESMTP id 5478A1F519A for ; Tue, 15 Mar 2011 22:44:19 +0200 (EET) Received: from 86.38.183.62 (NaSMail authenticated user tomas@topolis.lt) by avilys.eik.lt with HTTP; Tue, 15 Mar 2011 22:44:19 +0200 (EET) Message-ID: <50863.5626b73e.1300221859.nsm@avilys.eik.lt> In-Reply-To: References: Date: Tue, 15 Mar 2011 22:44:19 +0200 (EET) To: internals@lists.php.net User-Agent: NaSMail/1.7.1 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] Package php binaries + php script into one single executable file From: tokul@users.sourceforge.net ("Tomas Kuliavas") 2011.03.15 22:09 Olivier Hoareau rašė: > Hi ! > > I would like to be able to "distribute" (freely) a single executable > (binary) containing : > > - php binaries (v 5.3+) > - a php script already packaged as a .phar (1 Mb, requiring PHP 5.3+) > - additional (optional) compiled extensions > - php.ini > - all other resources required by the php executable to run > > The aim is to be able to provide a command line tool based on PHP but not > requiring my user to install PHP *before* using the tool (and only > download > the tool as a single executable file to execute it) > I would like my users to be able to use this "packaged" tool (requiring > PHP > 5.3+) whatever version of PHP my users have already installed (or not) on > their system. > > Targeted platforms are : > > - windows (XP / Vista / 7) => 70% of my users > - linux debian-like (ubuntu / debian) => 20% of my users > - other platforms => 10% of my users > > At this point, this is not a problem for me to have a huge self-executable > file (> 10Mb). > I need to be able to package a version of the tool using a batch (or > script), as I am using continuous integration. > > Do you have ideas on how to reach this goal ? > The tool is open source, using New BSD License (currently, in beta > version). Create .deb package and make it dependent on PHP for Debian/Ubuntu. Debian has docs and tools that allow to do that. PHP is in standard Debian/Ubuntu software repository. Distribute .phar package alone for users who already have PHP. List PHP extensions your package depends on. Create automated installer for Windows which downloads PHP from the network. See microsoft web platform installer for more ideas. IMHO your package license is not compatible with PHP license. You can't distribute PHP with BSD license. -- Tomas