freedomofpress / dangerzone

Take potentially dangerous PDFs, office documents, or images and convert them to safe PDFs
https://dangerzone.rocks/
GNU Affero General Public License v3.0
3.59k stars 170 forks source link

libclang not found in build-image #670

Closed prateekj117 closed 8 months ago

prateekj117 commented 8 months ago

I was trying to run dangerzone on my local (Mac OS). When running the following command:

python3 ./install/common/build-image.py

I got the following error:

OSError: Error loading shared library libclang.so: No such file or directory

Solution: We need to add clang-dev as a dependency when running apk add.

deeplow commented 8 months ago

Thanks at lot for taking a look at the project! Our code has been on a significant refactor (due to #627) and that already includes this change and it will hopefully be merged soon. Sorry about the inconvenience.

So I'll close this now. Regardless, thanks for the contribution!

deeplow commented 8 months ago

Also, if I recall correctly, this only happens on apple arm macs. So the reason why you failed to run from our main branch was because we don't yet have any CI for apple silicon (https://github.com/freedomofpress/dangerzone/issues/520). We should add that support to make sure we notice the breakage on main sooner).

prateekj117 commented 8 months ago

@deeplow Agree! Thanks for merging the MR though. Really appreciate it!