Srclib/apr/libtool: ar: command not found from

De Wikillano

Compilando una version de Apache en solaris 10 me encuentro el siguiente error al realizar make,

Por lo visto es un error común en Solaris, resulta que no esta el path completo de "ar"

/home/apache/httpd-2.0.54/srclib/apr/libtool: line 5506: ar: command not found
make[3]: *** [libapr-0.la] Error 127
make[3]: Leaving directory `/home/apache/httpd-2.0.54/srclib/apr'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/apache/httpd-2.0.54/srclib/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/apache/httpd-2.0.54/srclib'
make: *** [all-recursive] Error 1

The archiver (also known simply as ar) is a Unix utility that maintains groups of files as a single archive file. Today, ar is generally used only to create and update static library files that the link editor or linker uses; it can be used to create archives for any purpose, but has been largely replaced by tar for purposes other than static libraries. ar is included as one of the GNU Binutils.

en el script:

vi /home/apache/httpd-2.0.54/srclib/apr/libtool

cambiar

# The archiver.
AR="ar"
AR_FLAGS="cru"

por esto:

# The archiver.
AR="/usr/ccs/bin/ar"
AR_FLAGS="cru"

Si al cambiar este fichero volvemos a realizar el ./configure perderemos los cambios, otra manera es poner la ruta /usr/ccs/bin en el PATH

Herramientas personales