简体   繁体   English

readline.h不是32位的ubuntu,而是64位?

[英]readline.h not in 32-bit ubuntu, but is in 64 bit?

I asked this on the ubuntu forums but had no response. 我在ubuntu论坛上问了这个但是没有回复。 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. “我注册了一个在Linux上编程的编程类,因为我正常使用Windows,所以我安装了vmware播放器,所以我可以同时使用这两个。我安装了64位Ubuntu。在第一次分配时我需要编译一些东西使用readline.h。编译好。

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. 几天之后我决定转而使用32位Ubuntu(看看我只是让它使用一个ram,我认为32位更适合),安装另一个虚拟机,一切看起来都不错。 I go to compile this code again and I get an error that I don't have readline.h. 我再次编译此代码,我得到一个错误,我没有readline.h。 I look in usr/include and sure enough, no readline.h. 我查看usr / include,当然没有readline.h。 Just to amuse myself I check the include folder on the 64-bit VM; 只是为了娱乐我自己检查64位VM上的include文件夹; amazingly there it is. 令人惊讶的是它。

Now I know where I could get the readline header file, that's not the issue here. 现在我知道在哪里可以获得readline头文件,这不是问题所在。 The issue is there's considerably fewer header files in the 32 bit include folder than in the 64 bit one. 问题是32位包含文件夹中的头文件比64位文件夹少得多。 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? 这是内置在Ubuntu中的内容,还是与VMWare Tools安装了两个版本的Ubuntu? 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? 我假设这里有相当多的人使用ubuntu在C中编程。任何经验/建议? Thanks! 谢谢!

You have more -dev packages installed on your 64-bit machine than your 32-bit one. 64位计算机上安装的-dev软件包比32位软件包更多。 Install libreadline-dev on the 32-bit VM and you should be good to go. 在32位虚拟机上安装libreadline-dev ,你应该好好去。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM