Octave for Red Hat Linux systems: Difference between revisions

Jump to navigation Jump to search
Small changes. Add categories.
m (Add icoutils and librsvg2-tools to the needed packages)
(Small changes. Add categories.)
(9 intermediate revisions by 7 users not shown)
Line 1: Line 1:
For RedHat-based distributions like RedHat, CentOS, Fedora, Scientific Linux ...
For RedHat-based distributions like RedHat, CentOS, Fedora, Scientific Linux, ...


=== Unspecific RH ===
=== Generic RedHat ===


Tested Fedora 20, but not completely.
Tested Fedora 20, but not completely.
Line 8: Line 8:
   lapack pcre-devel readline-devel readline fftw-devel glpk-devel suitesparse suitesparse-devel gnuplot libcurl-devel zlib-devel \
   lapack pcre-devel readline-devel readline fftw-devel glpk-devel suitesparse suitesparse-devel gnuplot libcurl-devel zlib-devel \
   flex texlive gperf fltk-devel qhull-devel hdf5-devel gl2ps-devel qrupdate-devel arpack-devel qscintilla-devel llvm-devel qt-devel \
   flex texlive gperf fltk-devel qhull-devel hdf5-devel gl2ps-devel qrupdate-devel arpack-devel qscintilla-devel llvm-devel qt-devel \
   bison ghostscript-devel librsvg2-tools icoutils
   bison ghostscript-devel librsvg2-tools icoutils texlive-metapost


=== CentOS ===
=== CentOS ===


Install base CentOS 6.4 system from minimal install disk.
Enable use of [https://fedoraproject.org/wiki/EPEL Extra Packages for Enterprise Linux (EPEL)] AND THEN install octave dependencies development packages:
netinstall disk does not work from local iso disk image.
 
==== Setup Network ====
 
reboot and start the network because it is disabled by default:
 
    ifup eth0
    dhclient eth0
 
edit `/etc/sysconfig/network-scripts/ifcfg-eth0` to enable on next boot. change `ONBOOT` to yes
 
 
==== Install X11/DE ====
 
update yum
 
    yum update -y
 
install desktop environment using:
 
    yum -y groupinstall basic-desktop desktop-platform x11 fonts
 
set system to boot to graphical interface by default
 
    edit /etc/inittab and set default run level to 5
    init 5
 
==== Prepare system and dependencies ====
 
finish setting up system and creating user
 
configure sudo
 
    su
    edit /etc/sudoers file to enable sudo for wheel group
    edit /etc/group and add new user to wheel group
 
Remaining commands done with sudo
 
enable use of Extra Packages for Enterprise Linux (EPEL)
 
    yum -y install wget
    wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    rpm -Uvh epel-release-6-8.noarch.rpm
 
install octave dependencies development packages:


     yum -y install yum-utils
     yum -y install yum-utils
Line 65: Line 19:
     yum -y install epstool transfig pstoedit qscintilla-devel
     yum -y install epstool transfig pstoedit qscintilla-devel


The arpack-devel package distributed with CentOS 7 (arpack-devel-3.1.3-2.el7.x86_64) seems a bit old, as routine "seupdate" seems not recognized during
the "configure" step. This can be solved by installing arpack from github:
    git clone git@github.com:opencollab/arpack-ng.git
    cd arpack-ng
    ./bootstrap
    ./configure --prefix="some local prefix"
    make; make install


===== prepare installation of octave =====
Current release as of Aug. 20th 2018 seems to compile OK with CentOS blas-devel
 
===== Prepare installation of Octave =====


The remaining steps do not need to be done as root, except for
The remaining steps do not need to be done as root, except for
Line 84: Line 47:
     mkdir src build
     mkdir src build


===== get source code of octave and compile it=====
===== Compiling Octave from source =====


check out a copy of the octave sources in the src directory
Check out a copy of the octave sources in the src directory


     cd src
     cd src
Line 106: Line 69:
     make check
     make check


* If everything looks OK (a few failures are probably normal for the
* If everything looks OK (a few failures are probably normal for the development version) install it
  development version) install it


     make install
     make install
[[Category:GNU/Linux]]
[[Category:Installation]]

Navigation menu