Ubuntu Install by source code Octave 4.0

Source: Internet
Author: User

This tutorial/note is intended to guide how to install Octave on Ubuntu and other Linux systems via source code.

Octave Brief Introduction

Octave is the GNU's Mathematical tool software for the replacement of MATLAB, which is highly compatible with MATLAB. It also supports some unique syntax that is clearer and more consistent with the Linux community's habits.

Although in some detail the toolkit and some features, less efficient than MATLAB. But for the average user, it is a valid and legitimate free replacement tool for MATLAB.
3.8 Before the official GUI interface was not officially available, this was undoubtedly a major impediment to its popularity, making it necessary to download third-party tools such as Qtoctave in order to use the GUI.
The 3.8 version number adds an experimental GUI interface. Starting with the 4.0 version, the GUI interface becomes the default feature.

Compile and install under Ubuntu

Users of Windows users and some Linux version numbers can directly enjoy the octave officially compiled version 4.0, and other version numbers can only be compiled from source code.


Known. Ubuntu official source for the software upgrade follow-up is very slow. When I wrote this tutorial "2015-07-14", Ubuntu official source on the latest version number is 3.8.1.

Detailed procedures such as the following:

sudo apt-get build-dep octavesudo apt-get install libportaudio-dev libqt4-opengl-dev     #for gui#sudo apt-get install  libqt4-dev libqscintilla2-dev        #for gui, (unnecessary for Ubuntu)#sudo apt-get install llvm  #for jitwget https://ftp.gnu.org/gnu/octave/octave-4.0.0.tar.gztar xzf octave-4.0.0.tar.gzcd octave-4.0.0./configure#./configure --enable-jitmakemake checksudo make install

Description

    • Installing dependent libraries
      – I'm too bitter for myself. Can take advantage of Apt-get's BUILD-DEP function. It will be on its own initiative to install the old version number of the octave required by the octave of the old version number on the source of the library, the normal situation will not be too much difference.
      – In order to use the GUI, you also need to supplement Libportaudio-dev Libqt4-opengl-dev, otherwise you will see a warning "Qt libraries not found–disabling GUI" after configure. The resulting compiled octave has no GUI.
      – If you intend to use JIT to accelerate the looping portion of a mathematical script. You need to install LLVM. (You need to explicitly spend the part of the code that you want to JIT-optimize)
    • Download extract source code package
      – After octave upgrade, be careful to enter the correct file name
    • Configure
      – Assuming JIT is required, add –enable-jit
      – Other options Please enter the ./configure --help command to view
      – Keep an eye out for the final summary and warning of the output, depending on the library that needs to be filled (bison, and some other icon-related libraries can also be included.) For more information, see the instructions in the warning message)
    • Compile
      – Best make check to see if compilation is successful and correct
    • Install the compiled files to the system path (assuming you need them)

Ubuntu Install by source code Octave 4.0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.