我想在托管上运行我的机器人;为了让机器人工作,我需要 wkhtmltopdf。 我没有root,无法使用sudo。
通过命令
uname -a
:
Linux de47dd89-827f-4271-9cad-0cbf6b95d4e6 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 GNU/Linux
。
但是
cat /etc/os-release
:
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
我不懂架构,所以尝试安装amd和arm,但是我没有root,无法安装
deb
文件...旧版本发布在.tar.bz2
。
当我从
如何在基于Linux(共享托管)的网络服务器上安装wkhtmltopdf时
tar xvjf wkhtmltopdf-0.9.9-static-i386.tar.bz2 mv wkhtmltopdf-i386 /usr/local/bin/wkhtmltopdf chmod +x /usr/local/bin/wkhtmltopdf
我得到这个:
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now```
I installed package, unpacked it on my Windows with Winrar, sent it to the hosting, tried to run: ```./wkhtmltopdf -i386 http://www.example.com example.pdf``` and got an error:
```/bin/sh: 1: ./wkhtmltopdf-i386: Permission denied```
If I overlooked an already existing question with my problem - sorry, I'm at 0:46 am...
And, please, don't swear too much about the design, that's my first question...
我成功解压了deb包,但是wkhtmltopdf需要一定的系统库(天哪,那是两周前的事了,我完全忘了它是什么) 我看到我无法将 wkhtmltopdf 下载到 Debian12,因为它不存在 -_-