msgbartop
Blog di Dino Ciuffetti (Bernardino in realtà)
msgbarbottom

15 Set 11 How to compile apache httpd 64 bits on Solaris 10 sparc

As usual we try to consider the “do it right (r)” way of doing configurations.
Today we will compile Apache HTTPD on Sun Solaris 10 OS (SPARC).

The first thing to do is to install the gcc c compiler if it is not already installed.
To do so, download and install the package from www.sunfreeware.com. Double read the package release notes.
You have to download the latest gcc package and its dependencies. You probably will need also libiconv and libintl.
Now download openssl-0-9.X package.

For each downloaded package install it with the command: dpkg -d <full_path>/your_package

When finished, go into your apache source directory and:

export LD_LIBRARY_PATH=/usr/sfw/lib/sparcv9:/usr/local/lib/sparcv9
export PATH=/usr/sfw/bin:/usr/ccs/bin:/usr/local/ccs/bin:/usr/local/bin:$PATH

# if you want it 64 bits:
export CFLAGS=”-m64″
# if you want it 32 bits:
# export CFLAGS=”-m32″
export LDFLAGS=”-L/usr/sfw/lib/sparcv9″

./configure –with-included-apr –with-expat=builtin –prefix=<your_installation_path> –enable-mods-shared=most –enable-ssl –with-ssl=/usr/sfw –enable-proxy –enable-proxy-connect –enable-proxy-http –enable-proxy-balancer

If the configure process terminated successfully, you can now call:

make

When finished, as usual, call:

make install

I recommend you to use gnu make. You can download it from sunfreeware.
Now, if everything gone ok, you can try to start your brand new 64 bits apache full of powerfull modules.
You may want to set your LD_LIBRARY_PATH variable into <apache>/bin/envvars file so that apachectl can find all the library it needs to start or stop the server.

Ciao, Dino.

Reader's Comments

  1.    

    This really helped me as well.

    In my case, I just completed this for an x86 Solaris machine. So instead of “sparcv9”, I substituted “amd64” in its place (same directory paths otherwise. And it worked.

    Reply to this comment
    •    

      Good to know. Thank you Luke!

      Reply to this comment
      •    

        Right, that’s a great problem of Solaris I think. On a mniamil installation Solaris is missing most of the common tools we know from any other Unix/Linux OS. Even such simple things as less or vim are missing and must be installed seperatly from a companion CD.This is not 1980 think they can start to put common basic tools in actual versions into the default distribution.many greetings from I-D Media Falko

        Reply to this comment
  2.    

    I really neeedd to find this info, thank God!

    Reply to this comment
  3. convinced-centennial

Rispondi a dAm2K Annulla risposta

*