Code Monkey home page Code Monkey logo

Comments (3)

kyamagu avatar kyamagu commented on May 30, 2024

@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.

ruimaciel avatar ruimaciel commented on May 30, 2024

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.

kyamagu avatar kyamagu commented on May 30, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.