Flama
Flama

Reputation: 868

netinet/sctp.h: No such file or directory

I'm unable to include in any of my files. It always fails during compilation. I got the lksctp-tools package installed.

I run

     gcc -Wall -lsctp -o client admin.c deserializer.c input_parser.c main.c receive_response.c send_request.c serializer.c utils.c

And I get:

main.c:2:10: fatal error: netinet/sctp.h: No such file or directory
#include <netinet/sctp.h>
      ^~~~~~~~~~~~~~~~
compilation terminated.

I'm using Fedora, I don't know if that changes anything. However the project seems to work fine on CLion.

Upvotes: 3

Views: 20893

Answers (3)

user13067919
user13067919

Reputation:

For Amazon Linux 2:

yum -y install lksctp-tools-devel

Upvotes: 1

rashok
rashok

Reputation: 13464

On ubuntu need to install libsctp-dev.

sudo apt install libsctp-dev

Upvotes: 13

Flama
Flama

Reputation: 868

ok turns out I had to do the following:

yum install lksctp-tools-dev

Upvotes: 2

Related Questions