janestreet / bin_prot

Binary protocol generator
MIT License
73 stars 21 forks source link

Installation failure on Linux #25

Open jaisw7 opened 8 months ago

jaisw7 commented 8 months ago

Error

1 | (rule
2 |  (targets cflags.sexp)
3 |  (deps
4 |   (:first_dep cflags.sh))
5 |  (action
6 |   (bash "./%{first_dep} > %{targets}")))
./cflags.sh: 2: set: Illegal option -o pipefail

Source

#!/bin/sh
set -e -o pipefail

Cause:

set -e -o pipefail is a bash construct

Fix:

#!/bin/bash
ShashankVM commented 8 months ago

In Ubuntu, this was the work around I used: sudo dpkg-reconfigure dash

And then selecting No.