Intente hacer un paquete rpm de httpd 2.4.3

Intente hacer un paquete rpm de httpd 2.4.3

mi archivo de especificaciones es:

%prep
tar zxvf $RPM_SOURCE_DIR/httpd-2.4.3.tar.gz

%build

%install
cd httpd-2.4.3
./configure -prefix=/usr/local/apache
make
make install

%preun
if [ -z "`ps aux|grep httpd | grep -v grep`" ];then
   pkill httpd >/dev/null
exit 0
fi

%files
/usr/local/apache

rpmbuild -ba lx.spec 

y el paquete RPM de httpd-2.4-3.x86_64.rpm está bien. Pero cuando lo instalé por

rpm -ivh httpd-2.4-3.x86_64.rpm

no está bien y el mensaje de error es:

error: Failed dependencies:
    libpcre.so.1()(64bit) is needed by httpd-2.4-3.x86_64

Respuesta1

Si su máquina es CentOS o RHEL, necesita instalar el pcre.x86_64paquete.

# yum resolvedep "libpcre.so.0()(64bit)"
Loaded plugins: downloadonly, product-id, rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
0:pcre-7.8-6.el6.x86_64

información relacionada