From 7a52cf13b54a201f4a97fea656105922ce1cf210 Mon Sep 17 00:00:00 2001 From: nicolas Date: Sat, 21 Apr 2018 17:49:42 +0200 Subject: [PATCH] - add an explanation for vagrant users and the error 126 --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index a7b50c7..e0d0ddb 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,22 @@ The binary will then be located at: Also a symlink will be created in your configured bin/ folder, for example: vendor/bin/wkhtmltopdf-i386 + +### Vagrant users + +If you have the error "126" you have to copy the binary file outside the sync directory. + +```bash +cp vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64 /opt/ +chmod +x /opt/wkhtmltopdf-amd64 +``` + +You have to reconfigure your application or just create a symlink + +```bash +rm vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64 +ln -s /opt/wkhtmltopdf-amd64 vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64 +``` ### Usage