Octave for other Unix systems: Difference between revisions

→‎FreeBSD: Update and facilitate reading of this section.
(Strip outdated Hydra section. Update link to build page.)
(→‎FreeBSD: Update and facilitate reading of this section.)
Line 2: Line 2:


==FreeBSD==
==FreeBSD==
If you're running FreeBSD you have two options: you can build from source (via ports) or get the precompiled package:


*Using ports:  
The easiest way to obtain GNU Octave is to install the precompiled package as root user:
Make sure you have your port tree updated. Check FreeBSD documentation about how to do that. Then, as root, type:  
 
pkg_add -r octave
 
Another possibility is to build Octave from source via Ports<ref>https://svnweb.freebsd.org/ports/head/math/octave</ref>. Make sure you have your Port tree updated. Check [https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html FreeBSD documentation] about how to do that. Then, as root, type:  
 
  cd /usr/ports/math/octave  
  cd /usr/ports/math/octave  
  make install clean  
  make install clean  


After a while you should have your octave ready to use.
Some [[Octave Forge]] packages can be installed in the same way:


*Using packages:
  pkg_add -r octave-forge
As root type:
  pkg_add -r octave  
If everything goes fine, it'll fetch the package and install it.


Either way it may also be a good idea to install the package called "octave-forge"
or via Ports<ref>https://svnweb.freebsd.org/ports/head/math/octave-forge</ref>.


== OpenBSD ==
== OpenBSD ==