Mailing List Archive

[clamav-users] Error loading libfreshclam.so.2 with ClamAV 102.1
I just upgraded from ClamAV 101.4 to 102.1 on CentOS 7.4.  Clam runs fine (through
avfilter for Courier), but when I run freshclam, I get an error:

# freshclam
freshclam: error while loading shared libraries: libfreshclam.so.2: cannot open
shared object file: No such file or directory

# ll /usr/local/lib64/libfreshclam.*
-rwxr-xr-x. 1 root root   1134 Jan 17 12:01 /usr/local/lib64/libfreshclam.la
lrwxrwxrwx. 1 root root     21 Jan 17 12:01 /usr/local/lib64/libfreshclam.so ->
libfreshclam.so.2.0.0
lrwxrwxrwx. 1 root root     21 Jan 17 12:01 /usr/local/lib64/libfreshclam.so.2 ->
libfreshclam.so.2.0.0
-rwxr-xr-x. 1 root root 481680 Jan 17 12:01 /usr/local/lib64/libfreshclam.so.2.0.0

Suggestions?

--
Bowie

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Re: [clamav-users] Error loading libfreshclam.so.2 with ClamAV 102.1 [ In reply to ]
On 17.01.20 12:25, Bowie Bailey wrote:
>I just upgraded from ClamAV 101.4 to 102.1 on CentOS 7.4.? Clam runs fine (through
>avfilter for Courier), but when I run freshclam, I get an error:
>
># freshclam
>freshclam: error while loading shared libraries: libfreshclam.so.2: cannot open
>shared object file: No such file or directory
>
># ll /usr/local/lib64/libfreshclam.*
>-rwxr-xr-x. 1 root root?? 1134 Jan 17 12:01 /usr/local/lib64/libfreshclam.la
>lrwxrwxrwx. 1 root root???? 21 Jan 17 12:01 /usr/local/lib64/libfreshclam.so ->
>libfreshclam.so.2.0.0
>lrwxrwxrwx. 1 root root???? 21 Jan 17 12:01 /usr/local/lib64/libfreshclam.so.2 ->
>libfreshclam.so.2.0.0
>-rwxr-xr-x. 1 root root 481680 Jan 17 12:01 /usr/local/lib64/libfreshclam.so.2.0.0
>
>Suggestions?

uninstall system version of clamav.

or, better, uninstall your version of clamav and get one from repository
that provides current clamav for centos7
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Despite the cost of living, have you noticed how popular it remains?

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Re: [clamav-users] Error loading libfreshclam.so.2 with ClamAV 102.1 [ In reply to ]
On 1/17/2020 1:03 PM, Matus UHLAR - fantomas wrote:
> On 17.01.20 12:25, Bowie Bailey wrote:
>> I just upgraded from ClamAV 101.4 to 102.1 on CentOS 7.4.? Clam runs fine (through
>> avfilter for Courier), but when I run freshclam, I get an error:
>>
>> # freshclam
>> freshclam: error while loading shared libraries: libfreshclam.so.2: cannot open
>> shared object file: No such file or directory
>>
>> # ll /usr/local/lib64/libfreshclam.*
>> -rwxr-xr-x. 1 root root?? 1134 Jan 17 12:01 /usr/local/lib64/libfreshclam.la
>> lrwxrwxrwx. 1 root root???? 21 Jan 17 12:01 /usr/local/lib64/libfreshclam.so ->
>> libfreshclam.so.2.0.0
>> lrwxrwxrwx. 1 root root???? 21 Jan 17 12:01 /usr/local/lib64/libfreshclam.so.2 ->
>> libfreshclam.so.2.0.0
>> -rwxr-xr-x. 1 root root 481680 Jan 17 12:01 /usr/local/lib64/libfreshclam.so.2.0.0
>>
>> Suggestions?
>
> uninstall system version of clamav.
>
> or, better, uninstall your version of clamav and get one from repository
> that provides current clamav for centos7

I don't have a system version of clamav.

I had 101.4 installed and working (compiled from source).? I downloaded 102.1 from
clamav.net and built it using the standard build procedure.? I have installed clam
this way for years without any problems.

--
Bowie

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Re: [clamav-users] Error loading libfreshclam.so.2 with ClamAV 102.1 [ In reply to ]
>> On 17.01.20 12:25, Bowie Bailey wrote:
>>> I just upgraded from ClamAV 101.4 to 102.1 on CentOS 7.4.? Clam runs fine (through
>>> avfilter for Courier), but when I run freshclam, I get an error:
>>>
>>> # freshclam
>>> freshclam: error while loading shared libraries: libfreshclam.so.2: cannot open
>>> shared object file: No such file or directory
>>>
>>> # ll /usr/local/lib64/libfreshclam.*
>>> -rwxr-xr-x. 1 root root?? 1134 Jan 17 12:01 /usr/local/lib64/libfreshclam.la
>>> lrwxrwxrwx. 1 root root???? 21 Jan 17 12:01 /usr/local/lib64/libfreshclam.so ->
>>> libfreshclam.so.2.0.0
>>> lrwxrwxrwx. 1 root root???? 21 Jan 17 12:01 /usr/local/lib64/libfreshclam.so.2 ->
>>> libfreshclam.so.2.0.0
>>> -rwxr-xr-x. 1 root root 481680 Jan 17 12:01 /usr/local/lib64/libfreshclam.so.2.0.0

>On 1/17/2020 1:03 PM, Matus UHLAR - fantomas wrote:
>> uninstall system version of clamav.
>>
>> or, better, uninstall your version of clamav and get one from repository
>> that provides current clamav for centos7

On 17.01.20 13:11, Bowie Bailey wrote:
>I don't have a system version of clamav.
>
>I had 101.4 installed and working (compiled from source).? I downloaded 102.1 from
>clamav.net and built it using the standard build procedure.? I have installed clam
>this way for years without any problems.

was the 0.101.4 installed the same way as 0.102.1 ? Did you uninstall it before
installing 0.102.1?

there may be problem in the sandard build process of 0.102.1 for centos
try running ldd `which freshclam` and it should show where it searches for
libfreshclam

however, I prefer using installing from sane package maintainers.
I don't know how does the redhat (and thus centos) clamav support work, but
Debians's usually works perfectly

--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
REALITY.SYS corrupted. Press any key to reboot Universe.

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Re: [clamav-users] Error loading libfreshclam.so.2 with ClamAV 102.1 [ In reply to ]
On 1/17/2020 1:39 PM, Matus UHLAR - fantomas wrote:
>>> On 17.01.20 12:25, Bowie Bailey wrote:
>>>> I just upgraded from ClamAV 101.4 to 102.1 on CentOS 7.4.? Clam runs fine (through
>>>> avfilter for Courier), but when I run freshclam, I get an error:
>>>>
>>>> # freshclam
>>>> freshclam: error while loading shared libraries: libfreshclam.so.2: cannot open
>>>> shared object file: No such file or directory
>>>>
>>>> # ll /usr/local/lib64/libfreshclam.*
>>>> -rwxr-xr-x. 1 root root?? 1134 Jan 17 12:01 /usr/local/lib64/libfreshclam.la
>>>> lrwxrwxrwx. 1 root root???? 21 Jan 17 12:01 /usr/local/lib64/libfreshclam.so ->
>>>> libfreshclam.so.2.0.0
>>>> lrwxrwxrwx. 1 root root???? 21 Jan 17 12:01 /usr/local/lib64/libfreshclam.so.2 ->
>>>> libfreshclam.so.2.0.0
>>>> -rwxr-xr-x. 1 root root 481680 Jan 17 12:01 /usr/local/lib64/libfreshclam.so.2.0.0
>
>> On 1/17/2020 1:03 PM, Matus UHLAR - fantomas wrote:
>>> uninstall system version of clamav.
>>>
>>> or, better, uninstall your version of clamav and get one from repository
>>> that provides current clamav for centos7
>
> On 17.01.20 13:11, Bowie Bailey wrote:
>> I don't have a system version of clamav.
>>
>> I had 101.4 installed and working (compiled from source).? I downloaded 102.1 from
>> clamav.net and built it using the standard build procedure.? I have installed clam
>> this way for years without any problems.
>
> was the 0.101.4 installed the same way as 0.102.1 ? Did you uninstall it before
> installing 0.102.1?

It was installed exactly the same way except for an extra --disable-clamonacc flag on
./configure.

> there may be problem in the sandard build process of 0.102.1 for centos
> try running ldd `which freshclam` and it should show where it searches for
> libfreshclam

Here are the first several lines:

# ldd `which freshclam`
??????? linux-vdso.so.1 =>? (0x00007ffed21c6000)
??????? libssl.so.10 => /lib64/libssl.so.10 (0x00007f9a54ec6000)
??????? libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f9a54a65000)
??????? libclamav.so.9 => /usr/local/lib64/libclamav.so.9 (0x00007f9a54689000)
??????? libfreshclam.so.2 => not found
??????? libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f9a54470000)
??????? libcurl.so.4 => /lib64/libcurl.so.4 (0x00007f9a54206000)
??????? libz.so.1 => /lib64/libz.so.1 (0x00007f9a53ff0000)
??? ???
It says 'not found', but libfreshclam.so.2 lives in the same directory as the
libclamav.so.9 that it did find.? The dates indicate that the file is part of the
build that was installed today (same with the freshclam binary).? Is there something
I can change on the build to specify the file location?

> however, I prefer using installing from sane package maintainers.
> I don't know how does the redhat (and thus centos) clamav support work, but
> Debians's usually works perfectly

I have always preferred to build ClamAV and SpamAssassin from source so I don't have
to wait on the packages.? I just got a bit behind on ClamAV this time because I had
to wait for avfilter to be updated to work with ClamAV 102.

--
Bowie


_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Re: [clamav-users] Error loading libfreshclam.so.2 with ClamAV 102.1 [ In reply to ]
If you run `sudo ldconfig` does that resolve the issue?

-Micah

?On 1/17/20, 2:30 PM, "clamav-users on behalf of Bowie Bailey" <clamav-users-bounces@lists.clamav.net on behalf of Bowie_Bailey@BUC.com> wrote:

On 1/17/2020 1:39 PM, Matus UHLAR - fantomas wrote:
>>> On 17.01.20 12:25, Bowie Bailey wrote:
>>>> I just upgraded from ClamAV 101.4 to 102.1 on CentOS 7.4. Clam runs fine (through
>>>> avfilter for Courier), but when I run freshclam, I get an error:
>>>>
>>>> # freshclam
>>>> freshclam: error while loading shared libraries: libfreshclam.so.2: cannot open
>>>> shared object file: No such file or directory
>>>>
>>>> # ll /usr/local/lib64/libfreshclam.*
>>>> -rwxr-xr-x. 1 root root 1134 Jan 17 12:01 /usr/local/lib64/libfreshclam.la
>>>> lrwxrwxrwx. 1 root root 21 Jan 17 12:01 /usr/local/lib64/libfreshclam.so ->
>>>> libfreshclam.so.2.0.0
>>>> lrwxrwxrwx. 1 root root 21 Jan 17 12:01 /usr/local/lib64/libfreshclam.so.2 ->
>>>> libfreshclam.so.2.0.0
>>>> -rwxr-xr-x. 1 root root 481680 Jan 17 12:01 /usr/local/lib64/libfreshclam.so.2.0.0
>
>> On 1/17/2020 1:03 PM, Matus UHLAR - fantomas wrote:
>>> uninstall system version of clamav.
>>>
>>> or, better, uninstall your version of clamav and get one from repository
>>> that provides current clamav for centos7
>
> On 17.01.20 13:11, Bowie Bailey wrote:
>> I don't have a system version of clamav.
>>
>> I had 101.4 installed and working (compiled from source). I downloaded 102.1 from
>> clamav.net and built it using the standard build procedure. I have installed clam
>> this way for years without any problems.
>
> was the 0.101.4 installed the same way as 0.102.1 ? Did you uninstall it before
> installing 0.102.1?

It was installed exactly the same way except for an extra --disable-clamonacc flag on
./configure.

> there may be problem in the sandard build process of 0.102.1 for centos
> try running ldd `which freshclam` and it should show where it searches for
> libfreshclam

Here are the first several lines:

# ldd `which freshclam`
linux-vdso.so.1 => (0x00007ffed21c6000)
libssl.so.10 => /lib64/libssl.so.10 (0x00007f9a54ec6000)
libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f9a54a65000)
libclamav.so.9 => /usr/local/lib64/libclamav.so.9 (0x00007f9a54689000)
libfreshclam.so.2 => not found
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f9a54470000)
libcurl.so.4 => /lib64/libcurl.so.4 (0x00007f9a54206000)
libz.so.1 => /lib64/libz.so.1 (0x00007f9a53ff0000)

It says 'not found', but libfreshclam.so.2 lives in the same directory as the
libclamav.so.9 that it did find. The dates indicate that the file is part of the
build that was installed today (same with the freshclam binary). Is there something
I can change on the build to specify the file location?

> however, I prefer using installing from sane package maintainers.
> I don't know how does the redhat (and thus centos) clamav support work, but
> Debians's usually works perfectly

I have always preferred to build ClamAV and SpamAssassin from source so I don't have
to wait on the packages. I just got a bit behind on ClamAV this time because I had
to wait for avfilter to be updated to work with ClamAV 102.

--
Bowie


_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml



_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Re: [clamav-users] Error loading libfreshclam.so.2 with ClamAV 102.1 [ In reply to ]
On 1/17/2020 2:34 PM, Micah Snyder (micasnyd) via clamav-users wrote:
> If you run `sudo ldconfig` does that resolve the issue?

Yes, it did!

Thanks!

--
Bowie

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Re: [clamav-users] Error loading libfreshclam.so.2 with ClamAV 102.1 [ In reply to ]
Hi there,

On Fri, 17 Jan 2020, Bowie Bailey wrote:

> I just upgraded from ClamAV 101.4 to 102.1 on CentOS 7.4.  Clam runs fine (through
> avfilter for Courier), but when I run freshclam, I get an error:
>
> # freshclam
> freshclam: error while loading shared libraries: libfreshclam.so.2: cannot open
> shared object file: No such file or directory
>
> # ll /usr/local/lib64/libfreshclam.*
> -rwxr-xr-x. 1 root root   1134 Jan 17 12:01 /usr/local/lib64/libfreshclam.la
> lrwxrwxrwx. 1 root root     21 Jan 17 12:01 /usr/local/lib64/libfreshclam.so ->
> libfreshclam.so.2.0.0
> lrwxrwxrwx. 1 root root     21 Jan 17 12:01 /usr/local/lib64/libfreshclam.so.2 ->
> libfreshclam.so.2.0.0
> -rwxr-xr-x. 1 root root 481680 Jan 17 12:01 /usr/local/lib64/libfreshclam.so.2.0.0
>
> Suggestions?

Is it looking for a 32-bit library instead of the 64-bit library?

Or do you need to run ldconfig?

--

73,
Ged.

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Re: [clamav-users] Error loading libfreshclam.so.2 with ClamAV 102.1 [ In reply to ]
> I have always preferred to build ClamAV and SpamAssassin from source so I don't have
> to wait on the packages. I just got a bit behind on ClamAV this time because I had
> to wait for avfilter to be updated to work with ClamAV 102.

If you are going to roll your own, you really should download the
latest src.rpm for whatever package it is you want to update, and
re-work the .spec as necessary for the new version and compile your
own RPMs. It makes upgrading much cleaner & safer, you have
dependencies handled, and you keep the overall integrity of your
system.

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Re: [clamav-users] Error loading libfreshclam.so.2 with ClamAV 102.1 [ In reply to ]
On 1/17/2020 8:47 PM, J.R. via clamav-users wrote:
>> I have always preferred to build ClamAV and SpamAssassin from source so I don't have
>> to wait on the packages. I just got a bit behind on ClamAV this time because I had
>> to wait for avfilter to be updated to work with ClamAV 102.
> If you are going to roll your own, you really should download the
> latest src.rpm for whatever package it is you want to update, and
> re-work the .spec as necessary for the new version and compile your
> own RPMs. It makes upgrading much cleaner & safer, you have
> dependencies handled, and you keep the overall integrity of your
> system.

I build rpms for a couple of other packages.  I've never done it for ClamAV since it
doesn't ship with a spec file I can use.  Honestly, I can generally just download the
source, configure, make, test, install, and done.  This is the first time I've had an
issue updating Clam in years.

--
Bowie


_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Re: [clamav-users] Error loading libfreshclam.so.2 with ClamAV 102.1 [ In reply to ]
> I build rpms for a couple of other packages. I've never done it for ClamAV since it
> doesn't ship with a spec file I can use. Honestly, I can generally just download the
> source, configure, make, test, install, and done. This is the first time I've had an
> issue updating Clam in years.

http://download-ib01.fedoraproject.org/pub/epel/7/SRPMS/Packages/c/clamav-0.101.5-1.el7.src.rpm

When I build custom RPMs, I just base it off of the most recent distro
src so I don't have to do a lot of rework...

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml