如何在 PHP/apache 上安装 mimetex?
所以我尝试在我的服务器上使用 LaTeX,但我需要 mimetex。我不知道如何做到这一点,也找不到任何教程。基本上我对服务器的了解就是如何 ssh 进入我的服务器......仅此而已。我希望这会像做 apt-get {blah} 这样的事情一样简单......但我不知道。任何人都可以向我提供或至少为我指明如何设置 mimetex 的正确方向吗?
谢谢
So I'm trying to use the LaTeX on my server but I need mimetex. I have no idea how to do this nor have I been able to find any tutorials. Basically all I know about servers is how to ssh into my server... and thats about it. I was hoping it would be as easy as doing something like apt-get {blah}... but I have no idea. Can anyone provide me or at least point me in the right direction on how to go about setting up mimetex?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用的是基于 Debian 的发行版(即 Debian、Ubuntu 等),您将拥有 apt-get 命令行命令,它允许您安装软件包。
首先,你必须搜索确切的包名称;为此,命令是 apt-cache :
因此,搜索“mimetex”会得到两个结果;显然,第一个就是你想要的。
现在,您可以使用 apt-get 来安装软件包:
请注意,此命令必须以 root 身份启动——这意味着是服务器的管理员。
如果您使用 Ubuntu,您将使用它,作为非 root :
不过,这将要求您有权限以 root 身份执行命令(为了简化:“sudo”内容是说您想要以 root 身份执行的命令)
再说一遍,如果使用基于 Debian 的发行版,另一种解决方案是使用 aptitude 工具,我相信它现在是推荐的工具(而不是 apt-get)——我不使用它,但命令应该相当简单。相似的。
无论如何,您都可以使用
或
来获得一些帮助(使用“q”键退出)
如果您使用某种基于 Redhat 的发行版(例如 centOS),则必须使用“
yum
”命令。抱歉,我无法告诉您有关该问题的任何信息,但您可能会在互联网上找到很多帮助;并且仍然有
man
命令;-)旁注:如果您对 Linux 和命令行一无所知,那么以 root 身份访问服务器来执行此类操作可能不是最明智的主意;您没有人担任该服务器的管理员吗?
If you are on a Debian-based distribution (ie, Debian, Ubuntu, ...), you'll have the apt-get command-line command, which allows you to install packages.
First of all, you have to search for the exact package name ; the command, for that, is apt-cache :
So, searching for "mimetex" got you two results ; obviously, the first one is the one you want.
Now, you can use apt-get to install the package :
Note that this command must be launched as root -- which means being administrator of the server.
If you are using Ubuntu, you'll use this, as non-root :
Still, this will require that you have privileges to execute commands as root (to simplify : the "sudo" stuff being to say that you want the command executed as root)
Again, if using a Debian-based distribution, another solution would be to use the aptitude tool, which is now the recommend one (instead of apt-get), I believe -- I don't use it, but commands should be quite similar.
In any case, you can use
or
to get some help (use the "q" key to quit)
If you are using some kind of Redhat-based distribution (like centOS), you'll have to use the "
yum
" command.I won't be able to tell you anything about that one, sorry -- but you might find plenty of help on the Internet ; and there is still the
man
command ;-)As a sidenote : if you don't know anything about Linux and command-line, accessing your server as root to do that kind of stuff might not be the wisest idea ; don't you have someone that acts as administrator of that server ?