readline.h 不在 32 位 ubuntu 中,但在 64 位中?
我在ubuntu论坛上问过这个问题,但没有得到回应。无论如何,这与程序更相关,也许这里有人可以帮助我?
“我报名了一个在 Linux 中编程的编程课程,由于我通常使用 Windows,所以我安装了 vmware 播放器,这样我就可以同时使用两者。我安装了 64 位 Ubuntu。在第一个作业中,我需要编译一些东西使用 readline.h 编译得很好。
几天后,我决定改用 32 位 Ubuntu(因为我只让它使用 1G 内存,我认为 32 位会更适合),安装另一个虚拟机,一切似乎都很好。我再次编译此代码,但出现错误,我在 usr/include 中查找,果然没有 readline.h。只是为了自娱自乐,我检查了一下。 64 位 VM 上的 include 文件夹;令人惊讶的是,
现在我知道在哪里可以获得 readline 头文件,问题不是这里的问题是 32 位 include 文件夹中的头文件要少得多。 64 位的,有什么想法吗?这是 Ubuntu 内置的东西,还是与 VMWare Tools 为我安装了两个版本的 Ubuntu 有关?我担心我可能还缺少什么。”
我想这里有相当多的人使用 ubuntu 用 C 语言编程。有什么经验/建议吗?谢谢!
I asked this on the ubuntu forums but had no response. Seeing as how this is more program related anyway, perhaps someone here can help me out?
"I signed up for a programming class that programs in Linux, and since I use Windows normally I installed vmware player so I could use both at the same time. I installed 64-bit Ubuntu. On the first assignment I needed to compile something that uses readline.h. Compiles fine.
Few days later I decide to go for 32-bit Ubuntu instead (seeing as how I'm only letting it use a gig of ram, I figured the 32 bit would be better suited), install another virtual machine, all seems good. I go to compile this code again and I get an error that I don't have readline.h. I look in usr/include and sure enough, no readline.h. Just to amuse myself I check the include folder on the 64-bit VM; amazingly there it is.
Now I know where I could get the readline header file, that's not the issue here. The issue is there's considerably fewer header files in the 32 bit include folder than in the 64 bit one. Any thoughts why? Is this something built into Ubuntu, or does it have something to do with that VMWare Tools installed both versions of Ubuntu for me? I'm concerned about what else I might be missing."
I assume there's a fair number of people here that use ubuntu to program in C. Any experiences/advice? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的 64 位计算机上安装的 -dev 软件包比 32 位计算机多。在 32 位虚拟机上安装 libreadline-dev 就可以了。
You have more -dev packages installed on your 64-bit machine than your 32-bit one. Install
libreadline-dev
on the 32-bit VM and you should be good to go.