Skip to content

Instantly share code, notes, and snippets.

@Micrified
Last active November 13, 2019 11:39
Show Gist options
  • Save Micrified/f2d19ba2eedcdc163c8fdd56059494ba to your computer and use it in GitHub Desktop.
Save Micrified/f2d19ba2eedcdc163c8fdd56059494ba to your computer and use it in GitHub Desktop.
WFDB file solutions

When you get the error: init: can't open header for ...

Basically locate what directory your database files are in. Suppose it is:

  • /Users/Owatch/Documents/Academics/TU/y2/b1/IoT-Seminar-IN4398/wfdb/local/database

Then simply export the WFDB environment variable:

  • WFDB=/Users/Owatch/Documents/Academics/TU/y2/b1/IoT-Seminar-IN4398/wfdb/local:/Users/Owatch/Documents/Academics/TU/y2/b1/IoT-Seminar-IN4398/wfdb/local/database LC_CTYPE=UTF-8

I chose a custom installation location (not /usr/local). Otherwise you would probably want to modify environment variableto use the default location (i.e. /usr/local/database)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment