Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
32 bit Matlab install on 64 bit linux --

Subject: 32 bit Matlab install on 64 bit linux --

From: Andrew Olney

Date: 30 May, 2006 21:20:19

Message: 1 of 3

I'm trying to install 32 bit Matlab on 64 bit linux

I have seen the Technical Solution

 <http://www.mathworks.com/support/solutions/data/1-O7POO.html?1-O7POO>

and some notes for fixing this problem on Fedora

 <http://forums.fedoraforum.org/archive/index.php/t-106502.html>

However, I'm running Ubuntu 2.6.12-9-amd64-generic, and neither of
these takes me all the way to a solution.

I'm at the point where I can run the installer with the following:

root@lanczos:/usr/local/matlab71_sv#
/usr/local/install/install_unix.sh -glnx86 -t -nocp
/usr/local/install/unix/install: line 697: /lib/libc.so.6: Permission
denied

                         Welcome to the MATLAB Installer

  
----------------------------------------------------------------------
-----
   | Please review the license agreement on the next set of screens.
On any |
   | screen the options to proceed are at the bottom. Type your
response |
   | at the prompt.
       |
  
----------------------------------------------------------------------
-----

                      The MathWorks, Inc. [screen 1 of 88]
                      -------------------
Software License

IMPORTANT NOTICE

THE LICENSE AGREEMENT TOGETHER WITH ANY APPLICABLE ADDENDUM
REPRESENTS
THE ENTIRE AGREEMENT BETWEEN YOU (THE "LICENSEE") AND THE MATHWORKS,
----------------------------------------------------------------------
------
                >>>>>>>> For this License
Agreement <<<<<<<<
Enter either: <return> a r p ^C
To: [next screen] [accept] [reject] [print] [abort]
----------------------------------------------------------------------
------
> a
/usr/local/install/unix/update/bin/glnx86/xsetup: error while loading
shared libraries: libXp.so.6: cannot open shared object file: No such
file or directory

I do have libXp.so.6 installed, but the problem seems to be that the
installed version is 64 bit and the version I need is 32 bit.

One solution I've seen is to install an old version of
xorg-x11-libs-(version #).rpm . This doesn't seem right for Ubuntu.

Is there a way to install the 32bit libXp6 alongside the current
installation, or is there another way of approaching this problem
that I've missed?

Thanks

Subject: 32 bit Matlab install on 64 bit linux -- missing 32 bit libXp.so.6 library?

From: aolney@gmail.com

Date: 31 May, 2006 09:45:38

Message: 2 of 3

I found the following at

http://www.ubuntuforums.org/showthread.php?t=90895&highlight=libXp.so.6

I've pasted the most relevant sections below in case the above link
goes bad.

I haven't decided if I will try it, or just work with Octave.

------------------------------------

Hi

I started a new post because after looking: here, here, here here

I was still unable to install matlab student edition on my AMD64 with
Breezy x86_64 installed. This problem only seems to affect the student
version of Matlab R14 and only on the x86 version.

First off some background:

1. You do NOT need to copy the entire CD to your hard-drive to resolve
this error:
Quote:
nick@arcturus:/opt/matlab7$ sudo sh /media/cdrom/install_unix.sh
Password:
/media/cdrom/install_unix.sh: /media/cdrom/unix/install: /bin/sh: bad
interpreter: Permission denied

You just need to remount the cdrom over-riding the fstab options as
follows:
Code:

sudo umount /media/cdrom sudo mount -t iso9660 /dev/cdrom /media/cdrom


2. Next you get an error about being unable to access libc.so.6.
I just installed g++, and changed a its permissions
Code:

sudo chmod 755 /lib/libc.so.6


3. Next you get an error because it can't find the glnx64 directory.
This is not a problem, because we can use the -glnx switch:
Code:

sudo sh /media/cdrom/install_unix.sh -glnx86


4. However here's an error that I can't get around.
Quote:
nick@arcturus:/opt/matlab7$ sudo sh /media/cdrom/install_unix.sh
-glnx86
-------------------------------------------------------------------

An error status was returned by the program 'xsetup',
the X Window System version of 'install'. The following
messages were written to standard error:

/media/cdrom0/unix/update/bin/glnx86/xsetup: error while loading shared
libraries: libXp.so.6: cannot open shared object file: No such file or
directory
Attempt to fix the problem and try again. If X is not available
or 'xsetup' cannot be made to work then try the terminal
version of 'install' using the command:

install* -t or INSTALL* -t

-------------------------------------------------------------------

Sorry! Setup aborted . . .


I've tried the following things, none of which has worked:
1. Are my libxp libraries are installed? Yes they are, but I tried
re-installing these.
2. I tried running /media/cdrom/unix/install
3. I tried running /media/cdrom/unix/update/bin/glnx86/xsetup
4. I tried these with the -t switch
5. I linked the libXp.so.6 file to the current directory, and the
/lib32 directory.
6. I tried copying the CD to the hard-drive as suggested.
7. I tried looking at the script files, but none of them refers to
libXp.so.6. This is buried within the xsetup binary, so I don't know
where it looks.

Nothing appears to have helped.....

To pre-empt some obvious questions:
1. There is a 64 bit version of matlab - but not for students!
2. Service pack 3 fixes some of these issues, but the students don't
get this!
3. I have contacted the mathworks and I'm waiting for their answers, if
they come... which I'll post here when they arrive.
4. Several other people have had the same problems as me without luck.

Help!

Grateful thanks in advance.
Nick
UrbanFallout is offline Reply With Quote Multi-Quote with this Post
UrbanFallout
View Public Profile
Send a private message to UrbanFallout
Find More Posts by UrbanFallout
Old November 17th, 2005 #2
UrbanFallout
5 Cups of Ubuntu

Join Date: Jun 2005
Beans: 19

Default Re: Installing Matlab Release 14 Student Edition on Breezy AMD
64 - libXp library
OK... Partial success if you try this:

1. Install Breezy Badger x86, replacing existing Breezy i64 install.
Ouch!

2. Insert matlab CD into drive

3. You'll need to remount the cd and then run the installation script
as follows:
Code:

sudo umount /media/cdrom sudo mount -t iso9660 /dev/cdrom /media/cdrom
sudo mkdir /opt/matlab7 cd /opt/matlab7 sudo sh
/media/cdrom/install_unix.sh


4. An error code from the "oscheck.sh" script comes up, but this does
not affect the actual installation, so ignore it. Just follow the
instructions in the "Learning Matlab" manual.

5. Type "matlab", and it should just work, as long as you've created
the scripts in the /usr/local/bin directory. (The install script asks
you for this), otherwise try:
Code:

/opt/matlab7/bin/matlab


6. Viola! A fully working Matlab 7 (student edition) with IDE.

Time for take three, which will be reinstalling Breezy ia64 and trying
to get chroot32 up and running, before installing matlab. I had no luck
this morning but I'll keep everyone posted.

Hope this very suboptimal approach helps someone.
If anyone has any other suggestions in the meantime...

Nick
UrbanFallout is offline Reply With Quote Multi-Quote with this Post
UrbanFallout
View Public Profile
Send a private message to UrbanFallout
Find More Posts by UrbanFallout
Old November 17th, 2005 #3
UrbanFallout
5 Cups of Ubuntu

Join Date: Jun 2005
Beans: 19

Default Re: Installing Matlab Release 14 Student Edition on Breezy AMD
64 - libXp library
Yay!

Alrighty then... Take 3! Nearly there, I might have some extraneous
steps though.

I reinstalled Breezy i64. Without changing the graphics drivers, I ran
installed a 32 bit chroot environment as per the instructions at the 32
bit Chroot Howto.
I made one slight change, all hoary's were replaced with breezy's.
So why mention graphics drivers. Well some for some reason it stopped
me installing synaptic in step 5 of the Chroot Howto. I have no idea
why, but I'll look into this later.

Now for the installation part:
1. Enter the chroot environment:
Code:

dchroot -d


2. Several key packages may be missing which require installation:
Code:

sudo apt-get install libxp6 libxt6 libxtst6


3. Now insert the matlab cdrom, remount it and run the install:
Code:

sudo umount /media/cdrom sudo mount -t iso9660 /dev/cdrom /media/cdrom
sudo mkdir /opt/matlab7 cd /opt/matlab7 sudo sh
/media/cdrom/install_unix.sh -glnx86


4. The new chroot32 environment for some reason still considers itself
to be of ia64 architecture. So the matlab install script merrily churns
away, installs all the binaries to .../glnx86 directories and makes its
own scripts point to .../glnxa64 directories which don't exist. Very
annoying, so we simply symlink wherever necessary:
Code:

cd /opt/matlab7/bin sudo mv glnxa64 glnxa64.old sudo ln -s glnx86
glnxa64 cd /opt/matlab7/extern/lib sudo ln -s glnx86 glnxa64 cd
/opt/matlab7/sys/java/jre sudo ln -s glnx86 glnxa64 cd
/opt/matlab7/sys/java/jre/glnx86/jre1.4.2/lib sudo ln -s i386 amd64


5. The last step is because matlab can't access a terminal window. I'm
not sure how this works, but the /chroot/dev/pts directory is not
properly mounted. You need to remount this. So in a new terminal window
(not chroot) go:
Code:

sudo umount /chroot/dev sudo mount --rbind /dev /chroot/dev


6. Now finally to remove the oscheck error message, open up the
oscheck.sh file:
Code:

sudo gedit /chroot/opt/matlab7/bin/util/oscheck.sh

Goto line 150, comment it out and insert a version number so looks like
follows:
Code:

# ver=`/lib/libc.so.6 | head -n 1 | sed -e "s/^[^0-9]*//" -e "s/[
,].*$//"` ver=`objdump -x /lib/libc.so.6|egrep " GLIBC_"|tail -1|awk
-F_ '{print $2}'`


7. Now you can type "matlab" and it should work without any errors or
fuss.

When I get time I'll try neaten this lot up into a proper tutorial.

Hope this helps. Any comments are welcomed.
Nick
Last edited by UrbanFallout : January 14th, 2006 at 09:53 AM.

Subject: 32 bit Matlab install on 64 bit linux --

From: Hashim

Date: 1 Jan, 2013 15:23:07

Message: 3 of 3

In Ubuntu i managed to solve this problem by copying the missing .so files from their respective directory to /lib
like: sudo cp /lib/i386-linux-gnu/libc.so.6 /lib
the files were already there but not in the expected directory

"Andrew Olney" <aolney@NOSPAM.memphis.edu> wrote in message <ef38371.-1@webcrossing.raydaftYaTP>...
> I'm trying to install 32 bit Matlab on 64 bit linux
>
> I have seen the Technical Solution
>
> <http://www.mathworks.com/support/solutions/data/1-O7POO.html?1-O7POO>
>
> and some notes for fixing this problem on Fedora
>
> <http://forums.fedoraforum.org/archive/index.php/t-106502.html>
>
> However, I'm running Ubuntu 2.6.12-9-amd64-generic, and neither of
> these takes me all the way to a solution.
>
> I'm at the point where I can run the installer with the following:
>
> root@lanczos:/usr/local/matlab71_sv#
> /usr/local/install/install_unix.sh -glnx86 -t -nocp
> /usr/local/install/unix/install: line 697: /lib/libc.so.6: Permission
> denied
>
> Welcome to the MATLAB Installer
>
>
> ----------------------------------------------------------------------
> -----
> | Please review the license agreement on the next set of screens.
> On any |
> | screen the options to proceed are at the bottom. Type your
> response |
> | at the prompt.
> |
>
> ----------------------------------------------------------------------
> -----
>
> The MathWorks, Inc. [screen 1 of 88]
> -------------------
> Software License
>
> IMPORTANT NOTICE
>
> THE LICENSE AGREEMENT TOGETHER WITH ANY APPLICABLE ADDENDUM
> REPRESENTS
> THE ENTIRE AGREEMENT BETWEEN YOU (THE "LICENSEE") AND THE MATHWORKS,
> ----------------------------------------------------------------------
> ------
> >>>>>>>> For this License
> Agreement <<<<<<<<
> Enter either: <return> a r p ^C
> To: [next screen] [accept] [reject] [print] [abort]
> ----------------------------------------------------------------------
> ------
> > a
> /usr/local/install/unix/update/bin/glnx86/xsetup: error while loading
> shared libraries: libXp.so.6: cannot open shared object file: No such
> file or directory
>
> I do have libXp.so.6 installed, but the problem seems to be that the
> installed version is 64 bit and the version I need is 32 bit.
>
> One solution I've seen is to install an old version of
> xorg-x11-libs-(version #).rpm . This doesn't seem right for Ubuntu.
>
> Is there a way to install the 32bit libXp6 alongside the current
> installation, or is there another way of approaching this problem
> that I've missed?
>
> Thanks

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us