1) I need gcc-4.1 for Matlab mex usage, but I can't get it installed fully with apt-get install:
The following packages have unmet dependencies:
libstdc++6-4.1-dev : Depends: gcc-4.1-base (= 4.1.2-27ubuntu1) but 4.1.2-29ubuntu1 is to be installed
Depends: g++-4.1 (= 4.1.2-27ubuntu1) but it is not going to be installed
E: Broken packages
2) I now only have gcc-4.1-base and -multilib installed. When compiling mex file:
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
Something is wrong with libstdc++6-4.1-dev. So I went to http://packages.ubuntu.com/maverick/gcc-4.1 and download libstdc++6-4.1-dev_4.1.2-27ubuntu1_i386.deb. But cannot install it:
Dependency is not satisfiable: g++-4.1 (= 4.1.2-21ubuntu1)
Thanks