sjvermeu / cvechecker

Command-line utility to scan the system and report on potential vulnerabilities, based on public CVE data
GNU General Public License v3.0
258 stars 68 forks source link

configure cannot find latest sqlite3 on Ubuntu 20.04 #58

Closed HenrikBach1 closed 3 years ago

HenrikBach1 commented 3 years ago

Hi

root@973091faf51e:/projects/cvechecker/cvechecker-2021-05-08-build/cvechecker-master# ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking Determining host operating system... Linux
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking argp.h usability... yes
checking argp.h presence... yes
checking for argp.h... yes
checking for regcomp... yes
checking for strchr... yes
checking for strrchr... yes
checking for strstr... yes
checking for size_t... yes
configure: WARNING: Please make sure pkg-config is installed and autoreconf run
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for CONFIG... yes
checking for SQLITE3... no
configure: error: Package requirements (sqlite3 >= 3.6.16) were not met:

No package 'sqlite3' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables SQLITE3_CFLAGS
and SQLITE3_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
root@973091faf51e:/projects/cvechecker/cvechecker-2021-05-08-build/cvechecker-master# sqlite3 --version
3.31.1 2020-01-27 19:55:54 3bfa9cc97da10598521b342961df8f5f68c7388fa117345eeb516eaa837balt1
root@973091faf51e:/projects/cvechecker/cvechecker-2021-05-08-build/cvechecker-master# 

What am I doing wrong?

HenrikBach1 commented 3 years ago

Or is anybody able to tell me which flavor and version of linux I'm able to build a local version of cveChecker?

sjvermeu commented 3 years ago

Hi Henrik,

I'm currently not able to check it in depth, but if the configure step fails to detect sqlite3 even though it is installed, it might be requiring a sqlite3 development package in addition (commonly "sqlite3-dev" or so).

Such a package contains the files needed to build support for sqlite3, and is optional on some operating systems as it isn't needed to just run sqlite3.

Wkr, Sven

HenrikBach1 commented 3 years ago

Hi Sven

Thank you for your suggestions. They worked for me.

However, now the script is complaining about missing Makefile.in:

checking for SQLITE3... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: error: cannot find input file: `Makefile.in'
root@973091faf51e:/projects/cvechecker/cvechecker-2021-05-08-build/cvechecker-master# 

Should I just ignore it and continue to build the cvechecker?

sjvermeu commented 3 years ago

You probably first need to call autoreconf (I think with the option --force). That will generate Makefile.in.

After that, run the configure command again.

Wkr, Sven

On Thu, Jun 3, 2021, 7:17 PM Henrik Bach @.***> wrote:

Hi Sven

Thank you for your suggestions. They worked for me.

However, now the script is complaining about missing Makefile.in:

checking for SQLITE3... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: error: cannot find input file: `Makefile.in' @.***:/projects/cvechecker/cvechecker-2021-05-08-build/cvechecker-master#

Should I just ignore it and continue to build the cvechecker?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sjvermeu/cvechecker/issues/58#issuecomment-854042059, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACTRK3E6SFGI7XWKNLAR5DTQ62LTANCNFSM45YL7NBA .