Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 944
Spearfisher Avatar asked May 20 '14 15:05

Spearfisher


2 Answers

If you want to avoid the MacTeX dependency you can install Octave with brew as follows:

brew install octave --without-docs
like image 132
teichmann Avatar answered Sep 19 '22 15:09

teichmann


"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.

like image 22
tak Avatar answered Sep 19 '22 15:09

tak