Skip to content

src/uart_comm_unix.c:34:10: fatal error: linux/serial.h: No such file or directory on Mac OS #178

Open
@datpt11

Description

@datpt11

Setup

  • Version: 1.5.3
  • OS: OSX
  • Platform: MacBook

Expected Behavior

Run on Mac OS

Actual Behavior

==> circuits_uart CC circuits_uart.o CC debug_tests.o CC erlcmd.o CC uart_comm.o CC uart_comm_unix.o src/uart_comm_unix.c:34:10: fatal error: linux/serial.h: No such file or directory 34 | #include <linux/serial.h> | ^~~~~~~~~~~~~~~~ compilation terminated. make: *** [src/Makefile:107: /app/_build/dev/lib/circuits_uart/obj/uart_comm_unix.o] Error 1 could not compile dependency :circuits_uart, "mix compile" failed. You can recompile this dependency with "mix deps.compile circuits_uart", update it with "mix deps.update circuits_uart" or clean it with "mix deps.clean circuits_uart" ==> pos_api ** (Mix) Could not compile with "make" (exit status: 2). You need to have gcc and make installed. If you are using Ubuntu or any other Debian-based system, install the packages "build-essential". Also install "erlang-dev" package if not included in your Erlang/OTP version. If you're on Fedora, run "dnf group install 'Development Tools'".

Steps to Reproduce the Problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions