Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SeDumi 1.3 instalation fail in Octave 4.2.2 - Linux 64bits #57

Closed
luizmac opened this issue Jun 18, 2020 · 2 comments
Closed

SeDumi 1.3 instalation fail in Octave 4.2.2 - Linux 64bits #57

luizmac opened this issue Jun 18, 2020 · 2 comments

Comments

@luizmac
Copy link

luizmac commented Jun 18, 2020

Hello,

could someone give me some help?

I'm having problems to install SeDumi. I'm working with Linux Mint 19.3 Cinnamon - 64 bits and Octave 4.2.2.

I have successfully installed YALMIP and SDPT3. I got the latest version of YALMIP from here:

https://yalmip.github.io/download/

However SeDumi is not working.

I have doing the following steps:

  1. Add path for Sedumi;

  2. Running yalmiptest. Results: Fail

When I run yalmiptest it is able to list the Sedumi solver but it can not use it to solve the tests. The messages are something like this

Testing function complete_2

SeDuMi 1.3.4 by AdvOL, 2005-2008 and Jos F. Sturm, 1998-2003.
Alg = 2: xz-corrector, theta = 0.250, beta = 0.500

SeDuMi had unexplained problems, maybe due to linear dependence?
YALMIP tweaks the problem (adds 1e6 magnitude bounds on all variables) and restarts...

SeDuMi 1.3.4 by AdvOL, 2005-2008 and Jos F. Sturm, 1998-2003.
Alg = 2: xz-corrector, theta = 0.250, beta = 0.500
Nope, unexplained crash in SeDuMi! (could be memory issues or wrong binary)
Make sure you have a recent and compiled version

  1. Run install file install_sedumi.m. Results: Fail

I receive the following messages. It is a long list so I'm posting just part of them

install_sedumi


SeDuMi installation script
Directory: /home/luiz/YALMIP/sedumi-master
Octave 4.2.2 on x86_64-pc-linux-gnu

Looking for existing binaries...none found; building...
Attempting to recompile the SeDuMi binaries:
Template: mex -O2 -DOCTAVE -I/usr/include/openblas %s
bwblkslv.mex: bwblkslv.c sdmauxFill.c sdmauxRdot.c
In file included from bwblkslv.c:45:0:
blksdp.h:41:10: fatal error: f77blas.h: No such file or directory
#include "f77blas.h" /* defines "blasint" data type /
^~~~~~~~~~~
compilation terminated.
warning: mkoctfile: building exited with failure status
choltmpsiz.mex: choltmpsiz.c
cholsplit.mex: cholsplit.c
dpr1fact.mex: dpr1fact.c auxfwdpr1.c sdmauxCone.c sdmauxCmp.c sdmauxFill.c sdmauxScalarmul.c sdmauxRdot.c blkaux.c
In file included from dpr1fact.c:52:0:
blksdp.h:41:10: fatal error: f77blas.h: No such file or directory
#include "f77blas.h" /
defines "blasint" data type /
^~~~~~~~~~~
compilation terminated.
warning: mkoctfile: building exited with failure status
symfctmex.mex: symfctmex.c symfct.c
ordmmdmex.mex: ordmmdmex.c ordmmd.c
quadadd.mex: quadadd.c
In file included from quadadd.c:42:0:
blksdp.h:41:10: fatal error: f77blas.h: No such file or directory
#include "f77blas.h" /
defines "blasint" data type /
^~~~~~~~~~~
compilation terminated.
warning: mkoctfile: building exited with failure status
sqrtinv.mex: sqrtinv.c sdmauxCone.c
In file included from triuaux.h:37:0,
from sqrtinv.c:43:
blksdp.h:41:10: fatal error: f77blas.h: No such file or directory
#include "f77blas.h" /
defines "blasint" data type */
^~~~~~~~~~~

  1. Trying to rebuild with install_sedumi -rebuild. Results: Fail

Again the results are the same. Posting just part of the messages.

install_sedumi -rebuild


SeDuMi installation script
Directory: /home/luiz/YALMIP/sedumi-master
Octave 4.2.2 on x86_64-pc-linux-gnu

Attempting to recompile the SeDuMi binaries:
Template: mex -O2 -DOCTAVE -I/usr/include/openblas %s
bwblkslv.mex: bwblkslv.c sdmauxFill.c sdmauxRdot.c
In file included from bwblkslv.c:45:0:
blksdp.h:41:10: fatal error: f77blas.h: No such file or directory
#include "f77blas.h" /* defines "blasint" data type /
^~~~~~~~~~~
compilation terminated.
warning: mkoctfile: building exited with failure status
choltmpsiz.mex: choltmpsiz.c
cholsplit.mex: cholsplit.c
dpr1fact.mex: dpr1fact.c auxfwdpr1.c sdmauxCone.c sdmauxCmp.c sdmauxFill.c sdmauxScalarmul.c sdmauxRdot.c blkaux.c
In file included from dpr1fact.c:52:0:
blksdp.h:41:10: fatal error: f77blas.h: No such file or directory
#include "f77blas.h" /
defines "blasint" data type /
^~~~~~~~~~~
compilation terminated.
warning: mkoctfile: building exited with failure status
symfctmex.mex: symfctmex.c symfct.c
ordmmdmex.mex: ordmmdmex.c ordmmd.c
quadadd.mex: quadadd.c
In file included from quadadd.c:42:0:
blksdp.h:41:10: fatal error: f77blas.h: No such file or directory
#include "f77blas.h" /
defines "blasint" data type /
^~~~~~~~~~~
compilation terminated.
warning: mkoctfile: building exited with failure status
sqrtinv.mex: sqrtinv.c sdmauxCone.c
In file included from triuaux.h:37:0,
from sqrtinv.c:43:
blksdp.h:41:10: fatal error: f77blas.h: No such file or directory
#include "f77blas.h" /
defines "blasint" data type /
^~~~~~~~~~~
compilation terminated.
warning: mkoctfile: building exited with failure status
givensrot.mex: givensrot.c auxgivens.c sdmauxCone.c
In file included from givensrot.c:41:0:
blksdp.h:41:10: fatal error: f77blas.h: No such file or directory
#include "f77blas.h" /
defines "blasint" data type /
^~~~~~~~~~~
compilation terminated.
warning: mkoctfile: building exited with failure status
urotorder.mex: urotorder.c auxgivens.c sdmauxCone.c sdmauxTriu.c sdmauxRdot.c
In file included from urotorder.c:43:0:
blksdp.h:41:10: fatal error: f77blas.h: No such file or directory
#include "f77blas.h" /
defines "blasint" data type /
^~~~~~~~~~~
compilation terminated.
warning: mkoctfile: building exited with failure status
psdframeit.mex: psdframeit.c reflect.c sdmauxCone.c sdmauxRdot.c sdmauxTriu.c sdmauxScalarmul.c
In file included from psdframeit.c:40:0:
blksdp.h:41:10: fatal error: f77blas.h: No such file or directory
#include "f77blas.h" /
defines "blasint" data type /
^~~~~~~~~~~
compilation terminated.
warning: mkoctfile: building exited with failure status
psdinvjmul.mex: psdinvjmul.c reflect.c sdmauxCone.c sdmauxRdot.c sdmauxTriu.c sdmauxScalarmul.c blkaux.c
In file included from psdinvjmul.c:43:0:
blksdp.h:41:10: fatal error: f77blas.h: No such file or directory
#include "f77blas.h" /
defines "blasint" data type /
^~~~~~~~~~~
compilation terminated.
warning: mkoctfile: building exited with failure status
bwdpr1.mex: bwdpr1.c sdmauxCone.c sdmauxRdot.c
In file included from bwdpr1.c:45:0:
blksdp.h:41:10: fatal error: f77blas.h: No such file or directory
#include "f77blas.h" /
defines "blasint" data type /
^~~~~~~~~~~
compilation terminated.
warning: mkoctfile: building exited with failure status
fwdpr1.mex: fwdpr1.c auxfwdpr1.c sdmauxCone.c sdmauxScalarmul.c
In file included from fwdpr1.c:44:0:
blksdp.h:41:10: fatal error: f77blas.h: No such file or directory
#include "f77blas.h" /
defines "blasint" data type */
^~~~~~~~~~~
compilation terminated.

Observations:

Obs1:
I had successfully installed the liblas and lapack on my computer. I have used the command:

$ sudo apt-get install libblas-dev liblapack-dev^C

Obs2:
After try to install Sedumi the SDPT3 solver do not work anymore.

Obs3:

Running sedumi(1,1,1) i receive:

sedumi(1,1,1)
SeDuMi 1.3.4 by AdvOL, 2005-2008 and Jos F. Sturm, 1998-2003.
Alg = 2: xz-corrector, Adaptive Step-Differentiation, theta = 0.250, beta = 0.500
error: The SeDuMi binaries for your platform are not installed.
To rectify, run the following commands from the Octave command line:

cd /home/luiz/YALMIP/sedumi-master
install_sedumi

For more information, read /home/luiz/YALMIP/sedumi-master/Install.txt.
error: called from
sedumi_binary_error at line 15 column 1
partitA at line 40 column 1
sedumi at line 350 column 8

Could someone help me to make Sedumi run properly?

@luizmac luizmac changed the title SeDumi 1.3 instalation fail in Octave 4.2.2 SeDumi 1.3 instalation fail in Octave 4.2.2 - Linux 64bits Jun 18, 2020
@luizmac
Copy link
Author

luizmac commented Jun 18, 2020

Problem solved!

I was using an old version of Octave (4.2.2). Linux Mint repositories only gives the old version 4.2.2. The current version 5.2.0 does not present any problem! For Linux mint users get it from https://flathub.org/apps/details/org.octave.Octave.

@luizmac luizmac closed this as completed Jun 18, 2020
@siko1056
Copy link
Member

The problem is, that SeDuMi implicitly requires the OpenBLAS headers libopenblas-dev to be installed

sedumi/install_sedumi.m

Lines 186 to 188 in fedd22a

% Including the default OpenBLAS path works for most Octave
% installations and does not harm if not present.
flags{end+1} = '-I/usr/include/openblas';

See how to install and find them here #17 (comment) . Probably this would have solved the issue, as from the Flatpak installation I know them to be present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants