What package do i need to install for using routing sockets?

前端 未结 5 1230
小鲜肉
小鲜肉 2020-12-09 21:59

i am trying code given in Unix Network Programming by Richard Stevens. but i am not able to get the code to compile.

here is the source code. http://www.cs.cmu.edu/a

5条回答
  •  旧时难觅i
    2020-12-09 22:22

    I'm not on a machine where I can do this right now, but perhaps I can still help. If your distribution uses yum (e.g. RHEL):

    yum provides if_dl.h
    

    Or if you use apt (e.g. Ubuntu/Debian):

    sudo apt-get install apt-file
    sudo apt-file update
    apt-file search if_dl.h
    

    If apt-file is already installed, the first step won't be necessary, and I can't remember for sure if the second is. Also, I believe both package managers work both with filename and with full path.

    Hopefully this will work for you or someone else reading this, and you'll get your answer!

提交回复
热议问题