什么是sqlite开发标题以及如何安装它们? [英] What are sqlite development headers and how to install them?

查看:132
本文介绍了什么是sqlite开发标题以及如何安装它们?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图安装pysqlite,并且遇到麻烦。我发现最可能的原因是缺少sqlite头文件,我必须安装它们。

I am trying to install pysqlite and have troubles with that. I found out that the most probable reason of that is missing sqlite headers and I have to install them.

然而,我不知道这些头文件是什么(我可以在哪里找到他们,他们在做什么以及如何安装他们)。

However, I have no ideas what these headers are (where I can find them, what they are doing and how to install them).

任何人都可以帮我解决这个问题吗?

Can anybody, pleas, help me with that?

推荐答案

debian / ubuntu:

debian/ubuntu:

$ apt-get install libsqlite3-dev # or rpm -i sqlite-devel-something.rpm






我认为许多解释器只是在安装时重新编译它们的小型连接库,但要做到这一点,除了需要链接的库之外,他们还需要C.h文件。你可能已经拥有了这个库,因为别的东西依赖于它,但是你不一定有 dev 包,这在源代码和二进制文件之间有一半的距离。


I think a number of interpreters just recompile their small connection libraries on installation, but to do that they need the C .h files in addition to the library to link against. You may already have the library, because something else depended on it, but you don't necessarily have the dev package, which is kind of half-way between source and binary.

部分原因很简单,如果您要开发一个库,您需要它的接口头文件。

Part of it is straightforward, if you are going to develop with a library you need its interface headers.

但我认为更多事情发生了,起初,人们尝试了所有源代码和全二进制发行版,但全二进制发行版容易受到依赖性地狱的影响,而所有源代码都是过度的。我认为现在正在使用一种有趣的折衷方案,一种半源代码发布,其中程序通过重新编译链接到扩展库的那些部分链接到已安装的库。这对解释器来说很有意义,大多数系统可以以二进制形式到达,但扩展模块是为已安装系统动态加载和编译的。我想。

But I think something more happened, at first, people tried all-source and all-binary distributions, but the all-binary ones were vulnerable to dependency hell, and the all-source ones were overkill. I think now that an interesting compromise is in use, a semi-source distribution where a program links to installed libraries by recompiling those parts of it that link to extension libraries. This makes a lot of sense with interpreters where most of the system can arrive in binary but the extension modules are dynamically loaded and compiled for the installed system. I think.

这篇关于什么是sqlite开发标题以及如何安装它们?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆