Let me say this about that, been there, done that.
With the help of various people on this list I managed to get mine working.
Attached are the steps I used.
Enjoy.
Gerardo Blanco wrote:
> I am using SCO 5 OpenServer and Apache 1.3.14
> I am trying to compile php-4.0.4pl1
> and I receive this error message:
>
> Making all in Zend
> Making all in main
> Making all in ext
> Making all in mysql
>
> cc -I. -I/u/Software/PHP/php-4.0.4pl1/ext/mysql -I/u/Software/PHP/php-4
> .0.4pl1/main -I/u/Software/PHP/php-4.0.4pl1 -I/Software/Apache/apache_1.3.14
> /src
> /include -I/Software/Apache/apache_1.3.14/src/os/unix -I/u/Software/PHP/php-
> 4.0.
> 4pl1/Zend -I/usr/local/mysql/include -I/u/Software/PHP/php-4.0.4pl1/ext/xml/
> expa
> t/xmltok -I/u/Software/PHP/php-4.0.4pl1/ext/xml/expat/xmlparse -I/u/Software
> /PHP
> /php-4.0.4pl1/TSRM -DXML_BYTE_ORDER=12 -g -belf -c php_mysql.c && touch
> php_my
> sql.lo
> "/usr/local/mysql/include/mysql.h", line 100: error: invalid type
> combination
> "php_mysql.c", line 164: warning: no macro replacement within a string
> literal
> *** Error code 1 (bu21)
> *** Error code 1 (bu21)
> *** Error code 1 (bu21)
> *** Error code 1 (bu21)
>
> Any ideas ?
>
> Thanks
>
> --
>
> Ing. Gerardo Blanco Vazquez
> www.gatelink.net
> [EMAIL PROTECTED]
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
Regards
Frank S. Bernhardt
b.c.s.i.
14 Halton Court
Markham, ON.
L3P 6R3
905-471-1691 Voice
905-471-3016 FAX
[EMAIL PROTECTED]
Hi all. I finally got my apache/php4/mysql under SCO 5.0.5 sorted out thanks to the
help of:
"Paul Gardiner" <[EMAIL PROTECTED]>
"Grimes, Dean" <[EMAIL PROTECTED]>
I was missing a number of things (other than my sanity) such as libraries, patches and
paths.
Dean sent me a list of things he did in order to get his going. I made some slight
adjustments
to the instructions.
Here they are. They reflect my current configuration.
I hope they help someone else out there.
Operating system: SCO OpenServer 5.0.5
Step #1: Install SCO Development Kit
Version: 5.1.1A
1. Insert SCO OpenServer 5.0.5 Install CD
2. custom
3. Select Software
4. Select Install New
5. Select From (system_name)
6. Select Media Device: CD-ROM Drive 0
7. Tag the SCO OpenServer Development System (ver 5.1.1A)
8. Select Install
Step #2: Install Patches/Updates:
rs505a - Release Supplement for SCO OpenServer
rs505a - Software Manager Supplement
oss497a - Core OS Supplement
oss497c - Core OS Supplement
oss600a - Year 2000 Supplement for RS505A
oss459b - COFF Linker Supplement
oss499a - rs505a Elf Linker Fix
"You will need to install the COFF Linker patch. You probably don't need the
Elf Linker .... But what the hay... It only takes a minute. Also, you most
likely won't need the Pentium patch either unless you do update your CPU
microcode and it is a pentium; we do. Aside from those two patches, you
should install all of the others. The only ones that matter as far as order
goes is the rs505a and the oss600a. The others can be installed in any
order. But... You need to remember the order incase you need to remove a
patch, because patches have to be removed in the order in which they were
installed. Otherwise, you will have to uninstall ALL patches down to the
basic OS and then reinstall any necessary patches. If you are not sure of
the order your current patches were installed, then you should just remove
them all and then reinstall all appropriate patches and make note of the
install order for the future. You do not need to reinstall Unix, only remove
all patches and reinstall all patches." - The "c" version fixes a bug that causes
MySQL to
have problems. I have attached the "c" version with this email." - Dean
I also have installed: Graphics Library v1.5
Ncurses v4.2
UDK compatability modeule v5.0.5A
gdbm-1.7.3
Step #3: Install GNU make
Version: 3.78.1
1. download the source from: ftp://prep.ai.mit.edu/pub/gnu/make
2. un-tar it into /usr/local
3. cd /usr/local/make-3.78.1
4. ./configure
5. make
6. make install
OR
Download the gmake v3.78.1 from SCO's web site and install as a VOL
I used the second method.
Step #4: Install FSU-pthreads
Version: 3.5c
1. Download the package from: http://www.mysql.com/downloads/os-sco.html
(I got mine from Dean; the one from SCO was no good)
2. un-tar it into /usr/local
3. cd /usr/local/FSU-pthreads-3.5c
4. cp lib/* ../lib
5. cp -r include/* ../include
6. ln -s /usr/local/lib/libgthreads.so /usr/lib/libgthreads.so
"The "c" version fixes a bug that causes MySQL to have problems." - Dean
Step #5: Install bison
Version: 1.28
1. Download the package from: ftp://prep.ai.mit.edu/pub/gnu/bison
2. un-tar it into /usr/local
1. cd /usr/local/bison-1.28
2. configure
3. make
4. make install
Step #6. Install GNU gcc compiler
Version: 2.95.2
1. Download the package from: ftp://prep.ai.mit.edu/pub/gnu/gcc
2. un-tar it into /usr/local
3. cd /usr/local/gcc-2.95.2
4. configure
5. make bootstrap LANGUAGES="c c++"
6. make install LANGUAGES="c c++"
OR
Download the gcc 2.95.2pl1 from SCO's web site and install as a VOL
"I had problems compiling MySQL with the Skunkware version. I could compile
PHP and Apache but not MySQL. However, after compiling gcc from scratch all
of my problems went away." - Dean
I did not have this problem with the Skunkware download.
Step #7: Install zlib
Version: 1.1.3
1. Download the package (I got mine from Dean; I'm not sure why I needed this)
2. un-tar it into /usr/local
1. cd /usr/local/zlib-1.1.3
2. configure
3. make
4. make install
5. ln -s /usr/local/lib/libz.so /usr/lib/libz.so
Step #8: Set PATH, LD_LIBRARY_PATH, LIBPATH and MANPATH (assuming all work done in
root)
Set Environment Variables:
1. vi /.profile
2. PATH=/usr/local/bin:/bin:/usr/bin:/etc:/usr/local/mysql/bin: \
/usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2
3. LD_LIBRARY_PATH=/usr/lib:/usr/ccs/lib:/lib:/usr/local/lib: \
/usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2
4. LIBPATH=/usr/lib:/usr/ccs/lib:/lib:/usr/local/lib: \
/usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2
5. MANPATH=scohelp:/usr/man:/usr/local/man
Step #9: Install MySQL
Version: 3.23.27
1. Download the package from: http://www.mysql.com/downloads/mysql-3.23.html
(I used the beta version show waaayyyy at the bottom of the page)
2. un-tar it into /usr/local
3. cd /usr/local/mysql-3.23.27-beta-pc-sco3.2v5.0.5-i386
4. read and follow instructions in INSTALL-BINARY
5. configure --prefix=/usr/local/mysql
6. make
7. make install
(mine ran without doing 8 - 10)
8. ln -s /usr/local/mysql/lib/libmysqlclient.s10
/usr/local/lib/libmysqlclient.s10
9. cd /usr/local/bin
10. ln -s /usr/local/mysql/bin/* .
11. mysql_install_db
12. cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d
13. chmod 500 /etc/init.d/mysql.server
14. ln -s /etc/init.d/mysql.server /etc/rc2.d/S99mysql
15. ln -s /etc/init.d/mysql.server /etc/rc0.d/S01mysql
16. copy /usr/local/mysql/support-files/my-(choose one).cnf /etc/my.cnf
Step #10: Configure Apache
Version: 1.3.14
1. cd /usr/local/apache_1.3.14
2. configure --prefix=/usr/local/apache
Step #11: Install PHP4
Version: 4.0.3pl1
1. Download the package from: http://www.php.net/downloads.php
2. un-tar it into /usr/local
1. cd /usr/local/php-4.0.3pl1
2. vi configure
3. search for all occurrences of -lmysqlclient
4. add -lz to each occurrence:
ex: MYSQL_SHARED_LIBADD "-lmysqlclient $MYSQL_SHARED_LIBADD"
change to: MYSQL_SHARED_LIBADD "-lmysqlclient -lz $MYSQL_SHARED_LIBADD"
5. save the configure file
6. rm config.cache
CC="gcc" \
./configure \
--with-apache=/usr/local/apache_1.3.14 \
--with-mysql=/usr/local/mysql-3.23.27-beta-pc-sco3.2v5.0.5-i386 \
--enable-track-vars \
--enable-sysvsem \
--enable-sysvshm
Step #12: Install Apache
Version: 1.3.14
1. cd /usr/local/apache_1.3.14
2. CC="gcc" \
./configure \
--prefix=/usr/local/apache \
--with-perl=/usr/local/bin/perl \
--enable-module=most \
--enable-shared=max \
--enable-module=info \
--enable-shared=info \
--enable-module=so \
--activate-module=src/modules/php4/libphp4.a \
--enable-suexec \
--suexec-safepath=/usr/local/bin/apache
4. make
5. make install
6. ln -s /usr/local/apache/bin/apachectl /etc/apache
7. ln -s /usr/local/apache/bin/apachectl /etc/init.d/apache
8. ln -s /usr/local/apache/bin/apachectl /etc/rc2.d/S96apache
I included db_auth and recompiled gdbm-1.7.3. When I "apachectl configtest" it
can't resolve db_open (same old problem). When I take db_auth out of httpd.conf it
configtest's ok. Future project.
To my recollection, the above is what I did. Understand though, this was done
over a 3 week period :-)
Enjoy!
S/MIME Cryptographic Signature