kevinboone / epub2txt2

A simple command-line utility for Linux, for extracting text from EPUB documents.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

malloc.h not found after `make` command

Tim-at-AST opened this issue · comments

I'm on mac OSX 10.13.1, MacBook Pro (15-inch, Late 2016)

When I tried to make I got a compilation error malloc.h not found.

After googling, I solved this by:

  1. touch malloc.h
  2. replace text in all *.c files
    #include <malloc.h> to #include "malloc.h"

Whilst this may not be the best solution, it seems to work, and I have converted a few sample epubs without any problems.

I just ran into the same thing. Apparently on Mac they prefer not to use malloc.h but instead stdlib.h. I made a pull request for it.

Thanks for the fix for this, which I have merged. I am aware of this little foibles with the Mac gcc, but I don't have a Mac system to test with, so they often get past me.