在 Laradock 上使用 Wkhtmltopdf
Use Wkhtmltopdf on Laradock
我已经下载了 Laradock。
现在我想使用 WKHTMLTOPDF 并且我已经在我的应用程序中安装了 Snappy 并且 https://github.com/h4cc/wkhtmltopdf-amd64 用于二进制文件。
但是如果我尝试例如:
./wkhtmltopdf-amd64 http://google.com google.pdf
我收到此错误:
QSslSocket: cannot resolve CRYPTO_num_locks 10%
QSslSocket: cannot resolve CRYPTO_set_id_callback
QSslSocket: cannot resolve CRYPTO_set_locking_callback
QSslSocket: cannot resolve sk_free
QSslSocket: cannot resolve sk_num QSslSocket: cannot resolve
sk_pop_free
QSslSocket: cannot resolve sk_value
QSslSocket: cannot resolve SSL_library_init
QSslSocket: cannot resolve SSL_load_error_strings
QSslSocket: cannot resolve SSLv3_client_method
QSslSocket: cannot resolve SSLv23_client_method
QSslSocket: cannot resolve SSLv3_server_method
QSslSocket: cannot resolve SSLv23_server_method
QSslSocket: cannot resolve X509_STORE_CTX_get_chain
QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
QSslSocket: cannot resolve SSLeay
QSslSocket: cannot call unresolved function CRYPTO_num_locks
QSslSocket: cannot call unresolved function CRYPTO_set_id_callback
QSslSocket: cannot call unresolved function
CRYPTO_set_locking_callback
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function sk_num
QSslSocket: cannot call unresolved function SSLv23_client_method7%
QSslSocket: cannot call unresolved function SSL_library_init Warning:
Failed to load
CRYPTO_num_locks QSslSocket: cannot call unresolved function
CRYPTO_set_id_callback QSslSocket: cannot call unresolved function
CRYPTO_set_locking_callbac
我读到我必须安装这个包 libssl1.0-dev 但是当我尝试在 laradock 中安装时我收到:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libssl1.0-dev is not available, but is referred to by another
package. This may mean that the package is missing, has been
obsoleted, or is only available from another source
E: Package 'libssl1.0-dev' has no installation candidate
如何在 Laradock 上使用 wkhtmltopdf?
我已经用 wkhtmltopdf 12.5 版解决了。
12.4 版本似乎存在此错误。
我已经下载了 Laradock。 现在我想使用 WKHTMLTOPDF 并且我已经在我的应用程序中安装了 Snappy 并且 https://github.com/h4cc/wkhtmltopdf-amd64 用于二进制文件。
但是如果我尝试例如:
./wkhtmltopdf-amd64 http://google.com google.pdf
我收到此错误:
QSslSocket: cannot resolve CRYPTO_num_locks 10%
QSslSocket: cannot resolve CRYPTO_set_id_callback
QSslSocket: cannot resolve CRYPTO_set_locking_callback
QSslSocket: cannot resolve sk_free
QSslSocket: cannot resolve sk_num QSslSocket: cannot resolve sk_pop_free
QSslSocket: cannot resolve sk_value
QSslSocket: cannot resolve SSL_library_init
QSslSocket: cannot resolve SSL_load_error_strings
QSslSocket: cannot resolve SSLv3_client_method
QSslSocket: cannot resolve SSLv23_client_method
QSslSocket: cannot resolve SSLv3_server_method
QSslSocket: cannot resolve SSLv23_server_method
QSslSocket: cannot resolve X509_STORE_CTX_get_chain
QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
QSslSocket: cannot resolve SSLeay
QSslSocket: cannot call unresolved function CRYPTO_num_locks
QSslSocket: cannot call unresolved function CRYPTO_set_id_callback
QSslSocket: cannot call unresolved function CRYPTO_set_locking_callback
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function sk_num
QSslSocket: cannot call unresolved function SSLv23_client_method7%
QSslSocket: cannot call unresolved function SSL_library_init Warning: Failed to load
CRYPTO_num_locks QSslSocket: cannot call unresolved function
CRYPTO_set_id_callback QSslSocket: cannot call unresolved function
CRYPTO_set_locking_callbac
我读到我必须安装这个包 libssl1.0-dev 但是当我尝试在 laradock 中安装时我收到:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libssl1.0-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'libssl1.0-dev' has no installation candidate
如何在 Laradock 上使用 wkhtmltopdf?
我已经用 wkhtmltopdf 12.5 版解决了。
12.4 版本似乎存在此错误。