4

我下载了 Clamwin 源代码并将 Clamwin 解决方案加载到 Visual Studio(2010 Professional)并成功构建了所有项目,没有任何错误。单击start without debuggingclamscan将项目设置为启动)后,我在 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. 但是我应该如何解决这个问题?我应该在该路径中创建文件或目录还是应该让它自己找到?

4

2 回答 2

1

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

于 2016-01-04T08:47:25.907 回答
1

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

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

最后,尝试运行 clamscan。

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

于 2017-05-30T18:54:43.843 回答