0

When running a "make" command, fatal errors are returned due to missing linux headers.

Example: fatal error: file not found

TruBlu
  • 441
  • 1
  • 4
  • 15
  • 2
    Where you go next depends on what you want to do next. (And/or vise versa) TIPC is a cluster-level comm protocol. Are you planning to build a cluster of Macs? Do you want to use other (non-TIPC) options of the software you are building? – n. m. could be an AI Jul 30 '22 at 07:09
  • What are you trying to build? – stark Jul 30 '22 at 17:07
  • The program you are trying to build may simply not support Mac, in which case you probably proceed by choosing either a different program or a different machine to build and run it on (a Linux machine). On the other hand, possibly it supports Mac, but you have to do something to configure the build appropriately. If so, the program documentation should tell you about that. – John Bollinger Jul 30 '22 at 17:10
  • I suppose my question can be simplified. Is there a way to get linux-headers for mac? – TruBlu Jul 30 '22 at 23:32
  • Yes, there is a way. You setup the cross-compilation environment in which you may be able to use Linux kernel headers and compile **for Linux** on Mac. But compiling **for Mac** with Linux kernel headers is non-sense. – 0andriy Jul 31 '22 at 21:56
  • @TruBlu yes you can get the Linux headers on a Mac. Clone the Linux git repo. – Bill Morgan Aug 01 '22 at 00:17

1 Answers1

0

I resolved this issue by creating a Ubuntu virtual machine (VM) using VirtualBox.

  • Installed required software
  • Mounted shared folder

The make commands ran successfully in the vm.

TruBlu
  • 441
  • 1
  • 4
  • 15