On Wednesday 28 July 2021 12:24:32 G.W. Haywood via clamav-users wrote: > Hi there, > > On Wed, 28 Jul 2021, Gene Heskett via clamav-users wrote: > > On Wednesday 28 July 2021 07:06:08 G.W. Haywood via clamav-users wrote: > >> $ cd ~ > >> $ rm -rf clamav-0.104.0-rc > >> $ tar xzvf clamav-0.104.0-rc.tar.gz > >> $ cd clamav-0.104.0-rc > >> $ mkdir build > >> $ cd build > >> $ cmake .. > > > > blows up, fussing about cmake old version. > > new 3.21.1 making from tarball.gz now. using "./bootstrap && make" > > What all should I uninstall before I type "sudo make install"? Or > > will it just overwrite what there? > > If all goes according to thoery you shouldn't need to uninstall > anything. > > Usually you'll have a distro-supplied version in /usr/bin and > something which you've rolled yourself in /usr/local/bin (*). The > PATH environment variable will have /usr/local/bin first in the search > list so you'll get the one you want by default unless you say > otherwise by giving the full path along with the name of the > executable. Well, that's that theory. :) But in real life, I got a wee bit furher and my $PATH s/b good: /home/gene/AppImages:/home/gene/bin:/usr/local/bin:/opt/trinity/bin:/usr/bin:/bin:/usr/local/games:/opt/trinity/games:/usr/games So after building and installing cmake, I get to pthread. Which is installed.
so: gene@coyote:~/src/clamav-0.104.0-rc/build$ /usr/local/bin/cmake .. -D CMAKE_BUILD_TYPE="Release" CMake Error at /usr/local/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Libcheck (missing: LIBCHECK_INCLUDE_DIR LIBCHECK_LIBRARY) Call Stack (most recent call first): /usr/local/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) cmake/FindLibcheck.cmake:89 (find_package_handle_standard_args) CMakeLists.txt:192 (find_package) -- Configuring incomplete, errors occurred! See also "/home/gene/src/clamav-0.104.0-rc/build/CMakeFiles/CMakeOutput.log". See also "/home/gene/src/clamav-0.104.0-rc/build/CMakeFiles/CMakeError.log". looking at the CMakeError.log I see: Building C object CMakeFiles/cmTC_38c19.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -std=gnu90 -o CMakeFiles/cmTC_38c19.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake-3.21/Modules/CheckFunctionExists.c Linking C executable cmTC_38c19 /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_38c19.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_38c19.dir/CheckFunctionExists.c.o -o cmTC_38c19 -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status CMakeFiles/cmTC_38c19.dir/build.make:98: recipe for target 'cmTC_38c19' failed make[1]: *** [cmTC_38c19] Error 1 make[1]: Leaving directory '/home/gene/src/clamav-0.104.0-rc/build/CMakeFiles/CMakeTmp' Makefile:127: recipe for target 'cmTC_38c19/fast' failed But pthread is installed. "sudo ldconfg -v|grep pthread" comes back empty Now what? Thank you G.W. Haywood. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene> _______________________________________________ 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