My current apache has the following listing.
ls
admin bin cgi corefiles htdocs include logs manual openssl
build conf error icons lib man modules
It has httpd.conf inside the conf directory and many .so files inside the modules directory.
I tried to download apache latest version from
Download - The Apache HTTP Server Project
Unix Source: httpd-2.2.21.tar.gz [PGP ] [MD5 ] [SHA1 ]
However, the download does not contain the same directories as expected.
ls
ABOUT_APACHE INSTALL Makefile.win README.platforms buildconf emacs-style include os
Apache.dsw InstallBin.dsp NOTICE ROADMAP config.layout httpd.dep libhttpd.dep server
BuildAll.dsp LAYOUT NWGNUmakefile VERSIONING configure httpd.dsp libhttpd.dsp srclib
BuildBin.dsp LICENSE README acinclude.m4 configure.in httpd.mak libhttpd.mak support
CHANGES Makefile.in README-win32.txt build docs httpd.spec modules test
I understand that this may be the source, however need steps to get it look same as the existing listing.
vbe
January 4, 2012, 9:46am
2
This is asking for a compilation... do you have a c compiler installed?
To see what to do read the README file
Any command to check if i have C compiler ?
uname -a
SunOS mymachine 5.10 Generic_144488-07 sun4v sparc SUNW,SPARC-Enterprise-T5220
vbe
January 4, 2012, 11:06am
4
which cc; which gcc
Would it not be easier to see if there is not a ready compiled version for your solaris?
vbe
January 4, 2012, 11:13am
5
Freeware List for SPARC and Solaris 10
apache-2.2.21-sol10-sparc-local.gz or apache_noldap-2.2.11-sol10-sparc-local.gz Apache 2 - the popular web server - installs in /usr/local/apache2. Dependencies: expat, libiconv, openldap, sasl, zlib, openssl-1.0.0e, and either the libgcc-3.4.6 or gcc-3.4.6. If you do not need openldap support, it is suggested that you install the apache_noldap package. Documentation can be found in /usr/local/doc/apache. The configuration files in /usr/local/apache2/conf must be edited to fit your site's needs, including ssl support.
If you have already been using apache2, MAKE SURE that you backup any files in the conf, htdocs, modules, or other subdirectories of /usr/local/apache2 where you might have changed or added files so that installing the updated apache2 will not cause your configuration or other files to be lost.
The configuration step for this package was
./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-ssl=shared --enable-ssl --with-ssl=/usr/local/ssl --enable-proxy --enable-proxy-connect --enable-proxy-ftp --enable-proxy-http --with-ldap --enable-ldap --enable-authnz-ldap
The modules that were compiled with this package can be found in /usr/local/apache2/modules. You may also need to set up startup scripts to begin the httpd processes at boot up. See the appropriate link for your level of Solaris in openssh.html where you can determine how to set up the randomness features required when using openssl.
which cc
no cc in /usr/bin /opt/SUNWspro/bin /opt/sfw/cups/bin /usr/bin . /opt/VRTS/bin /opt/sfw/bin /usr/local/bin
which gcc
no gcc in /usr/bin /opt/SUNWspro/bin /opt/sfw/cups/bin /usr/bin . /opt/VRTS/bin /opt/sfw/bin /usr/local/bin
Kindly help trace my C compiler.
vbe
January 4, 2012, 11:53am
7
lo4:/export/home/vbe $ what /bin/cc
/bin/cc:
SunOS 5.10 Generic January 2005
stdio.h 1.84 04/09/28 SMI
feature_tests.h 1.25 07/02/02 SMI
ccompile.h 1.2 04/11/08 SMI
isa_defs.h 1.29 08/06/06 SMI
stdio_iso.h 1.8 05/08/16 SMI
va_list.h 1.15 04/11/19 SMI
stdio_tag.h 1.4 04/09/28 SMI
stdio_impl.h 1.15 07/03/05 SMI
stdio_c99.h 1.2 04/03/29 SMI
stdlib.h 1.51 04/06/30 SMI
stdlib_iso.h 1.9 04/09/28 SMI
stdlib_c99.h 1.2 04/03/29 SMI
unistd.h 1.76 06/03/10 SMI
types.h 1.86 07/09/20 SMI
etc...
lo4:/export/home/vbe $ find / -name cc -print
/opt/solstudio12.2/prod/bin/cc
/opt/solstudio12.2/prod/include/cc
/opt/solstudio12.2/include/cc
/opt/solstudio12.2/bin/cc
etc...