Re: Packaging for distribution?
| From: | BDKR | Date: | Sat, 15 May 2004 01:29:04 +0000 |
| Subject: | Re: Packaging for distribution? | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-4492@lists.php.net to get a copy of this message | ||
Ben Ramsey wrote:
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:Anyway, it's still beta so I wouldn't suggest reliance upon it as a vaible solution at this time. Just thought I'd tease you a bit. Cheers, BDKRThere is a company by the name of Roadsend that is working on a compiler that will result in executables that can be run on machines that don't have PHP installed. It's in Beta 2 with Beta 3 coming soon. I've been beta testing it for a couple of months now and it'a actually rather cool. There are still areas where the performance is actually worse than the Zend engine (considering it's compiled), but it's way to early in development to hold that against them. Besides, creating a compiler for a dynamically typed language is extremely difficult by comparison to a language like C.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.