LibClamAV错误:cl_load:没有这样的文件或目录:C:\ Users \ my-pc \ Desktop \ clamav-win32-clamav-0.99 \ contrib \ msvc \ Debug \ Win32 \ db

时间:2016-01-04 06:03:18

标签: visual-studio-2010 antivirus antivirus-integration

我下载了Clamwin源代码并将clamwin解决方案加载到visual studio(2010专业版)并成功构建了所有项目而没有任何错误。点击start without debugging(将clamscan项目设置为启动后)我在cmd-prompt上收到了以下错误。

LibClamAV Error:cl_load:No such file or directory: C:\Users\my-pc\Desktop\clamav-win32-clamav-0.99\contrib\msvc\Debug\Win32\db
-----------SCAN SUMMARY-------------
Known viruses: 0
Engine version: 0.97.8
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 0.003 sec (0 m 0 s)
Press any key to continue . . .

我在网上搜索了解决方案,我得到Clam is looking for it's database files and the directory doesn't have them, doesn't exist, or Clam doesn't have sufficient rights to access the files. 但是我应该如何解决这个问题?我应该在该路径中创建文件或目录,还是应该让它自己找到?

2 个答案:

答案 0 :(得分:0)

如问题Clam is looking for it's database files and the directory中所指定的,目录/ db应该通过运行freshclam工具更新数据库,运行freshclam(如果有错误),下载freshclam.conf文件并编辑文件根据需要。然后单击调试菜单中的start debugging。 Clamscan扫描当前的工作目录。有关clamscan

的更多信息

答案 1 :(得分:0)

刚刚运行freshclam - >将新的vc db下载到预定义的目录(freshclam.conf中的DatabaseDirectory)。在此之前,您必须设置freshclam.conf。

然后在clam.conf中设置相同的DatabaseDirectory。 (这里有一个bug。我在Windows上安装并在配置文件中使用正斜杠作为路径的dir分隔符。在DatabaseDirectory值我必须将正斜杠更改为反斜杠才能成功运行clamdscan) / p>

最后,尝试运行clamscan。

请告诉我,如果它没有帮助。