Comments (3)
@ruimaciel Thanks for reporting the issue. I don't have that specific environment, but depending on the compiler config, it might be possible to workaround the restriction. The usual approach to debug this is to add -v
flag in MEXFLAGS
in Makefile
and see the error message.
from matlab-sqlite3-driver.
I've spent some time looking into this issue and I believe I've jumped the gun on this issue.
The good news is that it's possible to get matlab-sqlite3-driver to run on Matlab 2051a on Debian 8 without any compiler checks, in spite of Matlab only supporting gcc v4.7. The somewhat bad news is that it takes a bit of tinkering to circumvent some compiler issues and get things to run.
From what I've gathered, Matlab 2051a comes bundled with libstdc++.so.6.0.17, which appears to be the libstdc++ associated with g++4.7, the only version of GCC supported by Matlab. If g++4.7 isn't installed and the end-user tries to use a different version of GCC to handle their MEX business, Matlab will throw an error.
To circumvent this error, all it takes is to link Matlab's copy of libstdc++.so.6 (which is a symbolic link to Matlab's copy of libstdc++.so.6.0.17, which comes bundled with Matlab) to the operating system's copy of libstdc++.so.6, which comes bundled with G++.
In Debian8, G++ 4.9 comes bundled with libstdc++.so.6.0.20. I've added a symbolic link to this library in ${MATLAB R2015a}/sys/os/glnxa64, and then proceeded to replace Matlab's symlink to libstdc++.so.6.0.17 with a symlink to the libstdc++.so.6.0.20 link I've added to the folder.
After restarting Matlab, matlab-sqlite3-driver ran as expected.
from matlab-sqlite3-driver.
@ruimaciel Alright, that's a runtime issue, not a compilation issue. The easiest (and least destructive) workaround is actually to launch Matlab with LD_PRELOAD
flag. e.g.,
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 matlab
from matlab-sqlite3-driver.
Related Issues (11)
- Embedded zeros terminate BLOB's HOT 2
- Not compiling in Windows 10 HOT 3
- ldd: command not found HOT 2
- Time issue when selecting several columns HOT 2
- Can't Delete DB Files (after close) HOT 7
- Vectorized insert? HOT 3
- Cannot compile in Matlab 2014b on OS X 10.8.5 HOT 1
- std regex in gcc4.8 not working HOT 1
- not compiling on Debian GNU/Linux HOT 5
- Software versioning HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matlab-sqlite3-driver.