08-11-2005, 03:23 PM I posted the below thread in UNIX for dummies Questions and Answers.
I thank the guy who posted a proposition to resolve my problem.
I decided to repost the problem here. Who knows
So, here it goes:
Since a week ago I put myself many troubles.
I decide to install Solaris 7, in a sun sparcstation 5, with raid5.
And I don't know almost anything about unix systems, not only Solaris.
I want to install mysql, apache, php4.
I'm not sure if I have installed correctly mysql and apache, but
if the informations which I gathered from internet (google ) are correct,
I have many good possibilities.
Since 4 or 5 days I've stucked in php4 Configuration (not even 'make').
My next post would be my total configuration, since now, like mysql, apache installation, and the required programs.
Thanks for reading this thread
Installing Mysql
-----------------------
# groupadd mysql
# useradd -d /usr/local/mysql mysql
in '/etc/passwd' change mysql's shell with 'nologin'
# cd mysql...[version]
# ./configure --prefix=/usr/local/mysql
or
#./configure --prefix=/usr/local/mysql --with-extra-charsets=complex --enable-thread-safe-client --enable-local-infile --enable-assembler --with-named-z-libs=no --with-named-curses-libs=-lcurses --disable-shared CXX=gcc
#make
#make clean (when errors,warnings come out with 'make')
#make install
# /usr/local/mysql/bin/mysql_install_db
# chown -R mysql /usr/local/mysql/var
# chgrp -R mysql /usr/local/mysql/var
# /usr/local/mysql/bin//mysqld_safe --user=mysql &
# /usr/local/mysql/bin/mysqladmin -u root password ...
# /usr/local/mysql/bin/mysqladmin -u admin password ...
creation of my.cnf in folder /usr/local/mysql/var
cp (from redhat ) greek.conf in folder /usr/local/mysql/share/mysql/charsets
# ./bin/mysqld --defaults-file=<MySQL Databasedirectry>/my.cnf \
--basedir=<MySQL Basedirectory>\
--datadir=<MySQL Databasedirectory>\
--user=mysql --pid-file=<MySQL Databasedirectory>/mysqld.pid &
Required programs
------------------
tcsh-6.08.00-sol7-sparc-local.tar.gz
bash-3.0-sol7-sparc-local.tar.gz
zlib-1.2.2.tar.gz
gcc-3.4.2-sol7-sparc-local.tar.gz
gzip-1.3.5-sol7-sparc-local.tar.gz
make-3.80-sol7-sparc-local.tar.gz
ncurses-5.4-sol7-sparc-local.gz
ncurses-5.4.tar.gz
perl-5.8.5.tar.gz
m4-1.4.2.tar.gz
autoconf-2.59.tar.gz
bison-1.28.tar.gz
flex_2.5.4_hpux_ia64_src.tar.gz
openssl-0.9.7g.tar.gz
zlib1.2.3
Installing Apache
-------------------------
Required w4,autoconf,bison,flex,openssl,libtool,db (Berkeley)
#setenv CFLAGS="-I /usr/local/BerkeleyDB.3.3/include"
#setenv LDFLAGS="-L /usr/local/BerkeleyDB.3.3/lib -R"
#ln -s /usr/local/BerkeleyDB.3.3/lib/libdb-3.3.so /usr/lib/libdb-3.3.so
#ln -s /usr/ccs/bin/ld /usr/bin/ld
# ./configure --with-layout=Apache --prefix=/usr/local/apache --enable-module=all --disable-module=auth_db
Installing php-4.3.11
--------------------
since now , only the configuration below:
#./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql --prefix=/usr/local/apache/php --with-config-file-path=/usr/local/apache/php --enable-force-cgi-redirect --with-zlib --with-zlib-dir=/usr/local/zlib-1.2.3 --enable-libgcc --enable-track-vars
and this configuration, after several minutes provides the below error:
Configuring extensions
checking for OpenSSL support... no
checking for Kerberos support... no
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... /usr/local/zlib-1.2.3
checking for gzgets in -lz... no
configure: error: ZLIB extension requires zlib >= 1.0.9
Thanks again.
Quote:
Originally Posted by Unbeliever
It looks like you have a problem with zlinb. You seem to have downloaded and installed various precompiled solaris packages (probably from Sunfreeware). I would get the zlib package from there as well and then remove
--with-zlib-dir=/usr/local/zlib-1.2.3
from your configure line
I removed this line '--with-zlib-dir=/usr/local/zlib-1.2.3' from configure,
but this time a new message comes up:
Configuring extensions
checking for OpenSSL support... no
checking for Kerberos support... no
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... no
configure: error: Cannot find libz
I would like to inform you that the path '/usr/local/zlib-1.2.3',
is where zlib has been installed (not the source file, or package).
All the sources, and packages are in /usr/local/src folder.
And cause of that I wonder if I have to execute another command (for instance, ln -s for making links for the libs of zlib-1.2.3's folder).
Zlib, for a reason which I cannot remember now, I couldn't install it by package, so I used the source. But I downloaded them (sources, packages) from Sunfreeware , as you said.
Thanks anyway!
After many configurations, and a lot of support of friends of mine,
at source folder of php-4.3.11, config.log file writes that,
configure:15211: checking whether utime accepts a null argument
configure:15232: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -L/usr/ucblib -L/usr/ucblib conftest.c 1>&5
ld: fatal: relocation error: R_SPARC_32: file /var/tmp//ccCdeGlp.o: symbol <unknown>: offset 0xef371747 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file /var/tmp//ccCdeGlp.o: symbol <unknown>: offset 0xef37174b is non-aligned
ld: fatal: relocation error: R_SPARC_32: file /var/tmp//ccCdeGlp.o: symbol <unknown>: offset 0xef37174f is non-aligned
ld: fatal: relocation error: R_SPARC_32: file /var/tmp//ccCdeGlp.o: symbol <unknown>: offset 0xef371c6f is non-aligned
and many many more same fatal arrors for 'ld'
And of cource I don't know what to do
Edit/Delete Message
I'm sorry for the size of the thread.
And thank you.