c - 为什么我得到 "Header file missing"(出错)?

标签 c ruby geocoding fpic

我正在尝试为我正在构建的网站安装地理编码器。我正在使用 Geocoder因为 Google Maps API 的查询限制达不到我的需要。我安装了所有需要的 gem 并安装了 SQLite3。当我实际尝试安装地理编码器 gem (Geocoder::US) 时,我在运行 make 文件时遇到错误。

我遇到了一个我无法弄清楚的错误。它提到了错误(在标题中),然后谈到了一个不存在的文件 (sqlite3ext.h)。这是错误:

enter image description here

我知道这很含糊,但我已经工作了 10 多个小时试图安装它并且在网上找不到什么帮助。任何关于前进方向的建议都将不胜感激。

最佳答案

这是来自项目的Readme :

To build Geocoder::US, you will need gcc/g++, make, bash or equivalent, the standard *NIX ‘unzip’ utility, and the SQLite 3 executable and development files installed on your system.

您似乎缺少 SQLite3 开发 header 。

这是相关的:

NOTE: If you do not have /usr/include/sqlite3ext.h installed, then your sqlite3 binaries are probably not configured to support dynamic extension loading. If not, you must compile and install SQLite from source, or rebuild your system packages. This is not believed to be a problem on Debian/Ubuntu, but is known to be a problem with Red Hat/CentOS.

他们也没有提到 Windows。你应该:

  1. 询问他们是否有人在 Windows 上使用它,是否有相关说明。
  2. 评估 Linux 上的东西,尤其是 Debian/Ubuntu。

关于c - 为什么我得到 "Header file missing"(出错)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17972632/

相关文章:

c - 没有规则使 mbascii.o 需要目标 mbascii.c?

ruby-on-rails - 使用 Capybara 和 Selenium 进行记录删除测试失败

ip-address - 对 IP 地址进行地理编码?

ruby-on-rails - Geocoder - 语言设置为英语,但仍然得到波兰语的一些结果

c - 如何获取 Kafka 主题分区的最后偏移量?

c - gcc -O3 删除 int-to-string 转换器中的实时代码

c - 'SHA1' 已弃用 : first deprecated in OS X 10. 7?

mysql - 如何获取连接中的对象?

ruby - Objective-C 是否像 Ruby 一样支持 Mixin?

android - 从android中的地址获取经纬度