LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   Installing Octave (http://www.linuxquestions.org/questions/fedora-35/installing-octave-906128/)

sv3456 10-02-2011 09:11 PM

Installing Octave
 
Hello,

I have a couple of questions regarding Octave. I know some one here can help me.

First, I must say that I know nothing about Octave, but I am taking a machine learning class and it appears that will be using it.

Second, I have Fedora14.c86_64. Octave does not seem to be included in the packages. Where can I download the complete Octave package from?

Third, Can I installed and use Octave without Matlab? I have Mathematica, but not Matlab. Too Expensive.

Fourth, Any tips on installation?

Thank you very much for your time and help

flamelord 10-02-2011 09:46 PM

First of all Octave is a MatLab clone, so yes you can most certainly use it without needing Matlab. (in fact it can be used as a drop in replacement for Matlab, and matlab code will usually run fine in octave).

Secondly, the octave web page is here, and you can go to the download page and download the source package. But it is available as a package for Fedora. see https://admin.fedoraproject.org/pkgd...29bf9127bbd1ce

There is also a package called QtOctave, which provides a workspace somewhat similar to the the Matlab GUI, if you so desire. (Admittedly it isn't quite as nice as Matlab, but considering the difference in price I think it's pretty good.)

sv3456 10-05-2011 10:09 PM

I downloaded Octave and attempted to install it following the instructions. However, the process failed. This are the steps:
1. './configure'
2. 'make'
3. 'make install' to install the program files

Process failed at second step. This is the message
display.cc:34:22: fatal error: X11/Xlib.h: No such file or directory

compilation terminated.

make[2]: *** [pic/display.o] Error 1

make[2]: Leaving directory `/home/ResearLab/Downloads/octave-3.2.4/src'

make[1]: *** [src] Error 2

make[1]: Leaving directory `/home/ResearLab/Downloads/octave-3.2.4'

make: *** [all] Error 2


My feeling is that I have tried to install from the wrong directory. The octave package is in the 'Downloads' folder in the localhost directory. I feel that I should be in the root directory, but the normal command I know to change dir does not seems to work. I am using Fedora14 and I am new to Linux.

When I run 'make check" this is what I get:
[ResearLab@localhost octave-3.2.4]$ make check

make -f octMakefile check

make[1]: Entering directory `/home/ResearLab/Downloads/octave-3.2.4'

make -C test check

make[2]: Entering directory `/home/ResearLab/Downloads/octave-3.2.4/test'

../run-octave --norc --silent --no-history ./fntests.m .

../run-octave: line 70: /home/ResearLab/Downloads/octave-3.2.4/src/octave: No such file or directory

../run-octave: line 70: exec: /home/ResearLab/Downloads/octave-3.2.4/src/octave: cannot execute: No such file or directory

make[2]: *** [check] Error 126

make[2]: Leaving directory `/home/ResearLab/Downloads/octave-3.2.4/test'

make[1]: *** [check] Error 2

make[1]: Leaving directory `/home/ResearLab/Downloads/octave-3.2.4'

make: *** [check] Error 2

Sorry for the long message.

If any one have an idea how to complete this process well, please let me know. I'll forever appreciate it.

Thank you!

flamelord 10-06-2011 01:29 AM

Like I said before, I recommend installing the RPM package rather than compiling from source. But if you really do want to compile, it looks like you are missing the Xlib.h file, which probably means you need to install a dev package which includes the header files for X, I don't know what that would be on Fedora, a quick google search suggests xorg-x11-server-devel.

fedvasu 10-19-2011 01:23 PM

Quote:

Originally Posted by sv3456 (Post 4488508)
Hello,



Second, I have Fedora14.c86_64. Octave does not seem to be included in the packages. Where can I download the complete Octave package from?


Fourth, Any tips on installation?

Thank you very much for your time and help

dude, octave is in official repos of fedora 14

just yum install it,
Code:

yum install -y octave
yum will do dependency resolution and installation of dependent packages for you.


All times are GMT -5. The time now is 12:16 AM.