Re: Packaging for distribution?

From: Date: Fri, 14 May 2004 00:37:29 +0000
Subject: Re: Packaging for distribution?
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4473@lists.php.net to get a copy of this message
That's not quite the direction I'm going for. The RPM is probably closer to the right idea, but I'm leaning toward not even needing them to install anything. Is it possible to zip up the correct files, have them download the folder, unzip, and then execute your php script without having to install anything--even if php is not installed on their system? Ben Decapode Azur wrote:
I swear I saw this somewhere on the PHP-GTK Web site (or perhaps elsewhere), but I'm looking for instructions on how to "package" your executable php script so that you can distribute it to people who may not have php and/or the gtk libraries installed on their system. In a sense, the package should install gtk for them if they don't have it, and I guess it would include a PHP binary for them, as well. Anyway, the point is: is there a way to distribute your php-gtk apps to users who don't have php--and make it work "out of the box"?
You could build a RPM or a PEAR package. With RPM, if the dependence are not on the system if the user uses an installer such as urpmi, it will install the dependence just fine. To build a RPM package, you have to write a SPEC file to generate the package, you will find documentations about this with google. With a PEAR package I don't know if pear -install will get the PECL dependencies, ask to pear list.
-- Regards, Ben Ramsey http://benramsey.com --------------------------------------------------- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or to join the movement. ---------------------------------------------------

« previous php.gtk.general (#4473) next »