Installing C POSIX libraies in Ubuntu 14.04 LTS

15,238

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;

  1. Ubuntu
  2. Debian

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
Share:
15,238

Related videos on Youtube

pyler
Author by

pyler

Updated on September 18, 2022

Comments

  • pyler
    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.

    1. sys/ioctl.h
    2. unistd.h
    3. locale.h
    4. 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 that sys/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
      David Foerster almost 8 years
      FWIW only some of these headers provide interfaces described by POSIX.
  • user.dz
    user.dz over 8 years
    yep, 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
    gmatht about 7 years
    Also, if you are trying to build a particular package (say mutt), sudo apt-get build-dep mutt may be what you really want.