ankane/torchaudio-ruby

fatal error: torch/torch.h: No such file or directory

Closed this issue · 2 comments

b08x commented

I'm not sure where to edit to set the path required to find torch.h

On my system torch.h is located here: /usr/include/torch/csrc/api/include/torch/torch.h

Thanks for doing this by the way, I've always wanted to use this library but have never time to learn python well enough.

Hey @b08x, you can set:

bundle config build.torch-rb --with-torch-dir=/usr
bundle config build.torchaudio --with-torch-dir=/usr

(assuming the libraries are in /usr/lib)

b08x commented

Thank you!