遇到saslpasswd2不能创建/etc/sasldb2问题

# 运行以下语句始终不能创建/etc/sasldb2文件
saslpasswd2 -c -f /etc/sasldb2 -u mycorp.com myname
# 后从google搜索到可以检查/var/log/messages文件(我想当然知道会有log文件,但接触linux不多,不知日志文件在哪),里面有错误信息:
Dec  7 13:54:36 svr saslpasswd2: unable to dlopen /usr/lib/sasl2/libdigestmd5.so.2: /usr/lib/sasl2/libdigestmd5.so.2: wrong ELF class: ELFCLASS32
Dec  7 13:54:36 svr saslpasswd2: unable to dlopen /usr/lib/sasl2/libgssapiv2.so.2: /usr/lib/sasl2/libgssapiv2.so.2: wrong ELF class: ELFCLASS32
Dec  7 13:54:36 svr saslpasswd2: unable to dlopen /usr/lib/sasl2/libntlm.so.2: /usr/lib/sasl2/libntlm.so.2: wrong ELF class: ELFCLASS32
Dec  7 13:54:36 svr saslpasswd2: unable to dlopen /usr/lib/sasl2/liblogin.so.2: /usr/lib/sasl2/liblogin.so.2: wrong ELF class: ELFCLASS32
Dec  7 13:54:36 svr saslpasswd2: unable to dlopen /usr/lib/sasl2/libplain.so.2: /usr/lib/sasl2/libplain.so.2: wrong ELF class: ELFCLASS32
Dec  7 13:54:36 svr saslpasswd2: unable to dlopen /usr/lib/sasl2/libcrammd5.so.2: /usr/lib/sasl2/libcrammd5.so.2: wrong ELF class: ELFCLASS32
Dec  7 13:54:36 svr saslpasswd2: unable to dlopen /usr/lib/sasl2/libanonymous.so.2: /usr/lib/sasl2/libanonymous.so.2: wrong ELF class: ELFCLASS32
Dec  7 13:54:36 svr saslpasswd2: unable to dlopen /usr/lib/sasl2/libldapdb.so.2: /usr/lib/sasl2/libldapdb.so.2: wrong ELF class: ELFCLASS32
Dec  7 13:54:40 svr saslpasswd2: could not find auxprop plugin, was searching for [all]
# 怀疑是32bit/64bit问题,可是32bit/64bit两个版本的sasl我都安装了呀,按道理老外写的东东没那么笨拙,应该会自动识别的
# 想来想去不对劲,网上的资料也实在太少,英文阅读能力也差,咋办呢!?忽然想到:
find / -name saslpasswd2
/opt/CollabNet_Subversion/sbin/saslpasswd2
/usr/local/sbin/saslpasswd2
/usr/sbin/saslpasswd2
ls -l /opt/CollabNet_Subversion/sbin/saslpasswd2
ls -l /usr/local/sbin/saslpasswd2
ls -l /usr/sbin/saslpasswd2
-rwxr-xr-x 1 root root 23899 Oct 16 16:02 /opt/CollabNet_Subversion/sbin/saslpasswd2
-rwxr-xr-x 1 root root 24128 Dec  6 20:27 /usr/local/sbin/saslpasswd2
-rwxr-xr-x 1 root root 11248 Apr 28  2009 /usr/sbin/saslpasswd2
# 三个文件,版本不一样,大小也差很多,经测试除了默认的/usr/sbin/saslpasswd2不行外,前面两个都正常。

 

PS: 以下问题仍然没有解决,不知道[-s servicename]和[-f socket path]怎么用?

# /opt/CollabNet_Subversion/sbin/testsaslauthd -r mycorp.com -u myname -p mypwd
connect() : No such file or directory

 

你可能感兴趣的:(linux,socket,Google,F#,subversion)