- 论坛徽章:
- 0
|
我在Fedora Core 1 上按照王老大的文档二 编译Cyrus-SASL包 试过好几个版本的mysql,修改了好多次的spec文件 总是成功不了
提示 找不到mysql的la文件
错误提示如下:
Processing files: cyrus-sasl-mysql-2.1.18-2
error: File not found by glob: /var/tmp/cyrus-sasl-root/usr/lib/sasl2/*mysql*.so*
error: File not found by glob: /var/tmp/cyrus-sasl-root/usr/lib/sasl2/*mysql*.la
Processing files: cyrus-sasl-debuginfo-2.1.18-2
Provides: libanonymous.so.1.0.17.debug libanonymous.so.2.0.19.debug libcrammd5.so.1.0.19.debug libcrammd5.so.2.0.19.debug libdigestmd5.so.0.0.20.debug libdigestmd5.so.2.0.19.debug libgssapiv2.so.1.0.19.debug libgssapiv2.so.2.0.19.debug liblogin.so.0.0.7.debug liblogin.so.2.0.19.debug libplain.so.1.0.16.debug libplain.so.2.0.19.debug libsasl.so.7.1.11.debug libsasl2.so.2.0.19.debug libsasldb.so.2.0.19.debug
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
RPM build errors:
File not found by glob: /var/tmp/cyrus-sasl-root/usr/lib/sasl2/*mysql*.so*
File not found by glob: /var/tmp/cyrus-sasl-root/usr/lib/sasl2/*mysql*.la
spec文件的修改的地方:
(--with-mysql=/usr/lib/mysql 路径参数取过默认值 也手动的copy到某一路径下 制定该路径过 但是就是不行 )
......
%package mysql
Requires: %{name} = %{version}-%{release}
Group: System Environment/Libraries
Summary: Mysql support for Cyrus SASL.
%description mysql
The %{name}-mysql package contains the Cyrus SASL plugins which support
Mysql auxprop authentication schemes.
.....
%if %{includev1}
pushd cyrus-sasl-%{cs1_version}
%configure \
--enable-static --enable-staticdlopen --with-pic --enable-shared \
--with-plugindir=%{_plugindir} \
--disable-krb4 \
--enable-gssapi${krb5_prefix:+=${krb5_prefix}} \
--with-rc4 \
--with-dblib=gdbm \
--with-saslauthd=/var/run/saslauthd --without-pwcheck \
--enable-anon \
--enable-cram \
--enable-digest \
--enable-plain \
--enable-login \
--with-mysql=/usr/lib/mysql
make sasldir=%{_plugindir}
......
ac_cv_can_build_shared=yes
export ac_cv_can_build_shared
%configure \
--disable-shared --disable-static --enable-${buildtype} \
--disable-java \
--with-plugindir=%{_plugindir2} \
--disable-krb4 \
--enable-gssapi${krb5_prefix:+=${krb5_prefix}} \
--with-rc4 \
--with-dblib=berkeley \
--with-bdb-incdir=${topdir}/db-instroot/include \
--with-bdb-libdir=${topdir}/db-instroot/lib \
--with-saslauthd=/var/run/saslauthd --without-pwcheck \
--with-ldap \
--with-devrandom=/dev/urandom \
--enable-anon \
--enable-cram \
--enable-digest \
--enable-plain \
--enable-login \
--with-mysql=/usr/lib/mysql
# --enable-auth-sasldb -- EXPERIMENTAL
make sasldir=%{_plugindir2}
make -C saslauthd testsaslauthd
.......
%files mysql
%defattr(-,root,root)
%{_plugindir2}/*mysql*.so*
%{_plugindir2}/*mysql*.la
......
%{_plugindir2}/*mysql*.a
.....
实在没辙了 各位大侠帮忙啊 |
|