---
title: How to fix missing missing yeccpre.hrl error
date: '2023-01-29T00:00:00+00:00'
url: https://www.abhinav.co/how-to-fix-yeccpre-hrl-no-file-or-directory-error
summary: When deploying a Phoenix Elixir app you may see this error. Fix is quite
  simple though.
tags:
- Ubuntu
- Elixir
- Phoenix
- Erlang
- Deployment
author: Abhinav Saxena
---

# How to fix missing missing yeccpre.hrl error

If you see missing `yeccpre.hrl` error like the following:
```sh
/usr/lib/erlang/lib/parsetools-2.3.2/include/yeccpre.hrl: no such file or directory
```

You simply need to install `erlang-dev` package. On Ubuntu Linux, you can do the following:

```sh
sudo apt-get install erlang-dev
```
