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
)