rails gem 'wicked_pdf' not working on railway it is dependent on "wkhtmltopdf-binary" gem

So I am trying to get a pdf generator gem working call 'wicked_pdf'. It is dependent on another gem which call gem "wkhtmltopdf-binary". This works in development but not production. There is a gem specifically for Heroku called gem "wkhtmltopdf-heroku". It does not work either. "wkhtmltopdf is an open source (LGPLv3) command line tools to render HTML into PDF and various image formats using the Qt WebKit rendering engine"
11 Replies
Percy
Percy2y ago
Project ID: N/A
Percy
Percy2y ago
No search results found.
⚠️ experimental feature
bweathers#2023
N/A
Rawlo Dawgins
Rawlo Dawgins2y ago
same issue, not able to install wkhtmltopdf
nebula
nebula2y ago
set NIXPACKS_PKGS to wkhtmltopdf
Rawlo Dawgins
Rawlo Dawgins2y ago
when i do that it keeps building for 5+ minutes stuck trying to install qtwebkit
nebula
nebula2y ago
logs?
Rawlo Dawgins
Rawlo Dawgins2y ago
/tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/JavaScriptCore/bytecode/GetByIdVariant.cpp: In member function 'JSC::GetByIdVariant& JSC::GetByIdVariant::operator=(const JSC::GetByIdVariant&)': #8 248.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/JavaScriptCore/bytecode/GetByIdVariant.cpp:64:28: warning: implicitly-declared 'JSC::StructureSet& JSC::StructureSet::operator=(const JSC::StructureSet&)' is deprecated [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-copy-Wdeprecated-copy8;;]
Warning Options (Using the GNU Compiler Collection (GCC))
Warning Options (Using the GNU Compiler Collection (GCC))
Rawlo Dawgins
Rawlo Dawgins2y ago
/tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/JavaScriptCore/bytecode/StructureSet.h:60:19: note: because 'JSC::StructureSet' has user-provided 'JSC::StructureSet::StructureSet(const JSC::StructureSet&)' #8 248.6 60 | ALWAYS_INLINE StructureSet(const StructureSet& other) theres 5000+ lines of logs trying to build files from tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0 fixed with NIXPACKS_PKGS=wkhtmltopdf-bin
bweathers#2023
So sorry to come in late on this; how did you add the NIXPACKS_PKGS=wkhtmltopdf-bin I have not added a NIXPACK before
Brody
Brody2y ago
they set that in the service variables
Want results from more Discord servers?
Add your server