[英]Tex error occurred while upgrading octave with brew
I first installed octave through brew with the instruction on the office website. 我首先按照办公室网站上的说明通过brew安装了八度音阶。 One day when I entered brew update && brew upgrade
, octave started to upgrade but one error occurred said 进入brew update && brew upgrade
一天,八度开始升级,但发生一个错误
You don't have a working TeX binary (tex) installed anywhere in your PATH, and texi2dvi cannot proceed without one. 您没有在PATH中的任何位置安装有效的TeX二进制(tex),并且texi2dvi不能没有它而继续进行。 If you want to use this script, you'll need to install TeX (if you don't have it) or change your PATH or TEX environment variable (if you do). 如果要使用此脚本,则需要安装TeX(如果没有)或更改PATH或TEX环境变量(如果有)。 See the --help output for more details. 有关更多详细信息,请参见--help输出。
So I entered brew cask install mactex
to install tex and added the Library/TeX/Distributions/.DefaultTeX/Contents/Programs/texbin
to the PATH, when I run tex
, it correctly processed: terminal screenshot 因此我进入了brew cask install mactex
来安装tex,并将Library/TeX/Distributions/.DefaultTeX/Contents/Programs/texbin
到PATH中,当我运行tex
,它已正确处理: 终端屏幕截图
Then I run brew upgrade
but the same error occurred again. 然后,我运行brew upgrade
但再次发生相同的错误。
I realized that the --without-docs
argument may fix this problem but if I want to install docs (since I have already installed tex) what should I do? 我意识到--without-docs
参数可以解决此问题,但是如果我想安装docs(因为我已经安装了tex),该怎么办?
I had similar problem while installing another program (not octave) and after looking around I found that I needed to install TeTex ( http://www.tug.org/teTeX/ ) or TexLive, however I decided to install TexLive because TeTex is not mantained anymore... For me it worked after installing Texlive on the basic configuration. 我在安装另一个程序(不是八度)时遇到了类似的问题,环顾四周后发现我需要安装TeTex( http://www.tug.org/teTeX/ )或TexLive,但是我决定安装TexLive是因为TeTex是不再需要维护...对我来说,它是在基本配置上安装Texlive之后工作的。 You can follow the instructions over here: 您可以按照此处的说明进行操作:
http://www.tug.org/texlive/quickinstall.html http://www.tug.org/texlive/quickinstall.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.