What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
If Rails fails with an error such as Error loading shared library libssl.so.1.1, the failure is usually below Rails: the wkhtmltopdf executable cannot load a native library in the environment where it runs. First identify the exact executable and missing library, then make the binary, operating system, libc, architecture, and runtime libraries compatible. Changing Rails views or PDF options will not fix a process that cannot start.
What the error means
Wicked PDF integrates PDF generation into Rails, but wkhtmltopdf is a separate native command-line process. When the operating-system loader reports a missing shared library, the executable has failed before it can render your HTML. The useful clues are the full missing library name, the binary Rails launched, and the runtime environment of the failing process. The Wicked PDF documentation describes the external executable and its configuration; the wkhtmltopdf downloads guidance explains why binaries may depend on particular system libraries.
A library filename such as libssl.so.1.1 is not interchangeable with every other OpenSSL library. The filename identifies an expected shared-library interface. A runtime that only provides a different ABI may not satisfy it, even if a newer OpenSSL version is installed.
Diagnose the failing runtime before changing Rails
Run diagnostics in the same container or host, architecture, user context, and environment used by the Rails web process or background worker. A successful check from your laptop or a container build stage does not establish that the final production process can start the executable.
#1 Best Overall
- INNOVATIVE CARTRIDGE-FREE PRINTING — No more dealing with lots of tiny ink cartridges; With this wireless document and photo printer each ink bottle set is equivalent to about 90 individual cartridges²
- LESS FREQUENT INK REPLACEMENT — Replacement ink bottles don't have to be changed nearly as often as ink cartridges¹; When you choose this combination printer, scanner and copier you can print up to 4,500 pages black/7,500 color³
- COLOR PRINTING — Up to 2 years of ink in the box4 (and with every replacement ink set) for fewer out-of-ink frustrations
- ZERO CARTRIDGE WASTE — By using an Epson EcoTank printer you can help reduce the amount of cartridge waste ending up in landfills
- HOME PRINTER DESIGNED FOR RELIABILITY — The Epson EcoTank ET-2800 All-in-One Supertank Color Printer creates vivid, detailed prints and documents thanks to Micro Piezo Heat-Free Technology; Fire off 10 ISO pages per minute1 to easily finish large jobs
- Capture the full error. Keep the complete loader message, including every missing library filename. Do not reduce it to “wkhtmltopdf failed.”
- Find the executable Rails actually uses. Check the configured path and the service’s
PATH; do not assume the shell command resolves to the same binary. - Record the platform. Identify the distribution and release, CPU architecture, and libc family and version. This matters especially when distinguishing Alpine’s musl from glibc-based distributions.
- Identify how the binary arrived. It may come from an operating-system package, a copied file, or a Ruby gem. Record the package and version where possible.
- Inspect dependencies. Use the dependency-inspection tools available for that platform.
lddis commonly available on Linux, but tools and output vary; inspect the unresolved dependencies rather than treating one command as universal.
Also run wkhtmltopdf --version in the target environment. If this command itself produces the loader error, you have isolated the failure from Rails rendering.
Confirm which executable Wicked PDF selects
Wicked PDF can be configured with an explicit executable path. If more than one provider or copied binary is present, selecting a path deliberately removes ambiguity. Compare that path with the binary you inspected in the running app environment.
WickedPdf.configure do |config|
config.exe_path = '/usr/local/bin/wkhtmltopdf'
end
Use a path that exists in the final runtime image and is executable by the Rails service user. The project documentation also describes the wkhtmltopdf-binary gem as a way to supply a binary for many Linux and macOS installations. Treat that as a packaging option, not proof that every version supports every platform or includes every needed system library. Verify the actual executable and its dependencies where Rails runs.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsThe configuration setting enable_local_file_access concerns access to local files; it does not repair a dynamic-loader error. Likewise, asset paths and PDF rendering options matter only after the executable starts.
Match the binary to the operating system and libraries
The official wkhtmltopdf packaging FAQ describes incompatibilities caused by differing system-library versions, OpenSSL compatibility, and libc expectations. It notes that Alpine uses musl rather than glibc and that generic builds historically did not work there. Do not treat “Linux” as a sufficient compatibility target.
Rank #2
- CARTRIDGE-FREE PRINTING — Print lab-quality photos, graphics and creative projects; Get vibrant colors and sharp text with Epson's high-accuracy printhead and Claria ET Premium 6-color inks
- INK BOTTLES — Save on photos1 and creative projects with affordable in-house printing; All-in-one printer allows you to print 4" x 6" photos for about 4 cents each vs. 40 cents with traditional ink cartridges1
- LESS FREQUENT INK REPLACEMENT — Replacement ink bottles don't have to be changed nearly as often as ink cartridges¹; Printer, scanner and copier lets you print up to 6,200 color pages³
- PRINT FOR LONGER — Up to 2 years of ink in the box² (and with every replacement ink set) for fewer out-of-ink frustrations with this wireless printer
- ZERO CARTRIDGE WASTE — Epson EcoTank printer helps reduce the amount of cartridge waste ending up in landfills; Cartridge-free printer uses high-yield ink bottles; Each replacement ink bottle set is equivalent to about 100 individual ink cartridges⁴
- Establish whether the binary expects glibc or musl, and whether the final image supplies that libc.
- Compare the missing OpenSSL SONAME with the libraries actually present. For example, a request for
libssl.so.1.1is not fulfilled merely by having another OpenSSL ABI installed. - Prefer a package or build explicitly intended for the deployment distribution, release, and architecture, or use a base image compatible with a supported build.
- In a multi-stage container, install required runtime libraries in the final image stage. Dependencies present only in a discarded build stage are unavailable to the deployed process.
- After changing the image, rerun the version and dependency checks there, as the same user and environment that run Rails.
The downloads page lists wkhtmltopdf 0.12.6 as its stable series released June 11, 2020. That is the page’s stated release information, not confirmation that 0.12.6 is the latest release or that its packages suit a current operating system. Check package availability and compatibility for your target environment rather than relying on an old package table.
Choose a fix based on the specific error
libssl.so.1.1 or libcrypto.so.1.1 is missing
Determine whether the selected binary was linked against OpenSSL 1.1 while the runtime provides a different ABI. A Wicked PDF issue opened April 25, 2024 reports a Rails 7 application with Wicked PDF 2.7.0 and wkhtmltopdf 0.12.5 in an Alpine Docker image. The reporter described an OpenSSL 3 environment and errors requesting both libssl.so.1.1 and libcrypto.so.1.1. This illustrates a binary/runtime mismatch for that reported setup; it is not a compatibility matrix or a universal package recipe. Use a binary and runtime combination that supports one another, or provide the required compatible library through supported packages. Avoid assuming a newer library satisfies an older SONAME request.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallCrashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteThe loader says “not found” without naming a library
Check the executable path, architecture, loader/interpreter, libc, and all unresolved dependencies. An incorrect or incompatible binary may fail in ways that do not point to one obvious library. If the app launches a different file than your manual check, fix the configured path or service environment first.
The failure occurs only on Alpine
Check the libc expectation before adding packages at random. A generic binary built for glibc may not run on a musl-based Alpine image. Select a build intended for the relevant Alpine environment, if available, or use a base image compatible with the binary you need. Confirm by running the executable and a minimal conversion inside the final image.
You are packaging for Lambda or another extracted runtime
The wkhtmltopdf downloads page gives a Lambda-style example that sets LD_LIBRARY_PATH=/opt/lib and FONTCONFIG_PATH=/opt/fonts. Those locations belong to that example’s layout, not a universal Rails configuration. The distribution-specific libraries, configuration, and fonts must accompany the package, and the environment variables must point to their actual locations in your deployment.
Rank #3
- SET IT UP ONCE AND PRINT WITH CONFIDENCE. No complicated maintenance. Just easy, reliable printing you can count on.
- INK FOR YEARS. NOT MONTHS. Up to 2 years of ink included. Get thousands of pages of cartridge-free printing. More pages, less hassle
- KEEPS PRINTING WELL AFTER COMPETITORS HAVE QUIT. No complex maintenance. Sharper text, richer colors.[2] Only with HP Smart Tank
- PREMIUM SUPPORT - Strong technical expertise to solve issues faster
- THE LAST PRINTER YOU'LL EVER NEED. Enjoy years of refillable, cartridge-free printing.
Do not symlink a different library version to the missing SONAME unless the library vendor documents ABI compatibility. A symlink can hide the initial loader message while leaving an incompatible program that crashes or behaves unpredictably.
Verify the repair end to end
- Rebuild or update the final deployment image with the selected binary and required runtime packages.
- As the Rails service user, run the resolved executable’s version command and inspect its dependencies in that image.
- Run a minimal conversion from HTML to PDF inside the same runtime. Confirm the process exits successfully and produces a readable PDF.
- Generate a PDF through the actual Rails path, including the relevant web process or job worker.
- If the executable now starts but styles or images are missing, investigate rendering configuration separately. Wicked PDF’s documentation discusses absolute asset references; that is a document-rendering issue, not a shared-library startup failure.
When to keep wkhtmltopdf—and when to replace it
The project’s status page describes its Qt/WebKit foundation as old and points to alternatives for different rendering needs. Keep the current renderer when its output meets your requirements and you can deploy a reproducible, compatible binary/runtime pair. Consider alternatives when modern JavaScript rendering, security constraints, or ongoing platform compatibility make the existing deployment unsuitable.
| Option | Potential fit | Trade-off to evaluate |
|---|---|---|
| wkhtmltopdf | Existing applications that depend on its current output and can supply a compatible runtime. | Older Qt/WebKit base and distribution-specific native dependencies; verify against the target platform. |
| WeasyPrint | Controlled report generation, as suggested by the project status page. | Render the application’s actual templates and compare output and deployment requirements before migrating. |
| Prince | Controlled report generation; the project status page names this commercial option. | Evaluate licensing and output against your own requirements; the cited source does not establish a universal advantage. |
| Puppeteer | Pages that need more dynamic JavaScript rendering, as suggested by the project status page. | Test the browser-based rendering and deployment requirements for your workload. |
The cited project pages do not establish that one replacement is best for every Rails application. Compare representative PDFs, page breaks, fonts, assets, JavaScript needs, deployment reproducibility, and migration effort.
Security implications for Rails PDF generation
The official downloads guidance warns against using wkhtmltopdf with untrusted HTML and says user-supplied HTML or JavaScript must be sanitized because it can put the server at risk. The project status page recommends using a mandatory access control system such as AppArmor or SELinux to constrain risk. If users can influence content being rendered, treat PDF generation as execution of a potentially hostile input: sanitize appropriately and isolate the rendering process rather than exposing it unrestricted access to the application environment.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Or skip the browser setup
If your task is to capture a web page as an image or PDF rather than generate a Rails document, ScreenshotNeo is a screenshot API and MCP server for developers. One GET request can return a PNG, JPEG, WebP, or PDF; its API options include full-page capture, a CSS selector, device/viewport settings, custom CSS and JavaScript, and waits for selectors or network idle. It is a different tool from wkhtmltopdf and does not repair a Rails executable’s missing native library.
Rank #4
- Wireless Bluetooth Printer: Portable thermal printer compatible with iPhone, Android phones, iPad and tablet computers via Bluetooth. For smartphones, please download the "Nada Print" App. You can also connect to laptops and computers for printing using a USB-C cable. (Note: Laptops and computers can only be connected via USB and require the installation of a driver first. Bluetooth connection is not supported.)
- No-ink printing: Only supports US Letter and A4 size thermal paper.(Doesn't support regular paper) The no-ink portable thermal printer uses direct thermal technology, requiring no ink, toner or ribbons, making it environmentally friendly, cost-effective and time-saving. The thermal printer package comes with a roll of US Letter thermal printing paper. Note: When installing the paper, remember to switch the paper size switch on APP
- Clear Print: NDYIN N80 portable thermal printer adopts high-definition printing technology, with a 203DPI resolution to provide you with clear printing results. This mobile printer is compatible with roll paper, folded paper and tattoo transfer paper, supporting printing from your mobile phone PDF, Word, pictures and web pages anytime and anywhere. It is recommended to use our NDYIN thermal paper to achieve good printing quality
- Portable wireless printer for travel: The thermal printer is equipped with a built-in 1500mAh rechargeable battery, which can print 160 sheets of 8.5" x 11" thermal paper after being fully charged. It weighs only 1.5 pounds and is compact in size. This ink-free portable printer can be easily carried in a backpack or briefcase! It is perfect for business travel, cars, small offices, construction sites, schools and homes. You can print documents, contracts, invoices and boarding passes anytime and anywhere
- The N80 thermal printer has a wide range of uses. The package includes the N80 printer, a roll of US Letter paper(7m/roll), a user manual, a guide card, a type-C soft cable and a type C adapter. Note: The charging adapter is not included. Special thermal paper is required for use; ordinary paper cannot be used. This ink-free portable thermal printer is suitable for various scenarios such as home, school, travel, office, and outdoor, meeting the printing needs of different groups of people. This tattoo template printer is also compatible with tattoo transfer paper, making it an ideal choice for tattoo art
cURL example, also shown in the ScreenshotNeo API documentation:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Or use Python:
import requests
r = requests.get(
"https://api.screenshotneo.com/v1/shot",
params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"},
timeout=90,
)
open("shot.webp", "wb").write(r.content)
Or Node.js:
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
ScreenshotNeo accepts cookie or consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; those steps can be disabled. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, with response headers indicating the page verdict and billing status. Its MCP server provides take_screenshot, get_page_info, and capture_pdf for AI agents using Claude, Cursor, or another MCP client.
The Free plan includes 1,000 screenshots per month without a card. Paid plans start at $5 for 3,000 screenshots; every feature is available on every plan. Sign up for the free plan to try it without a card.
Frequently Asked Questions
Does installing the Wicked PDF gem install wkhtmltopdf?
No. Wicked PDF is the Rails integration; it invokes an external executable. Confirm which binary is installed and selected in the runtime where Rails runs.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Will enabling local file access fix a missing shared library?
No. Local file access affects rendering access to files after the executable starts; it cannot satisfy a missing native dependency.
Why does the same PDF work locally but fail in production?
The executable, operating system, libc, architecture, and available shared libraries can differ between local and production environments. Diagnose inside the failing deployment runtime.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

