Re: Rebuild Apache with options
On Wed, Mar 17, 2004 at 01:05:02PM +0100, Matthias Kurz wrote: And it would probably better to use openpkg build, wouldn't it ? openpkg build -Dapache::with_mod_php=yes -Dapache::with_mod_php_mysql=yes apache | sh Sure :) -- Michael van Elst Internet: [EMAIL PROTECTED] A potential Snark may lurk in every tree. __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: Rebuild Apache with options
I've remove the apache binary package that was installed, reboot the server, make certain /openpkg/RPM/TMP has enough disk space (4+Gig). The error message still appears, it seems like apache doesn't want to compile and something about %files file...no such file or directory. Where do I get the openpkg build --supposedly in the tools? but I don't see it at ftp.openpkg.org or do I need to get it someplace else? Thanks. - Mike On Wed, 17 Mar 2004, Mike's List wrote: Rebuild was going along just fine, until the errors (below). This happens to me when I attempted to do proftpd earlier but thought it might be just proftp specific (as the binary package keeps dumping core on me). Do I need to reboot the server to correct this or something more sinister? # openpkg rpm --rebuild --define 'with_mod_php yes' --define 'wi \ th_mod_php_mysql yes' ~mike/openpkg/src/apache-1.3.29-2.0.0.src.rpm compiling stuff here rpmtool:files: pass 1 (preparation and syntactical expansions) rpmtool:files: pass 2 (filesystem-based expansions) rpmtool:files: pass 3 (duplication removal and cleanup) + exit 0 Processing files: apache-1.3.29-2.0.0 error: Could not open %files file /openpkg/RPM/TMP/apache-1.3.29/files: No such file or directory RPM build errors: Could not open %files file /openpkg/RPM/TMP/apache-1.3.29/files: No such file or directory As you can see the directories are there. [EMAIL PROTECTED] /openpkg/RPM/TMP# ls -l total 4 drwxr-xr-x 5 root other512 Mar 17 06:36 apache-1.3.29 drwxr-xr-x 3 root other512 Mar 17 06:36 apache-1.3.29-root __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED] __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: Rebuild Apache with options
On Thu, Mar 18, 2004 at 10:06:06AM -0600, Mike's List wrote: Where do I get the openpkg build --supposedly in the tools? but I don't see it at ftp.openpkg.org or do I need to get it someplace else? As others pointed out, it is a PLUS package. openpkg build is a perl script that evaluates package dependencies and produces a shell script of rpm commands to install or update packages. It probably makes your life easier with OpenPKG, but it won't fix the %files problem you see. -- Michael van Elst Internet: [EMAIL PROTECTED] A potential Snark may lurk in every tree. __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: Rebuild Apache with options
On Wed, Mar 17, 2004, Michael van Elst wrote: On Wed, Mar 17, 2004 at 07:18:38AM +0100, Michael van Elst wrote: rpm --rebuild --define 'with_php yes' --define 'with_php_mysql yes' apache That should have been: 'with_mod_php yes' and 'with_mod_php_mysql yes'. And it would probably better to use openpkg build, wouldn't it ? openpkg build -Dapache::with_mod_php=yes -Dapache::with_mod_php_mysql=yes apache | sh One can also create a file $HOME/.openpkg/build and put those options in it (one option per line). (mk) BTW: There are no manual pages except openpkg.1 under CURRENT. And the manual pages for rpm are under .../libexec. But i think this is work in progress... -- Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47 Im prämotorischen Cortex kann jeder ein Held sein. (bdw) __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: Rebuild Apache with options
On Wed, Mar 17, 2004, Mike's List wrote: rpm --rebuild --define 'with_php yes' --define 'with_php_mysql yes' apache That should have been: 'with_mod_php yes' and 'with_mod_php_mysql yes'. And it would probably better to use openpkg build, wouldn't it ? openpkg build -Dapache::with_mod_php=yes -Dapache::with_mod_php_mysql=yes apache | sh One can also create a file $HOME/.openpkg/build and put those options in it (one option per line). # openpkg build -Dapache::with_mod_php=yes -Dapache::with_mod_php_mysql=yes \ apache | sh openpkg:ERROR: No such command build found in command path openpkg:ERROR: (/openpkg/libexec/openpkg). openpkg:ERROR: Set $OPENPKG_TOOLS_CMDPATH appropriately. openpkg:ERROR: Run /openpkg/bin/openpkg --help for list of valid commands. I don't see this build feature with openpkg. I saw rpmbuild when doing openpkg --help. Is this what you're referring to as build? openpkg build is provided by the openpkg-tool addon package. Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: Rebuild Apache with options
Do this: 1. openpkg rpm -ivh apache*src.rpm 2. vi %prefix/RPM/SRC/apache/apache.spec 3. make appropriate configure changes/additions 4. openpkg rpm -ba %prefix/RPM/SRC/apache/apache.spec 5. openpkg rpm -ivh $prefix/RPM/PKG/apache*.rpm Mike's List wrote: How do I build Apache with support for PHP/MySQL/IMAP and so on? Currently, I'm doing the following to install packages: openpkg rpm -rebuild /dir/source then openpkg rpm -Uvh build But I need more options for some of the software, my server platform is Solaris 9 and I need to get Squirrelmail and Horde/IMP for webmail system. Some of the instructions for Apache are as follows: ./configure --with-apache=source/apache1.3.12 \ --with-mysql=/usr/local/mysql --with-imap=source/imap-4.7c ...and then ./configure --activate-module=src/modules/php4/libphp4.a I need some of references and howtos for openpkg advance build features. I've installed Apache binary package, but there's no PHP support built in? as Squirrelmail does not displays the .php extension. Regards, - Mike __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED] -- David M. Fetter - UNIX Systems Administrator Portland State University - www.oit.pdx.edu __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: Rebuild Apache with options
Oh, and if you want more detail you can look at this doc I wrote on building RPM's. It wasn't originally meant for OpenPKG specifically but it still is the same concept. http://www.fetterconsulting.com/index.php?name=solarisrpm Mike's List wrote: How do I build Apache with support for PHP/MySQL/IMAP and so on? Currently, I'm doing the following to install packages: openpkg rpm -rebuild /dir/source then openpkg rpm -Uvh build But I need more options for some of the software, my server platform is Solaris 9 and I need to get Squirrelmail and Horde/IMP for webmail system. Some of the instructions for Apache are as follows: ./configure --with-apache=source/apache1.3.12 \ --with-mysql=/usr/local/mysql --with-imap=source/imap-4.7c ...and then ./configure --activate-module=src/modules/php4/libphp4.a I need some of references and howtos for openpkg advance build features. I've installed Apache binary package, but there's no PHP support built in? as Squirrelmail does not displays the .php extension. Regards, - Mike __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED] -- David M. Fetter - UNIX Systems Administrator Portland State University - www.oit.pdx.edu __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: Rebuild Apache with options
On Tue, 16 Mar 2004, David M. Fetter wrote: Do this: 1. openpkg rpm -ivh apache*src.rpm done 2. vi %prefix/RPM/SRC/apache/apache.spec I'm green with this options stuff but there are tons of lines with # packages options and many more lines of code, note, I'm not a programmer/developer. # package options (suexec related) # package options (suphp related) # package options (additionally used Apache modules; can be enabled without thinking) # package options (additionally used Apache modules; you have to know what you do) # fixing implicit inter-module dependencies and correlations 3. make appropriate configure changes/additions I guess I need to know where to make the appropriate configurations. I attempted to get to your website for reference but browser just hang. 4. openpkg rpm -ba %prefix/RPM/SRC/apache/apache.spec 5. openpkg rpm -ivh $prefix/RPM/PKG/apache*.rpm Mike's List wrote: How do I build Apache with support for PHP/MySQL/IMAP and so on? Currently, I'm doing the following to install packages: openpkg rpm -rebuild /dir/source then openpkg rpm -Uvh build But I need more options for some of the software, my server platform is Solaris 9 and I need to get Squirrelmail and Horde/IMP for webmail system. Some of the instructions for Apache are as follows: ./configure --with-apache=source/apache1.3.12 \ --with-mysql=/usr/local/mysql --with-imap=source/imap-4.7c ...and then ./configure --activate-module=src/modules/php4/libphp4.a I need some of references and howtos for openpkg advance build features. I've installed Apache binary package, but there's no PHP support built in? as Squirrelmail does not displays the .php extension. Regards, - Mike __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED] -- David M. Fetter - UNIX Systems Administrator Portland State University - www.oit.pdx.edu __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED] __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: Rebuild Apache with options
On Tue, Mar 16, 2004 at 07:35:12PM -0800, David M. Fetter wrote: Do this: 1. openpkg rpm -ivh apache*src.rpm 2. vi %prefix/RPM/SRC/apache/apache.spec 3. make appropriate configure changes/additions 4. openpkg rpm -ba %prefix/RPM/SRC/apache/apache.spec 5. openpkg rpm -ivh $prefix/RPM/PKG/apache*.rpm Not with OpenPKG. The OpenPKG spec files have conditional support for many additions that are activated by defining a macro. E.g. rpm --rebuild --define 'with_php yes' --define 'with_php_mysql yes' apache will build the apache package with both options included. -- Michael van Elst Internet: [EMAIL PROTECTED] A potential Snark may lurk in every tree. __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]