MATLAB BGL AND LINUX

Asked by Raquel on 2012-03-29

Hello,

I'm trying use the Matlab BGL package with Matlab (7.10.0.499) R2010a 32-bit (gnlx86) in linux, when I run the command :

A = sparse(ones(5))
d = clustering_coefficients(A)

I get this error :

??? Invalid MEX-file
'/media/Dados/trabalho/doutorado/cpdee/tese/src/v0.1.5/graphs/matlab_bgl/private/clustering_coefficients_mex.mexglx':
libstdc++.so.5: Não é possivel abrir arquivo de objetos compartilhado: Arquivo ou diretório não encontrado.

Error in ==> clustering_coefficients at 97
ccfs=clustering_coefficients_mex(A,options.undirected,weight_arg);

Can you help me ?

Thank you
Raquel

Question information

Language:
English Edit question
Status:
Solved
For:
Matlab BGL Edit question
Assignee:
No assignee Edit question
Solved by:
David Gleich
Solved:
Last query:
Last reply:
Revision history for this message
Best David Gleich (dgleich) said :
#1

Try removing the libstdc++ from the matlab/os/sys/glnx86/ directory (following the directions from one of the first releases). The libstdc++.so file there is just a placeholder in case your system has the wrong version. Most of the time, it works without that file, but make a backup just in case!

e.g.

cd <MATLAB_ROOT>/sys/os/glnx86/
mkdir orig # may need sudo
mv libstdc++* orig # may need sudo

Then try it again.

Alternatively, you could compile it yourself.

David

On Thursday, March 29, 2012 at 11:20 AM, Raquel wrote:

> New question #192057 on Matlab BGL:
> https://answers.launchpad.net/matlab-bgl/+question/192057
>
> Hello,
>
> I'm trying use the Matlab BGL package with Matlab (7.10.0.499) R2010a 32-bit (gnlx86) in linux, when I run the command :
>
> A = sparse(ones(5))
> d = clustering_coefficients(A)
>
> I get this error :
>
> ??? Invalid MEX-file
> '/media/Dados/trabalho/doutorado/cpdee/tese/src/v0.1.5/graphs/matlab_bgl/private/clustering_coefficients_mex.mexglx':
> libstdc++.so.5: Não é possivel abrir arquivo de objetos compartilhado: Arquivo ou diretório não encontrado.
>
> Error in ==> clustering_coefficients at 97
> ccfs=clustering_coefficients_mex(A,options.undirected,weight_arg);
>
> Can you help me ?
>
> Thank you
> Raquel
>
> --
> You received this question notification because you are an answer
> contact for Matlab BGL.
>
>
>

Revision history for this message
Raquel (raquelcabral) said :
#2

Thanks David Gleich, that solved my question.