DerJFK
DerJFK

Reputation: 321

matlab libstdc++.so.6 error (GLIBCXX_3.4.19 not found)

I think the above error is well-known and I solved it in my virtual box by renaming the libstdc++.so.6 in the Matlab directory and instead using the one from my usr/lib folder.

But what if I do not have the rights to rename the file? How can I tell the compiler to link it to the library in my /usr/lib/.. folder?

Already, I added the /usr/lib/... path to die LD_LIBRARY_PATH variable, but it didn't work.

I use cmake to create my make files, is there any option to tell which library should be choosen?

Thank you

Upvotes: 0

Views: 337

Answers (1)

DerJFK
DerJFK

Reputation: 321

I found one possibility, use LD_PRELOAD

-> $ LD_PRELOAD=path/libstdc++.so.6 matlab

would be happy if there is better way

Upvotes: 1

Related Questions