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?
If you want to avoid the MacTeX dependency you can install Octave with brew as follows:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With