我在运行 CentOS 的 EC2 实例上安装了 clamAV,我进行了安装,当我运行“sudo freshclam”时,我得到了
ERROR: Can't open/parse the config file /usr/local/etc/freshclam.conf
但是,如果我尝试导航到该文件,它不存在,因此我在 nano 中打开了可执行 freshclam 文件并看到
link_command="(cd /home/ec2-user/clamav/freshclam; { test -z \"\${LIBRARY_PATH+set}\" || unset LIBRARY_PATH || { LIBRARY_PATH=; export LIBRARY_PATH; }; };
{ test -z \"\${COMPILER_PATH+set}\" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z \"\${GCC_EXEC_PREFIX+set}\" || unset GCC_EXEC_PREFIX ||
{ GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z \"\${LD_RUN_PATH+set}\" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; };
{ test -z \"\${LD_LIBRARY_PATH+set}\" || unset LD_LIBRARY_PATH || { LD_LIBRARY_PATH=; export LD_LIBRARY_PATH; }; };
PATH=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/ec2-user/.local/bin:/home/ec2-user/bin; export PATH; gcc -g -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -o \$progdir/\$file output.o optparser.o getopt.o misc.o cdiff.o tar.o clamdcom.o freshclam.o manager.o notify.o dns.o execute.o nonblock.o mirman.o
../libclamav/.libs/libclamav.so -lxml2 -lbz2 -ldl /home/ec2-user/clamav/libclamav/.libs/libclammspack.so -lssl -lcrypto -ljson-c -lpcre2-8 -lm -lz -lresolv -lpthread -Wl,-rpath
-Wl,/home/ec2-user/clamav/libclamav/.libs -Wl,-rpath -Wl,/usr/local/lib64)"
有没有办法修改此行或添加我缺少的目录以使 clamAV 正常工作?(特别是 PATH= 部分?)
此外,这是我在这里的第一篇帖子,所以如果这不是正确的交流,请告诉我,我会将这个问题移至正确的论坛。