Has anyone tried this yet, besides me?
Co-compiling Apache 2.0.52, PHP 5.0.2, MySQL 5.0.2
Miserable failures for Slackware, can't find sources, bad --prefix problems, fail to set permissions and put executables in proper directory, and so on.
Example, using --prefix=/Apache everything got put in that directory, so, no executables in /bin which is where they belong for Slackware. Commands were also not executable, and no symlinks were installed.
A week of reading all the documents didn't much help either.
There are more than ten directory options in these programs, with no explanation of which affects which files.
Does anyone have the list of default directories for Slackware 10?
From Apache Layout:
<Layout Slackware10>
prefix: /usr /* This looks like correct prefix fixes next line */
exec_prefix: ${prefix} /* checkgid was /usr/bin is /Apache/bin Fix This! */
bindir: ${prefix}/bin /* httpd here by mistake, prefix must have been /usr */
sbindir: ${prefix}/sbin /* Apach2 no /sbin went to /Apache/bin Needs Fix! */
libdir: ${prefix}/lib /* .so files in /Apache/lib not /usr/lib :is prefix */
libexecdir: ${prefix}/lib/apache /* httpd.exp in /usr/libexec/apache in /Apache/modules */
mandir: ${prefix}/man /* man pages in old/man and /Apache/man
sysconfdir: /etc/httpd/conf /* Slackware is /etc */
datadir: /var/www /* old/var/www/htdocs/ vs /Apache/htdocs/ */
installbuilddir: ${datadir}/build /* no Build for old binary. */
errordir: ${datadir}/error /* none in old binary for custom error pages */
iconsdir: ${datadir}/icons /* /var/www/icons/ vs /Apache/icons/ */
htdocsdir: ${datadir}/html /* /var/www/htdocs vs /Apache/htdocs old Redhat */
manualdir: ${datadir}/manual /* /var/www/manual/ vs /Apache/manual/ */
cgidir: ${datadir}/cgi-bin /* /var/www/cgi-bin vs /Apache/cgi-bin */
includedir: ${prefix}/include/apache /* old/usr/include/apache/ vs /Apache/include/ */
localstatedir: /var /* /var/httpd.pid vs /Apache/logs/httpd.pid ??? */
runtimedir: ${localstatedir}/run /* same as above line ??? */
logfiledir: ${localstatedir}/log/httpd /* /var/log/apache vs /Apache/logs/ */
proxycachedir: ${localstatedir}/cache/httpd /* /var/cache vs maybe tmp file ??? */
</Layout>
Another question is: do you have to have the binary version installed for these programs to find the .so files? That seems really stupid, Apache2 did compile and run, however, when I removed the old Apache, PHP, and MySQL. PHP couldn't find the .so files for mysql. And, although PHP said it compiled okay and gave lots of good output, there was no trace of PHP on the Slackware system! I mean, it was gone with the exception of the source directory. Does this mean that co-compiles are dependant on existing binary installs!!! Gee, bummer.
Correct this list if you know how.
Example: /var/named/run/host.pid went to /Apache/val/logs/host.pid
Don't even know how the original layout accomplished that!
Similarly, layouts for PHP and MySQL if anyone has them for Slackware.
Lastly, for all developers and gcc gurus: every compile should generate a "packing list," that is, exactly what files were installed, where, what files were removed, from where. That is Standard Operating Procedure!
No packing list with any of these compiles. Guess how many hours it takes to find out what the compile did?
Triple dog dare ya!
And that's my last post until I figure it out.
