简体   繁体   中英

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

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!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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