installing octave on Redhat 5.8

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

installing octave on Redhat 5.8

parafux
Hi,

I want to install (compile) octave locally, because i do not have any root rights.
I used the command:
~/octave-3.8.0>./configure --prefix=/tools/octave/
and get the following message:
configure: error: to build Octave, you must have the PCRE library and header files installed
but i already installed pcre into my home-dir:
~/octave-3.8.0>ll /home/a15216/opt/local/bin/
total 256
drwxr-xr-x 2 a15216 vlsi   4096 Mar 27 07:43 ./
drwxr-xr-x 6 a15216 vlsi   4096 Mar 27 07:43 ../
-rwxr-xr-x 1 a15216 vlsi   2375 Mar 27 07:43 pcre-config*
-rwxr-xr-x 1 a15216 vlsi  86117 Mar 27 07:43 pcregrep*
-rwxr-xr-x 1 a15216 vlsi 148177 Mar 27 07:43 pcretest*
I also added the path to my PATH variable at the beginning

what do I still do wrong?

regards
parafux
Reply | Threaded
Open this post in threaded view
|

Re: installing octave on Redhat 5.8

CdeMills
parafux wrote
Hi,

I want to install (compile) octave locally, because i do not have any root rights.
I used the command:
~/octave-3.8.0>./configure --prefix=/tools/octave/
and get the following message:
configure: error: to build Octave, you must have the PCRE library and header files installed
but i already installed pcre into my home-dir:
~/octave-3.8.0>ll /home/a15216/opt/local/bin/
total 256
drwxr-xr-x 2 a15216 vlsi   4096 Mar 27 07:43 ./
drwxr-xr-x 6 a15216 vlsi   4096 Mar 27 07:43 ../
-rwxr-xr-x 1 a15216 vlsi   2375 Mar 27 07:43 pcre-config*
-rwxr-xr-x 1 a15216 vlsi  86117 Mar 27 07:43 pcregrep*
-rwxr-xr-x 1 a15216 vlsi 148177 Mar 27 07:43 pcretest*
I also added the path to my PATH variable at the beginning
Non-standard installation. You need to provide some hint to the compiler to find your files:

env CPPFLAGS="-I${HOME}/opt/local/include" LDFLAGS="-L${HOME}/opt/local/lib ./configure --prefix=/tools/octave

You may need to further refine this depending on the path where components (include file, library .a and .so files) can be found. To figure it out: ./configure --help

Regards

Pascal
Reply | Threaded
Open this post in threaded view
|

Re: installing octave on Redhat 5.8

parafux
This post was updated on .
CdeMills wrote
env CPPFLAGS="-I${HOME}/opt/local/include" LDFLAGS="-L${HOME}/opt/local/lib ./configure --prefix=/tools/octave
does this mean to enter this line as command? because if i enter this i get the error:

a15216@de01asic205 ~/octave-3.8.0>env CPPFLAGS="-I${HOME}/opt/local/include" LDFLAGS="-L${HOME}/opt/local/lib ./configure --prefix=/tools/octave
Unmatched ".

or do you mean i should set the environment variables CPPFLAGS and LDFLAGS and then again try to configure.

thanx for you help, i am a newby in case of instaling/compiling apps on linux.
Reply | Threaded
Open this post in threaded view
|

Re: installing octave on Redhat 5.8

parafux
This post was updated on .
i understand, now it works with the following procedure:

~/octave-3.8.0>setenv LDFLAGS "-L${HOME}/opt/local/lib"    
~/octave-3.8.0>setenv CPPFLAGS "-I${HOME}/opt/local/include"

~/octave-3.8.0>./configure --prefix=/home/a15216/opt/local

but i now get the following error message

configure: error: A BLAS library was detected but found incompatible with your Fortran 77 compiler settings.

can anybody help me?
Reply | Threaded
Open this post in threaded view
|

Re: installing octave on Redhat 5.8

Mike Miller
On Thu, Mar 27, 2014 at 05:53:21 -0700, parafux wrote:
> but i now get the following error message
>
> configure: error: A BLAS library was detected but found incompatible with
> your Fortran 77 compiler settings.
>
> can anybody help me?

This likely means that you need to recompile BLAS and LAPACK (and/or
ATLAS if desired) on RHEL 5. I have run into this problem with the
atlas, blas, and lapack packages in RHEL 5, they are indeed compiled
incorrectly. I have rebuilt those packages myself (or built and
installed the libraries in my HOME) and have Octave working on RHEL 5.

I have a TODO item to write a wiki page describing how to build Octave
for RHEL 5 but haven't gotten around to it yet.

HTH,

--
mike

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: installing octave on Redhat 5.8

CdeMills
In reply to this post by parafux
parafux wrote

does this mean to enter this line as command? because if i enter this i get the error:

a15216@de01asic205 ~/octave-3.8.0>env CPPFLAGS="-I${HOME}/opt/local/include" LDFLAGS="-L${HOME}/opt/local/lib ./configure --prefix=/tools/octave
Unmatched ".
Sorry, my error. The 'unmatched "' message should make clear that the issue is an unclosed string between quotes. The right command is

env CPPFLAGS="-I${HOME}/opt/local/include" LDFLAGS="-L${HOME}/opt/local/lib" ./configure --prefix=/tools/octave

I forgot the quote just before ./configure

Regards

Pascal
Reply | Threaded
Open this post in threaded view
|

Re: installing octave on Redhat 5.8

parafux
In reply to this post by Mike Miller
hi mike,
can you just give me a short description how to install atlas, blas, and lapack to my local home folder.
regards
andreas.