
내 사양 파일은 다음과 같습니다
%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
, httpd-2.4-3.x86_64.rpm의 RPM 패킷은 괜찮습니다. 하지만 내가 그것을 설치했을 때
rpm -ivh httpd-2.4-3.x86_64.rpm
옳지 않으며 오류 메시지는 다음과 같습니다.
error: Failed dependencies:
libpcre.so.1()(64bit) is needed by httpd-2.4-3.x86_64
답변1
머신이 CentOS 또는 RHEL인 경우 패키지를 설치해야 합니다 pcre.x86_64
.
# 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