Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error libmwblas starting MATLAB R2008a in Linux

151 views
Skip to first unread message

miguel galarraga

unread,
May 30, 2008, 4:06:01 AM5/30/08
to
Does anybody know why I get this error when starting matlab?

----------
libmwblas: load error:
/usr/local/matlab/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmkl.so:libguide.so:
cannot open shared object file: No such file or directory
terminate called after throwing an instance of
'std::runtime_error'
what():
/usr/local/matlab/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmkl.so:libguide.so:
/opt/matlab-2007b/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libmkl.so:libguide.so:
cannot open shared object file: No such file or directory
Aborted
----------

The weird thing is that I succesfully installed and
activated the program, and the first time after installation
matlab starts correctly. After that I cannot initialize it.

I tried with this solution but it did not work:
----------
This error is caused by a BLAS_VERSION environment variable
set to enable multi-threaded support with R2006b. This
functionality is enabled differently in later releases. In
order to start MATLAB R2007b , the variable must be removed
or changed from:
BLAS_VERSION=mkl.so,mklcompat.so
to:
BLAS_VERSION=libmkl.so,libguide.so
-------------

I am working with Linux RedHat el5

Thanks in advance

Duncan Po

unread,
May 30, 2008, 9:55:03 AM5/30/08
to
I think you have the BLAS_VERSION environment variable
defined. Make sure it is not defined before starting MATLAB.
For example, if you are using a C shell, use the following
to start MATLAB:

unsetenv BLAS_VERSION
matlab

"miguel galarraga" <galarra...@yahoo.es> wrote in
message <g1och9$iq$1...@fred.mathworks.com>...

miguel galarraga

unread,
Jun 3, 2008, 3:36:02 AM6/3/08
to
Finally I managed to solve the problem. I just had to change
variable BLAS_VERSION with:

export BLAS_VERSION=matlabpath/bin/glnxa64/libmwblas.so

this was helpful:
http://www.mathworks.com/support/solutions/data/1-18QUC.html

thank you anyway

Duncan Po

unread,
Jun 3, 2008, 9:48:02 AM6/3/08
to
I am actually surprised that works, as libmwblas.so is not a
real BLAS library, but rather a BLAS binder that binds to
the actual BLAS library you select.

But if it works fine for you, that's great.

Anyways, unless you have good reason why you want to use a
different BLAS, you don't need the BLAS_VERSION environment
variable set to anything. I would suggest just do:

export BLAS_VERSION=

"miguel galarraga" <galarra...@yahoo.es> wrote in

message <g22s92$oqs$1...@fred.mathworks.com>...

miguel galarraga

unread,
Jun 3, 2008, 10:24:02 AM6/3/08
to
in my case that didn't work, but of course I agree with you,
if it works you should not change the variable value.

Thanks


Junbin

unread,
Aug 1, 2008, 2:44:03 AM8/1/08
to

I have the same problem. Now I set the right value to
BLAS_VERSION and matlab can be launced. However it is
stuck at such very simple program
> A = rand(2,2)

> eigs(A) % stuck here. has to stop matlab by using
linux kill commend


What is the reason for that? Does that mean the lib does
not fit my CPU Intel Xeon X5472 Quad-Core processor - 3GHz.


Jun


"miguel galarraga" <galarra...@yahoo.es> wrote in

message <g1och9$iq$1...@fred.mathworks.com>...

Duncan Po

unread,
Aug 1, 2008, 9:35:02 AM8/1/08
to
Jun,

First thing I would do is to check your BLAS is working at
all. Try the simplest matrix function: matrix multiply

ones(2)*ones(2)

Does it give you the right answer?
What O/S are you using?


"Junbin " <jb...@csu.edu.au> wrote in message
<g6ubbj$3vk$1...@fred.mathworks.com>...

Junbin

unread,
Aug 2, 2008, 9:59:04 PM8/2/08
to
I tested the matrix multiplication as you suggested

ones(2)*ones(2)

The matlab does not show any answer to it and it is simply
stuck and &#8216;Busy&#8217; is shown on the matlab status bar at the
bottom.
Now I cannot stop the matlab by clicking &#8220;cross&#8221; on the
window, so have to stop from terminal by killing matlab&#8217;s
id.

My system is x86_64 RedHat Enterprise Linux 5 (client)
installed on a machine with 2 Intel Xeon X5472 Quad-Core
processor - 3GHz CPUs.

At the first instance, matlab was installed on 32 bit
RedHat Enterprise Linux 5 (client). It works well. As my
cpu supports 64 bit, so I changed the system. Then matlab
won&#8217;t work.

x86_64 RedHat Enterprise Linux 5 (client) is installed
with almost default setting (just follow the prompt in
installation).

The fanny thing is, if I change libmwblas.so to
refblas.so, everything works fine, but I lost the speed
for matlab computation speed (it is slower than the matlab
on my normal desktop when I run the same program).

Jun


"Duncan Po" <Dunc...@mathworks.com> wrote in message
<g6v3e6$7n4$1...@fred.mathworks.com>...

Duncan Po

unread,
Aug 5, 2008, 2:43:01 PM8/5/08
to
The problem seems to be you are using SELinux and SELinux to
preventing MATLAB to behave properly. This can be resolve
with the Linux command chcon:

chcon -t textrel_shlib_t
/usr/local/matlab/bin/glnxa64/libguide.so

Refer to this page:

http://www.mat.ethz.ch/services/it_support/users_guide/documents/matlab/index

"Junbin " <jb...@csu.edu.au> wrote in message

<g733d8$e4p$1...@fred.mathworks.com>...

0 new messages