필터 지우기
필터 지우기

invalid mex - libmysqlcppconn not finding glibcxx_3.4.15

조회 수: 3 (최근 30일)
Brian
Brian 2012년 7월 31일
Hi there,
I'm running ubuntu 12.04 and matlab R2012a.
Not sure what the problem is exactly, but I can build my mex file just fine. But when it is run I receive this error
Invalid MEX-file '/home/br/Documents/MATLAB/langmod/rss2mysql/mexUrl2dbSrc.mexa64':
/usr/local/MATLAB/R2012a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.15' not
found (required by /usr/local/lib/libmysqlcppconn.so.5)
which I find particularly strange, becuase if I run the following in the terminal
strings /usr/local/MATLAB/R2012a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6 | grep GLIBC
I see:
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBC_2.2.5
GLIBC_2.3
GLIBC_2.14
GLIBC_2.4
GLIBC_2.3.4
GLIBC_2.3.2
GLIBCXX_DEBUG_MESSAGE_LENGTH
What do i do to fix this? Any help would be appreciated, thanks. Brian

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 8월 1일
I don't understand library dependency resolution completely, but I wonder if libmysqlcppconn.so.5 could be looking at a different version of libstdc++.so? Perhaps you should run mexUrl2dbSrc.mexa64 and /usr/local/lib/libmysqlcppconn.so.5 through the ldd utility to figure out what dependencies they are looking at?

카테고리

Help CenterFile Exchange에서 Database Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by