<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8349479137499529299</id><updated>2012-02-16T18:48:38.556+01:00</updated><category term='openSUSE'/><category term='atlas'/><category term='Octave'/><title type='text'>Martin's Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mhelm8191.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8349479137499529299/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://mhelm8191.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Martin Helm</name><uri>http://www.blogger.com/profile/14154560275314097808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/_X5YIPtFOkmo/S2Q6Jit6lpI/AAAAAAAAAAM/BSPGKW5X4dE/s1600-R/martin.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8349479137499529299.post-1412459184235410492</id><published>2010-08-21T12:14:00.000+02:00</published><updated>2010-08-21T13:52:06.138+02:00</updated><title type='text'>Howto install jhandles in octave 3.2 with ubuntu 10.04</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_X5YIPtFOkmo/TG-qaeHoJjI/AAAAAAAAAAw/XkcfKoJkcQ0/s1600/Bildschirmfoto-Figure+1.0.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 243px;" src="http://3.bp.blogspot.com/_X5YIPtFOkmo/TG-qaeHoJjI/AAAAAAAAAAw/XkcfKoJkcQ0/s320/Bildschirmfoto-Figure+1.0.png" alt="" id="BLOGGER_PHOTO_ID_5507808241035781682" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Last evening I joined a discussion on the GNU Octave mailing list about a problem making jhandles work on the current ubuntu. I already succeeded with that on my own machine with octave 3.2.4 and opensuse 11.3 64 bit, so I thought it will work on ubuntu too and gave it a try in a virtual machine.&lt;br /&gt;&lt;br /&gt;Ok so I did it with 32 bit ubuntu 10.04 in vmware player (had no chance to do it with 64 bit so please take care that some paths can be slightly different on 64 bit version):&lt;br /&gt;&lt;br /&gt;Install the following packages in ubuntu&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo apt-get install octave3.2 octave3.2-headers&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo apt-get install openjdk-6-jre openjdk-6-jdk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo apt-get install libjogl-java&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo apt-get install mesa-common-dev&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The following symbolic links are a workaround to make the configure scripts of the installer find the packages and there may be better solutions, but at least it works.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd /usr/lib&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo cp -s /usr/lib/mesa/libGL.so.1 libGL.so&lt;/span&gt;  &lt;span style="font-family:courier new;"&gt;&lt;br /&gt;&lt;br /&gt;cd /usr/bin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo cp -s /usr/share/java/jogl.jar .&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo cp -s /usr/share/java/gluegen-rt.jar .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Download the&lt;a href="http://sourceforge.net/projects/octave/files/Octave%20Forge%20Packages/Individual%20Package%20Releases/java-1.2.7.tar.gz/download"&gt; octave java package 1.2.7 from octave forge&lt;/a&gt;&lt;br /&gt;Download&lt;a href="http://sourceforge.net/projects/octave/files/Octave%20Forge%20Packages/R2009-05-08/jhandles-0.3.5.tar.gz/download"&gt; jhandles 0.3.5 from octave forge&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Extract the jhandles package and navigate to the src folder. Open the configure script with an editor of your choice.&lt;br /&gt;In the  lines 4335, 4337, 4341 and 4342 change&lt;br /&gt;&lt;br /&gt; octave -qf&lt;br /&gt;&lt;br /&gt;to&lt;br /&gt;&lt;br /&gt; octave -q&lt;br /&gt;&lt;br /&gt;Save the file.&lt;br /&gt;&lt;br /&gt;(Delete only the character f make sure you do not change anything else, do not delete the character ` at the end of the lines).&lt;br /&gt;Change into the folder where you downloaded this packages for example&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd ~/Downloads&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Run octave as root to install the packages system wide&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo octave&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then proceed in octave&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;setenv("JAVA_HOME", "/usr/lib/jvm/java-6-openjdk")&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;pkg install -verbose java-1.2.7.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(you will get some compiler warnings which can safely be ignored)&lt;br /&gt;&lt;br /&gt;check that the functions from the java package are really available and work.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;help java_new&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;type java_new&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;x = java_new ("java.lang.StringBuffer", "Initial string")&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;x.toString()&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;None of these commands should give error messages. So at this point you have the java binding s successfully installed.&lt;br /&gt;&lt;br /&gt;Let's proceed with jhandles:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;pkg install -verbose jhandles-0.3.5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ignore the warnings and exit octave.&lt;br /&gt;&lt;br /&gt;Add the following lines to your .octaverc file with an editor of your choice in your home directory (create this file if there is none) before you proceed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;javaaddpath("/usr/share/java/gluegen-rt.jar")&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;&lt;br /&gt;javaaddpath("/usr/share/java/jogl.jar")&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now start octave as normal user&lt;br /&gt;&lt;br /&gt;The command &lt;span style="font-family:courier new;"&gt;pkg list &lt;/span&gt;should now show&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;java *|   1.2.7 | /usr/share/octave/packages/3.2/java-1.2.7&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;jhandles  |   0.3.5 | /usr/share/octave/packages/3.2/jhandles-0.3.5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Test the jhandles functionality with the following code snippet:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;pkg load jhandles&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sombrero&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;shading interp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hopefully it works also for you.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8349479137499529299-1412459184235410492?l=mhelm8191.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mhelm8191.blogspot.com/feeds/1412459184235410492/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://mhelm8191.blogspot.com/2010/08/howto-install-jhandles-in-octave-32.html#comment-form' title='6 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8349479137499529299/posts/default/1412459184235410492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8349479137499529299/posts/default/1412459184235410492'/><link rel='alternate' type='text/html' href='http://mhelm8191.blogspot.com/2010/08/howto-install-jhandles-in-octave-32.html' title='Howto install jhandles in octave 3.2 with ubuntu 10.04'/><author><name>Martin Helm</name><uri>http://www.blogger.com/profile/14154560275314097808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/_X5YIPtFOkmo/S2Q6Jit6lpI/AAAAAAAAAAM/BSPGKW5X4dE/s1600-R/martin.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_X5YIPtFOkmo/TG-qaeHoJjI/AAAAAAAAAAw/XkcfKoJkcQ0/s72-c/Bildschirmfoto-Figure+1.0.png' height='72' width='72'/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8349479137499529299.post-5159519374705976587</id><published>2010-01-31T14:58:00.000+01:00</published><updated>2010-02-02T21:21:01.244+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='atlas'/><category scheme='http://www.blogger.com/atom/ns#' term='openSUSE'/><category scheme='http://www.blogger.com/atom/ns#' term='Octave'/><title type='text'>Compiling atlas for GNU Octave on openSUSE 11.2</title><content type='html'>Having a full featured GNU Octave on openSUSE is not the most trivial thing at all. During the last years I always preferred to compile it myself. Unfortunately this means that I also need to compile a variety of libraries needed by Octave.&lt;br /&gt;&lt;br /&gt;If you are a newbie to Octave you should not necessarily follow my description. There is some evidence that you don't need it. If your requirement is to have a GNU Octave with full capabilities, but do not need to care to much about the performance it will be better if you use the octave 3.2.0 package from the OBS (openSUSE build service) from version 11.1 by ars3niy (&lt;a href="http://software.opensuse.org/ymp/home:ars3niy:octave/openSUSE_11.1/octave.ymp"&gt;1 click install&lt;/a&gt;). It is fully compatible with openSUSE 11.2.&lt;br /&gt;&lt;br /&gt;There is also a description how to build your own octave 3.2.3 rpm available at &lt;a href="http://www.schoeps.org/home/2010/01/install-octave-on-opensuse/"&gt;&lt;span style="text-decoration: underline;"&gt;Sebastian Schöps blog&lt;/span&gt;&lt;/a&gt;&lt;a href="http://www.schoeps.org/home/2010/01/install-octave-on-opensuse/"&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Here comes my description what I did to have &lt;a href="http://www.netlib.org/atlas/"&gt;atlas&lt;/a&gt; &lt;a href="http://www.netlib.org/atlas/"&gt;&lt;/a&gt;(automatically tuned linear algebra software) available.&lt;br /&gt;&lt;br /&gt;First of all I removed the atlas from OBS (it lead to segfaults for me on my machine) as well as the lapack package with zypper.&lt;br /&gt;&lt;br /&gt;The whole process is based on a combination from the following pages&lt;br /&gt;&lt;a href="http://www.scipy.org/Installing_SciPy/Linux"&gt;http://www.scipy.org/Installing_SciPy/Linux&lt;/a&gt;&lt;br /&gt;&lt;a href="http://skuld.bmsc.washington.edu/%7Etlsmd/install.html"&gt;http://skuld.bmsc.washington.edu/~tlsmd/install.html&lt;/a&gt;&lt;br /&gt;slightly adapted to my needs.&lt;br /&gt;&lt;br /&gt;Download the latest &lt;a href="http://sourceforge.net/projects/math-atlas/files/"&gt;stable atlas&lt;/a&gt; from SourceForge (this was 3.8.3). Before installing it I built my own lapack library following the advice for lapack in Building &lt;a href="http://www.scipy.org/Installing_SciPy/Linux#head-89e1f6afaa3314d98a22c79b063cceee2cc6313c"&gt;Atlas by Hand&lt;/a&gt;.&lt;br /&gt;This gives me a static library lapack_LINUX.a which I renamed to liblapack.a and copied to /usr/local/lib64, I also need a dynamic library which I created by the following steps&lt;br /&gt;&lt;br /&gt;In the directory where lapack was built&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;mkdir tmp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cp liblapack.a tmp/&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd tmp/&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ar -x liblapack.a&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;gcc -fPIC -lgfortran -shared *.o -Wl,-soname,liblapack.so.3 -o liblapack.so.3&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo cp liblapack.so.3 /usr/local/lib64/&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd /usr/local/lib64&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo cp -s liblapack.so.3 liblapack.so&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and then followed the rest of the "Building Atlas by Hand" article.&lt;br /&gt;&lt;br /&gt;The default install of the atlas library puts them into /usr/local/lib/atlas/ which is not appropriate for me since I have a 64 bit machine. I decided to solve this with symbolic links because then I have not to think about it if I recompile it sometime later.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cd /usr/local/lib64&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo cp -s ../lib/atlas/* .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Running configure for GNU Octave 3.2.3 properly detects the atlas and the corresponding lapack library (but it chooses the sequential versions).&lt;br /&gt;&lt;br /&gt;To make Octave use the threaded versions so that I have benefit from the multicore machine I needed to tweak the file Makeconf (created by ./configure).&lt;br /&gt;&lt;br /&gt;search for the line&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;BLAS_LIBS = -llapack -lcblas -lf77blas -latlas&lt;/span&gt;&lt;br /&gt;and substitute&lt;span style="font-family:courier new;"&gt; -lcblas&lt;/span&gt; by&lt;span style="font-family:courier new;"&gt; -lptcblas&lt;/span&gt; and &lt;span style="font-family:courier new;"&gt;-lf77blas&lt;/span&gt; by -lptf77blas&lt;br /&gt;&lt;br /&gt;After&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;make -j 4 &lt;/span&gt;&lt;br /&gt;and waiting some time&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;make check&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo make install&lt;/span&gt;&lt;br /&gt;my Octave runs now properly with the multithreaded libraries.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8349479137499529299-5159519374705976587?l=mhelm8191.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mhelm8191.blogspot.com/feeds/5159519374705976587/comments/default' title='Kommentare zum Post'/><link rel='replies' type='text/html' href='http://mhelm8191.blogspot.com/2010/01/compiling-atlas-for-gnu-octave-on.html#comment-form' title='0 Kommentare'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8349479137499529299/posts/default/5159519374705976587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8349479137499529299/posts/default/5159519374705976587'/><link rel='alternate' type='text/html' href='http://mhelm8191.blogspot.com/2010/01/compiling-atlas-for-gnu-octave-on.html' title='Compiling atlas for GNU Octave on openSUSE 11.2'/><author><name>Martin Helm</name><uri>http://www.blogger.com/profile/14154560275314097808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://3.bp.blogspot.com/_X5YIPtFOkmo/S2Q6Jit6lpI/AAAAAAAAAAM/BSPGKW5X4dE/s1600-R/martin.gif'/></author><thr:total>0</thr:total></entry></feed>
