简体   繁体   中英

Error while installing Octave

I am trying to install Octave on OS X. When executing brew install octave I get the following error:

octave: A LaTeX distribution is required to install.

You can install MacTeX distribution from:
  http://www.tug.org/mactex/

Make sure that "/usr/texbin", or the location you installed it to, is in
your PATH before proceeding.

I downloaded and installed MacTeX but it is still not working :(

How can I fix this?

如果您想避免MacTeX依赖,可以使用brew安装Octave,如下所示:

brew install octave --without-docs

"Make sure that "/usr/texbin", or the location you installed it to, is in your PATH before proceeding."

This message may be the hint of the answer for you.

You need to set the PATH so that the Tex could be called from anywhere in your system. Adding the following line in the .bash_profile may fix it.

export PATH=$PATH:/usr/texbin/

The reason why the texlive command does not work have also same cause on this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM