https://wiki.archlinux.org/api.php?action=feedcontributions&user=Cephir&feedformat=atomArchWiki - User contributions [en]2024-03-28T09:41:44ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=MATLAB&diff=101860MATLAB2010-04-04T09:53:29Z<p>Cephir: /* x86_64 */ Typo... "cd" is not needed to execute anything</p>
<hr />
<div>{{stub}}<br />
[[Category:Science (English)]]<br />
<br />
== For the 32bit student edition 2008b ==<br />
=== x86 ===<br />
Just install (might require a few extra packages, but then can be install via pacman.<br />
(I will try to make a list when I install next)<br />
<br />
For graphical install and interface libxp is needed.<br />
<br />
pacman -S libxp <br />
Install from iso file<br />
modprobe loop<br />
mount -o loop matu2k8b.iso /media/iso/<br />
/media/iso/install<br />
<br />
=== x86_64 ===<br />
These are instructions for the installation of 32-bit Matlab on a 64-bit system. Unfortunately, 32-bit is the only version available to students; 64-bit versions are available if you pay more money. These instructions have been updated for the student r2009A version - however the instructions should work with any current version of Matlab. To start off with we need to install a bunch of lib32 packages, not all found with pacman. Check the [[AUR]] for lib32-printproto, lib32-libxp and lib32-libxpm. Install lib32-printproto first, because it's required by lib32-libxp.<br />
<br />
$ pacman -S lib32-mesa<br />
$ pacman -S lib32-glibc<br />
$ pacman -S lib32-libxmu<br />
$ pacman -S lib32-zlib<br />
$ pacman -S lib32-ncurses<br />
$ pacman -S lib32-libxtst<br />
$ pacman -S lib32-libxi<br />
$ pacman -S lib32-libxrender<br />
$ pacman -S lib32-libxfixes<br />
$ pacman -S lib32-freetype2 lib32-fontconfig lib32-libxdamage <br />
<br />
$ yaourt -S lib32-printproto<br />
$ yaourt -S lib32-libxp<br />
$ yaourt -S lib32-libxpm<br />
<br />
My system is not a fresh install so there may be some other packages needed.<br />
<br />
Once they are installed <br />
<br />
$ ./install -glnx86<br />
<br />
After fixing any library dependency problems, you will be able to guide the installer through the install process. If activation doesn't work in the installer you'll need to login to Wolfram's site and download a license file which you'll put in {MATLAB}/licenses. After the install process, you'll need to create a symbolic link because the installer oddly thinks it's installing the 64-bit version of Matlab:<br />
<br />
$ cd {MATLAB}/sys/java/jre<br />
$ ln -s glnx86 glnxa64<br />
<br />
In the above, {MATLAB} should be replaced by the root directory you chose for your installation.<br />
<br />
You'll also need to put another link in matlab's bin folder because despite asking matlab to install the 32bit version, it still thinks you want to use the 64bit one.<br />
<br />
$ cd {MATLAB}/bin<br />
$ ln -s glnx86 glnxa64<br />
<br />
After that you'll need to edit the {MATLAB}/bin/matlab script to get the java settings correct. After the comments at the top of the file, you'll need the line<br />
<br />
export MATLAB_JAVA={Path of JRE}<br />
<br />
Where {Path of JRE} will be /opt/java/jre if you're using Sun's JRE. The path is one level up from where rt.jar is located. That is, rt.jar should be in /opt/java/jre/libs if you used /opt/java/jre for MATLAB_JAVA. In Matlab R2010a it works pretty well, if you use the intern JRE with<br />
<br />
export MATLAB_JAVE={Path of Matlab}/sys/java/jre/glnx86/jre<br />
<br />
To run it, you'll need to:<br />
<br />
$ /{MATLAB}/bin/matlab -glnx86 -desktop<br />
<br />
At this point you may have to resolve more library dependencies or troubleshoot Java. Your version of Matlab may need a specific version of Sun's JRE installed.<br />
<br />
=== General ===<br />
As one installs matlab, it might complain that there isn't a package, for the most part just look at the package name and then install it with pacman, or in the case of x86_64 there are some libraries only in AUR.<br />
<br />
=== Nvidia OpenGL Acceleration ===<br />
<br />
Once matlab is installed type<br />
<pre><br />
>> opengl info<br />
Version = 2.1.2 NVIDIA 177.82<br />
Vendor = NVIDIA Corporation<br />
Renderer = Quadro NVS 140M/PCI/SSE2<br />
MaxTextureSize = 8192<br />
Visual = 0x21 (TrueColor, depth 16, RGB mask 0xf800 0x07e0 0x001f)<br />
Software = false<br />
# of Extensions = 144<br />
<br />
Driver Bug Workarounds:<br />
OpenGLBitmapZbufferBug = 0<br />
OpenGLWobbleTesselatorBug = 0<br />
OpenGLLineSmoothingBug = 0<br />
OpenGLClippedImageBug = 1<br />
OpenGLEraseModeBug = 0<br />
</pre><br />
<br />
That is what it should look like. If you have a graphics card but it is using Software = true then you have a problem. With the nvidia card all I needed to do to get it working was copy the libGLU.so from the matlab installed library /usr/local/matlab/sys/opengl/lib/glnx86/libGLU.so to /usr/lib directory. NOTE in x86_64 this might be a different directory.</div>Cephirhttps://wiki.archlinux.org/index.php?title=MATLAB&diff=101859MATLAB2010-04-04T09:36:28Z<p>Cephir: /* x86_64 */</p>
<hr />
<div>{{stub}}<br />
[[Category:Science (English)]]<br />
<br />
== For the 32bit student edition 2008b ==<br />
=== x86 ===<br />
Just install (might require a few extra packages, but then can be install via pacman.<br />
(I will try to make a list when I install next)<br />
<br />
For graphical install and interface libxp is needed.<br />
<br />
pacman -S libxp <br />
Install from iso file<br />
modprobe loop<br />
mount -o loop matu2k8b.iso /media/iso/<br />
/media/iso/install<br />
<br />
=== x86_64 ===<br />
These are instructions for the installation of 32-bit Matlab on a 64-bit system. Unfortunately, 32-bit is the only version available to students; 64-bit versions are available if you pay more money. These instructions have been updated for the student r2009A version - however the instructions should work with any current version of Matlab. To start off with we need to install a bunch of lib32 packages, not all found with pacman. Check the [[AUR]] for lib32-printproto, lib32-libxp and lib32-libxpm. Install lib32-printproto first, because it's required by lib32-libxp.<br />
<br />
$ pacman -S lib32-mesa<br />
$ pacman -S lib32-glibc<br />
$ pacman -S lib32-libxmu<br />
$ pacman -S lib32-zlib<br />
$ pacman -S lib32-ncurses<br />
$ pacman -S lib32-libxtst<br />
$ pacman -S lib32-libxi<br />
$ pacman -S lib32-libxrender<br />
$ pacman -S lib32-libxfixes<br />
$ pacman -S lib32-freetype2 lib32-fontconfig lib32-libxdamage <br />
<br />
$ yaourt -S lib32-printproto<br />
$ yaourt -S lib32-libxp<br />
$ yaourt -S lib32-libxpm<br />
<br />
My system is not a fresh install so there may be some other packages needed.<br />
<br />
Once they are installed <br />
<br />
$ ./install -glnx86<br />
<br />
After fixing any library dependency problems, you will be able to guide the installer through the install process. If activation doesn't work in the installer you'll need to login to Wolfram's site and download a license file which you'll put in {MATLAB}/licenses. After the install process, you'll need to create a symbolic link because the installer oddly thinks it's installing the 64-bit version of Matlab:<br />
<br />
$ cd {MATLAB}/sys/java/jre<br />
$ ln -s glnx86 glnxa64<br />
<br />
In the above, {MATLAB} should be replaced by the root directory you chose for your installation.<br />
<br />
You'll also need to put another link in matlab's bin folder because despite asking matlab to install the 32bit version, it still thinks you want to use the 64bit one.<br />
<br />
$ cd {MATLAB}/bin<br />
$ ln -s glnx86 glnxa64<br />
<br />
After that you'll need to edit the {MATLAB}/bin/matlab script to get the java settings correct. After the comments at the top of the file, you'll need the line<br />
<br />
export MATLAB_JAVA={Path of JRE}<br />
<br />
Where {Path of JRE} will be /opt/java/jre if you're using Sun's JRE. The path is one level up from where rt.jar is located. That is, rt.jar should be in /opt/java/jre/libs if you used /opt/java/jre for MATLAB_JAVA. In Matlab R2010a it works pretty well, if you use the intern JRE with<br />
<br />
export MATLAB_JAVE={Path of Matlab}/sys/java/jre/glnx86/jre<br />
<br />
To run it, you'll need to:<br />
<br />
$ cd {MATLAB}/bin/matlab -glnx86 -desktop<br />
<br />
At this point you may have to resolve more library dependencies or troubleshoot Java. Your version of Matlab may need a specific version of Sun's JRE installed.<br />
<br />
=== General ===<br />
As one installs matlab, it might complain that there isn't a package, for the most part just look at the package name and then install it with pacman, or in the case of x86_64 there are some libraries only in AUR.<br />
<br />
=== Nvidia OpenGL Acceleration ===<br />
<br />
Once matlab is installed type<br />
<pre><br />
>> opengl info<br />
Version = 2.1.2 NVIDIA 177.82<br />
Vendor = NVIDIA Corporation<br />
Renderer = Quadro NVS 140M/PCI/SSE2<br />
MaxTextureSize = 8192<br />
Visual = 0x21 (TrueColor, depth 16, RGB mask 0xf800 0x07e0 0x001f)<br />
Software = false<br />
# of Extensions = 144<br />
<br />
Driver Bug Workarounds:<br />
OpenGLBitmapZbufferBug = 0<br />
OpenGLWobbleTesselatorBug = 0<br />
OpenGLLineSmoothingBug = 0<br />
OpenGLClippedImageBug = 1<br />
OpenGLEraseModeBug = 0<br />
</pre><br />
<br />
That is what it should look like. If you have a graphics card but it is using Software = true then you have a problem. With the nvidia card all I needed to do to get it working was copy the libGLU.so from the matlab installed library /usr/local/matlab/sys/opengl/lib/glnx86/libGLU.so to /usr/lib directory. NOTE in x86_64 this might be a different directory.</div>Cephirhttps://wiki.archlinux.org/index.php?title=MATLAB&diff=101858MATLAB2010-04-04T09:36:05Z<p>Cephir: /* x86_64 */</p>
<hr />
<div>{{stub}}<br />
[[Category:Science (English)]]<br />
<br />
== For the 32bit student edition 2008b ==<br />
=== x86 ===<br />
Just install (might require a few extra packages, but then can be install via pacman.<br />
(I will try to make a list when I install next)<br />
<br />
For graphical install and interface libxp is needed.<br />
<br />
pacman -S libxp <br />
Install from iso file<br />
modprobe loop<br />
mount -o loop matu2k8b.iso /media/iso/<br />
/media/iso/install<br />
<br />
=== x86_64 ===<br />
These are instructions for the installation of 32-bit Matlab on a 64-bit system. Unfortunately, 32-bit is the only version available to students; 64-bit versions are available if you pay more money. These instructions have been updated for the student r2009A version - however the instructions should work with any current version of Matlab. To start off with we need to install a bunch of lib32 packages, not all found with pacman. Check the [[AUR]] for lib32-printproto, lib32-libxp and lib32-libxpm. Install lib32-printproto first, because it's required by lib32-libxp.<br />
<br />
$ pacman -S lib32-mesa<br />
$ pacman -S lib32-glibc<br />
$ pacman -S lib32-libxmu<br />
$ pacman -S lib32-zlib<br />
$ pacman -S lib32-ncurses<br />
$ pacman -S lib32-libxtst<br />
$ pacman -S lib32-libxi<br />
$ pacman -S lib32-libxrender<br />
$ pacman -S lib32-libxfixes<br />
$ pacman -S lib32-freetype2 lib32-fontconfig lib32-libxdamage <br />
<br />
$ yaourt -S lib32-printproto<br />
$ yaourt -S lib32-libxp<br />
$ yaourt -S lib32-libxpm<br />
<br />
My system is not a fresh install so there may be some other packages needed.<br />
<br />
Once they are installed <br />
<br />
$ ./install -glnx86<br />
<br />
After fixing any library dependency problems, you will be able to guide the installer through the install process. If activation doesn't work in the installer you'll need to login to Wolfram's site and download a license file which you'll put in {MATLAB}/licenses. After the install process, you'll need to create a symbolic link because the installer oddly thinks it's installing the 64-bit version of Matlab:<br />
<br />
$ cd {MATLAB}/sys/java/jre<br />
$ ln -s glnx86 glnxa64<br />
<br />
In the above, {MATLAB} should be replaced by the root directory you chose for your installation.<br />
<br />
You'll also need to put another link in matlab's bin folder because despite asking matlab to install the 32bit version, it still thinks you want to use the 64bit one.<br />
<br />
$ cd {MATLAB}/bin<br />
$ ln -s glnx86 glnxa64<br />
<br />
After that you'll need to edit the {MATLAB}/bin/matlab script to get the java settings correct. After the comments at the top of the file, you'll need the line<br />
<br />
export MATLAB_JAVA={Path of JRE}<br />
<br />
Where {Path of JRE} will be /opt/java/jre if you're using Sun's JRE. The path is one level up from where rt.jar is located. That is, rt.jar should be in /opt/java/jre/libs if you used /opt/java/jre for MATLAB_JAVA. In Matlab R2010a it works pretty well, if you use the intern JRE with.<br />
<br />
export MATLAB_JAVE={Path of Matlab}/sys/java/jre/glnx86/jre<br />
<br />
To run it, you'll need to:<br />
<br />
$ cd {MATLAB}/bin/matlab -glnx86 -desktop<br />
<br />
At this point you may have to resolve more library dependencies or troubleshoot Java. Your version of Matlab may need a specific version of Sun's JRE installed.<br />
<br />
=== General ===<br />
As one installs matlab, it might complain that there isn't a package, for the most part just look at the package name and then install it with pacman, or in the case of x86_64 there are some libraries only in AUR.<br />
<br />
=== Nvidia OpenGL Acceleration ===<br />
<br />
Once matlab is installed type<br />
<pre><br />
>> opengl info<br />
Version = 2.1.2 NVIDIA 177.82<br />
Vendor = NVIDIA Corporation<br />
Renderer = Quadro NVS 140M/PCI/SSE2<br />
MaxTextureSize = 8192<br />
Visual = 0x21 (TrueColor, depth 16, RGB mask 0xf800 0x07e0 0x001f)<br />
Software = false<br />
# of Extensions = 144<br />
<br />
Driver Bug Workarounds:<br />
OpenGLBitmapZbufferBug = 0<br />
OpenGLWobbleTesselatorBug = 0<br />
OpenGLLineSmoothingBug = 0<br />
OpenGLClippedImageBug = 1<br />
OpenGLEraseModeBug = 0<br />
</pre><br />
<br />
That is what it should look like. If you have a graphics card but it is using Software = true then you have a problem. With the nvidia card all I needed to do to get it working was copy the libGLU.so from the matlab installed library /usr/local/matlab/sys/opengl/lib/glnx86/libGLU.so to /usr/lib directory. NOTE in x86_64 this might be a different directory.</div>Cephir