Find the answer to your Linux question:
Results 1 to 2 of 2
Dear all, I am new in linux environment. I have installed matlab R14 in Ubuntu 9.0.4. And I understand that R14 was compiled in gcc 3.2.3 and the gcc version ...
  1. #1
    Just Joined!
    Join Date
    Aug 2009
    Posts
    1

    Hi Linux gurus, please do help me on this! Thanks a LOT!

    Dear all,

    I am new in linux environment.

    I have installed matlab R14 in Ubuntu 9.0.4. And I understand that R14 was compiled in gcc 3.2.3 and the gcc version installed in Ubuntu 9.0.4 is gcc 4.3.3.

    I compiled a few c files in matlab using "mex" and obtained a list of mexglx files. But when I try to use the methods, the below error occurred:

    "??? Invalid MEX-file '/media/Data/Projects/sift/siftmatch.mexglx': /media/WinXP/matlab_unix/bin/glnx86/../../sys/os/glnx86/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)."


    Could anybody suggests how to solve the problem? I find it quite troublesome to re-install another gcc version in my system. And can the problem be solved by using LD_LIBRARY_PATH parameter?

    Thank you very much!!

  2. #2
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    I don't know anything about Matlab, but it seems that the problem is a disconnect between your version of Matlab and your version of GCC. I suppose that my immediate question is why you're using R14 instead of a more recent version. Alternatively, you may be able to configure mex to create mexglx files that function with earlier versions of Matlab.
    DISTRO=Arch
    Registered Linux User #388732

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...