LibClamAV错误:cl_load:没有这样的文件或目录:C:Usersmy pcDesktopcl



我下载了Clamwin源代码,并将Clamwin解决方案加载到visualstudio(2010专业版),成功构建了所有项目,没有任何错误。单击start without debugging(将clamscan项目设置为启动)后,我在cmd提示下收到以下错误。

LibClamAV Error:cl_load:No such file or directory: C:Usersmy-pcDesktopclamav-win32-clamav-0.99contribmsvcDebugWin32db
-----------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.但我该如何解决这个问题?我应该在该路径中创建文件或目录,还是让它找到自己?

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

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

最后,尝试运行蛤壳。

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

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

最新更新