Installing C POSIX libraies in Ubuntu 14.04 LTS
Solution 1
After more googling, I realized that what I had to do was to install the packages that contained the libraries I was interested in. It wasn't long before I stumbled across these two websites;
There you will find the packages of many many libraries. And you can install from any package you want!
Solution 2
The things you have listed are header files - which do not have a one-to-one correspondence with Ubuntu (Debian) packages.
In particular, sys/ioctl.h
and sys/unistd.h
should both be provided by the libc6-dev
package and ncursesw/ncurses.h
by the libncursesw5-dev
package i.e.
sudo apt-get install libc6-dev libncursesw5-dev
If you haven't already installed the GCC compiler, you can install the build-essential
metapackage which includes the compilers as well as libc6-dev
sudo apt-get install build-essential libncursesw5-dev
Related videos on Youtube
pyler
Updated on September 18, 2022Comments
-
pyler over 1 year
I'm trying to install the following C POSIX headers in Ubuntu 14.04 but for some reason some of them won't install.
sys/ioctl.h
unistd.h
locale.h
ncursesw/ncurses.h
Commands tried
sudo apt-get install sys/ioctl.h sudo apt-get install unistd.h sudo apt-get install locale.h sudo apt-get install ncursesw/ncruses.h
I've only managed to install
locale.h
but for some reason the rest return a regex error stating thatsys/ioctl.h
wasn't found. I'm fairly new to Linux/Ubuntu and are not sure what to do at this point. Any help is appreciated-
David Foerster almost 8 yearsFWIW only some of these headers provide interfaces described by POSIX.
-
user.dz over 8 yearsyep, there is a similar site provided Ubuntu, packages.ubuntu.com , you may edit your answer to point to Ubuntu one. BTW, could you accept your own answer as that what works for you, see askubuntu.com/help/self-answer & askubuntu.com/help/someone-answers
-
gmatht about 7 yearsAlso, if you are trying to build a particular package (say
mutt
),sudo apt-get build-dep mutt
may be what you really want.