NavigationUser loginSpam?See spam posts on this site? If so, please don't reply to the spam! Instead, just report the URL to the webmaster. |
matlab r2007a installation problemsHi! I have a problem when i try to install matlab r2007a on my debian etch. When i execute the installation scipt, i get the following error: An error status was returned by the program 'xsetup', /home/ferran/matlab/update/bin/glnx86/xsetup: error while loading shared libraries: /home/ferran/matlab/update/bin/glnx86/libmwins.so: invalid ELF header Attempt to fix the problem and try again. If X is not available install* -t or INSTALL* -t I also tried to install it without X, but it still fail. Any help will be welcome! |
matlab r2007a installation
Go to the directory for those libraries with 'invalid ELF format', and check the ABI version:
readelf -h somefile.so (or exe or .a)
For example, on my Etch system I get:
ABI Version: 0
This is actually the old ABI used by GCC3.x. Your Matlab files will be incompatible if they use the new ABI (1) which came with GCC4.1 and later. (The later 3.x versions might also have the ABI=1 option)
still doesn't work
the output of the command is:
readelf -h libmwins.so
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
still doesn't work
How about trying:
file libmwins.so
That will tell you what type of file it is.
Installing Matlab R2007a on a Debian Etch system
The problem people have encountered is that the library libmwins.so is not picked up. This library is present on the installation DVD in the subdirectories glnx86, glnxa64 and sol64 of /dvd/update/bin, assuming that the DVD is mounted on /dvd. I find the following work-round fixes the problem. The procedure is:
1) Run the install script and let it fail. This may be needed to set up the environment correctly or it may be irrelevant - I ran it when trying things out and know only that it does no harm.
2) Copy the versions of libmwins.so for your hardware to /usr/lib, or any other directory on the appropriate search path. I picked up the version on /dvd/update/bin/glnx86 for my hardware.
3) Copy xsetup from the same directory to the install directory.
4) Type ./xsetup(Return).
The installation then proceeds and you follow instructions as they appear on the screen, plus any special instructions, if (eg) you are using a networked license server.
This procedure worked for me to intall on my 2 machines. Good luck.
Best wishes,
Richard James.
(Dept. of Physics and Astronomy,
University of Manchester,
Manchester, UK)