help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling octave-3.4.3


From: lukshuntim
Subject: Re: Compiling octave-3.4.3
Date: Thu, 09 Feb 2012 17:21:09 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120129 Thunderbird/10.0

On 02/09/2012 04:00 PM, Bart Vandewoestyne wrote:
> On 02/08/2012 05:36 PM, CdeMills wrote:
>>
>> Hello Bart,
>>
>> what you basically need are gcc - g++ - gfortran
> 
> Could you (or somebody else) be more specific about which versions
> Octave 3.4.3 should compile with?  I currently have a
> 
> address@hidden:~$ gcc --version | head -1
> gcc_x86_64 (GCC) 4.6.2
> 
> address@hidden:~$ g++ --version | head -1
> g++_x86_64 (GCC) 4.6.2
> 
> address@hidden:~$ gfortran --version | head -1
> GNU Fortran (GCC) 4.1.2 20080704 (Red Hat 4.1.2-51)
> 
> The gcc and g++ are a local (manual) install (not a Red Hat packaged
> version), the gfortran appears to be the one installed by the package
> management system...  Now that I think of it... could this be causing my
> compile problems???

At least this is one. :-) Incompatible versions won't work together,
usually. Can you install the same version (4.6.2) of gfortran? And make
sure configure finds them.

> 
>> I compile octave as follows:
>> 1) install the enclosed shell script somewhere in your path, adapt it to
>> your gcc version, make it executable
>> 2) inside the octave tree, create a directory, like 'compile', cd to it
>> 3) I configure octave as
>>      myoct-config-simple ../configure --prefix=${HOME}/usr
>> --enable-strict-warning-flags 2>&1 | tee -a make.config
>> 4) make 2>>make.error | tee -a make.report
>> 5) make check
>> 6) make install 2>&1 | tee make.install
>>
>> This way, each operation is logged into a make.something file; you'll can
>> look there for problems. The new version is installed into
>> ${HOME}/usr; you
>> have to tweak a bit your environment to have things working right:
>> - add ${HOME}/usr/lib to LD_LIBRARY_PATH
>> - add ${HOME}/usr/bin to PATH
>> - add ${HOME}/usr/share/man to MANPATH
>> - add ${HOME}/usr/share/info to INFOPATH
>>
>> HTH
>>
>> Pascal
> 
> Pascal, thanks... but there was no enclosed shell script attached to
> your mail...

For configuring, I've been using something like

./configure --prefix=${HOME}/usr --enable-shared --disable-static

and it usually works if I have all the dependencies. The octave
developers have done a *really good* job to allow users to compile from
source easily.

As Pascal said, you can look at the make.something to see what's missing.

Regards,
ST
-- 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]