{"id":219,"date":"2013-06-21T08:54:07","date_gmt":"2013-06-21T08:54:07","guid":{"rendered":"http:\/\/francisfisher.me.uk\/problem\/?p=219"},"modified":"2013-06-24T10:04:52","modified_gmt":"2013-06-24T10:04:52","slug":"compiling-octave-from-source-on-linux-mint-nadia-ubuntu-12-10","status":"publish","type":"post","link":"https:\/\/francisfisher.me.uk\/problem\/2013\/compiling-octave-from-source-on-linux-mint-nadia-ubuntu-12-10\/","title":{"rendered":"Compiling Octave from source on Linux Mint Nadia (Ubuntu 12.10)"},"content":{"rendered":"<p>I recently needed to build GNU Octave from source, as the version available in the Ubuntu repositories (3.6.2) had a crash that reliably triggered when I attempted to run a matlab script from a lecture I had been watching (a Stanford lecture series\u00a0called <a title=\"The Fourier Transforms and its Applications\" href=\"http:\/\/www.youtube.com\/watch?v=gZNm7L96pfY&amp;list=ECB24BC7956EE040CD\">The Fourier Transforms and its Applications<\/a>).<\/p>\n<p><code>error: source: error sourcing file `\/home\/frankster\/Reference\/TheFourierTransform\/materials\/lsoftaee261\/sinesum2.m'<br \/>\n*** glibc detected *** octave: corrupted double-linked list: 0x00000000020d6380 ***<\/code><\/p>\n<p>I pulled the mercurial repository containing the source, and followed the build instructions in etc\/HACKING which said to run the .\/bootstrap script. Unfortunately, when I ran this script I got the error:<\/p>\n<p><code>~\/octave$ .\/bootstrap<br \/>\n.\/bootstrap: one of these is required: glibtoolize libtoolize<br \/>\n<\/code><\/p>\n<p>It wasn't immediately clear to me what this error meant, and I couldn't find any answers with a quick search. After a little bit of trial and error, I realised that there might be some build pre-requisites that were not installed. Fortunately on debian-based distributions its incredibly easy to sort this out (for packaged software at least):<\/p>\n<p><code>sudo apt-get build-dep octave<\/code><\/p>\n<p>Development versions of octave have a <a href=\"http:\/\/octave-gsoc2012.blogspot.ca\/2012\/08\/bringing-together-everything.html\">new QT interface<\/a>. In order to get this to compile I also installed some qt packages:<\/p>\n<p><code>sudo apt-get install libqt4-core libqt4-gui libqt4-network libqt4-dev<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently needed to build GNU Octave from source, as the version available in the Ubuntu repositories (3.6.2) had a crash that reliably triggered when I attempted to run a matlab script from a lecture I had been watching (a Stanford lecture series\u00a0called The Fourier Transforms and its Applications). error: source: error sourcing file `\/home\/frankster\/Reference\/TheFourierTransform\/materials\/lsoftaee261\/sinesum2.m' [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/posts\/219"}],"collection":[{"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/comments?post=219"}],"version-history":[{"count":8,"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/posts\/219\/revisions"}],"predecessor-version":[{"id":227,"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/posts\/219\/revisions\/227"}],"wp:attachment":[{"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/media?parent=219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/categories?post=219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/tags?post=219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}