Discussion:
installing octave and pcre no root
Dan Betea
2013-05-03 13:04:45 UTC
Permalink
I am trying to install octave 3.6.4 on my office PC (Scientific Linux 6.4
based on red hat) but I can only do it in my own account since I don't have
root access.

When trying I get the following error:

configure: error: to build Octave, you must have the PCRE library and
header files installed

This happens in a directory called /some_stuff/user_name/Programs.

I have installed pcre 8.32 (and checked the installation by running
RunTest) in the directory /some_stuff/user_name/bin/pcre-8.32 and then
tried the command

./configure CPPFLAGS="-I/some_stuff/user_name/bin/pcre-8.32/include"
LDFLAGS="-L/some_stuff/user_name/bin/pcre-8.32/lib"

That didn't get rid of the error. It is still there. Anything else I could
try?

Thanks,

Dan
Mike Miller
2013-05-03 13:26:15 UTC
Permalink
Post by Dan Betea
I am trying to install octave 3.6.4 on my office PC (Scientific Linux 6.4
based on red hat) but I can only do it in my own account since I don't have
root access.
configure: error: to build Octave, you must have the PCRE library and header
files installed
This happens in a directory called /some_stuff/user_name/Programs.
I have installed pcre 8.32 (and checked the installation by running RunTest)
in the directory /some_stuff/user_name/bin/pcre-8.32 and then tried the
command
./configure CPPFLAGS="-I/some_stuff/user_name/bin/pcre-8.32/include"
LDFLAGS="-L/some_stuff/user_name/bin/pcre-8.32/lib"
That didn't get rid of the error. It is still there. Anything else I could
try?
Can you try adding the path to pcre-config to your PATH environment
variable before calling configure? Assuming I'm interpreting correctly
what you did, something like:

PATH=/some_stuff/user_name/bin/pcre-8.32/bin:$PATH
./configure ...

HTH,
--
mike
Dan Betea
2013-05-03 13:57:35 UTC
Permalink
Post by Dan Betea
Post by Dan Betea
I am trying to install octave 3.6.4 on my office PC (Scientific Linux 6.4
based on red hat) but I can only do it in my own account since I don't
have
Post by Dan Betea
root access.
configure: error: to build Octave, you must have the PCRE library and
header
Post by Dan Betea
files installed
This happens in a directory called /some_stuff/user_name/Programs.
I have installed pcre 8.32 (and checked the installation by running
RunTest)
Post by Dan Betea
in the directory /some_stuff/user_name/bin/pcre-8.32 and then tried the
command
./configure CPPFLAGS="-I/some_stuff/user_name/bin/pcre-8.32/include"
LDFLAGS="-L/some_stuff/user_name/bin/pcre-8.32/lib"
That didn't get rid of the error. It is still there. Anything else I
could
Post by Dan Betea
try?
Can you try adding the path to pcre-config to your PATH environment
variable before calling configure? Assuming I'm interpreting correctly
PATH=/some_stuff/user_name/bin/pcre-8.32/bin:$PATH
./configure ...
HTH,
--
mike
That seemed to have helped. It goes past that step, gives a bunch of
warnings, and then ends with:

configure: error: You are required to have BLAS and LAPACK libraries

Is there any website that lists *exactly* (as in package by package) what
needs to be had for the installation? And is there any *good* way to
figure, from the items in that list, what packages are already installed?

My guess is the dependencies are quite non-trivial. On the other hand I
installed sage yesterday with no trouble (though it took 4 hours to
compile). So there's no reason apriori for something of a similar
complexity to be so hard to compile.

Dan
Mike Miller
2013-05-03 22:05:24 UTC
Permalink
Post by Dan Betea
configure: error: You are required to have BLAS and LAPACK libraries
Yes, BLAS, LAPACK, and PCRE are the three must-have dependencies for
building Octave.
Post by Dan Betea
Is there any website that lists *exactly* (as in package by package) what
needs to be had for the installation? And is there any *good* way to figure,
from the items in that list, what packages are already installed?
The list that comes to mind is on http://wiki.octave.org/Debian. The
mandatory and optional library dependencies are listed there, although
it doesn't tell you what purpose each of the optional libraries serve,
but many you may be able to figure out. On your RHEL-based system,
you'll have to translate some of those package names (e.g.
arpack-devel instead of libarpack2-dev).

Or, if your system has the EPEL repository configured, you can try
querying the EPEL version of Octave for its build-dependencies:

repoquery --enablerepo=epel-source --requires octave.src

This tells you exactly what the Fedora packagers decided are the build
requirements for packaging Octave, at least the version of Octave that
is built for RHEL 6.

--
mike

Loading...