配置:错误:未找到 SQLite3 库

2 sqlite linux installation reporting errors

在 Linux 上安装 Zabbix 报告工具时出现以下配置错误。我已经尝试了两个版本(zabbix-2.0.9,zabbix-1.8.17),但遇到了同样的问题。

日志:

checking for macro __VA_ARGS__... yes
checking return type of signal handlers... void
checking for getloadavg... yes
checking for hstrerror... yes
checking for getenv... yes
checking for putenv... yes
checking for sigqueue... yes
checking for /proc filesystem... yes
checking for file /proc/stat... yes
checking for file /proc/cpuinfo... yes
checking for file /proc/0/psinfo... no
checking for file /proc/loadavg... yes
checking for file /proc/net/dev... yes
checking for long long format... no
checking for -rdynamic linking option... yes
checking for libperfstat 5.2.0.40 fileset... no
checking for libperfstat 5.3.0.60 fileset... no
checking for architecture... linux (linux-gnu)
checking for the linux kernel version... unknown family (3.0.76-0.11-default)
checking if Oracle support is enabled... no
checking for SQLite3 library >= 3.0.0... no
configure: error: SQLite3 library not found
Run Code Online (Sandbox Code Playgroud)

请帮助我如何解决这个问题?

谢谢,

MD *_*min 5

我尝试了两者,sudo apt-get install sqlite并从源代码构建,但问题仍然存在。然后我尝试了以下命令并且它起作用了。可能它也会帮助别人。

sudo apt-get install libsqlite3-dev
Run Code Online (Sandbox Code Playgroud)