Guest User

Untitled

a guest
Mar 14th, 2014
505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. Reference
  3. http://blogs.bu.edu/mhirsch/2013/12/compiling-octave-3-8/
  4.  
  5.  
  6. (Ubuntu 12.04.4)
  7. ./configure --enable-jit --prefix=/opt/octave3.8 LLVM_CONFIG=~/Downloads/clang+llvm-3.2-x86_64-linux-ubuntu-12.04/bin/llvm-config
  8.  
  9.  
  10. sudo ./configure LLVM_CONFIG=/usr/bin/llvm-config-3.2 JAVA_HOME=/usr/lib/jvm/default-java --enable-jit --prefix=/opt/octave3.8
  11.  
  12.  
  13. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  14. mapx@N55SL:~/xfiles/gnuoctave/octave-3.8.1$ ./configure JAVA_HOME=/usr/lib/jvm/default-java --enable-jit --prefix=/opt/octave3.8 LLVM_CONFIG=/home/mapx/xfiles/gnuoctave/clang+llvm-3.2-x86_64-linux-ubuntu-12.04/bin/llvm-config
  15.  
  16. .
  17. .
  18. .
  19. .
  20.  
  21.   Build Octave GUI:                   yes
  22.   JIT compiler for loops:             no
  23.   Build Java interface:               yes
  24.   Do internal array bounds checking:  no
  25.   Use octave_allocator:               no
  26.   Build static libraries:             no
  27.   Build shared libraries:             yes
  28.   Dynamic Linking:                    yes (dlopen)
  29.   Include support for GNU readline:   yes
  30.   64-bit array dims and indexing:     no
  31.  
  32. configure: WARNING: Missing LLVM file TargetData.h.  JIT compiler is disabled.
  33. configure:
  34. configure: NOTE: Libraries or auxiliary programs may be skipped if they are
  35. configure: NOTE: not found OR if they are missing required features on your
  36. configure: NOTE: system.
  37.  
  38.  
  39. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  40. $ make
  41. .
  42. .
  43. .
  44.  
  45.  
  46. make[3]: `../../INSTALL.OCTAVE' is up to date.
  47. make[3]: Leaving directory `/home/mapx/xfiles/gnuoctave/octave-3.8.1/doc/interpreter'
  48.  
  49. Octave successfully built.  Now choose from the following:
  50.  
  51.    ./run-octave    - to run in place to test before installing
  52.    make check      - to run the tests
  53.    make install    - to install (PREFIX=/opt/octave3.8)
  54.  
  55. make[2]: Leaving directory `/home/mapx/xfiles/gnuoctave/octave-3.8.1'
  56. make[1]: Leaving directory `/home/mapx/xfiles/gnuoctave/octave-3.8.1'
  57.  
  58.  
  59.  
  60.  
  61.  
  62. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  63. $ make check
  64. .
  65. .
  66. .
  67.  
  68. unwind.tst ............................................. PASS    2/2  
  69.   while.tst .............................................. PASS    6/6  
  70.  
  71. Summary:
  72.  
  73.   PASS     11503
  74.   FAIL         0
  75.   XFAIL        7
  76.   SKIPPED     36
  77.  
  78. See the file test/fntests.log for additional details.
  79.  
  80. Expected failures (listed as XFAIL above) are known bugs.
  81. Please help improve Octave by contributing fixes for them.
  82.  
  83. Tests are most often skipped because the features they require
  84. have been disabled.  Features are most often disabled because
  85. they require dependencies that were not present when Octave
  86. was built.  The configure script should have printed a summary
  87. at the end of its run indicating which dependencies were not found.
  88.  
  89. 243 (of 831) .m files have no tests.
  90.  
  91. Please help improve Octave by contributing tests for
  92. these files (see the list in the file fntests.log).
  93.  
  94. make[1]: Leaving directory `/home/mapx/xfiles/gnuoctave/octave-3.8.1/test'
  95.  
  96.  
  97. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  98. $ sudo make install
  99. [sudo] password for mapx:
  100.  
  101.  
  102. .
  103. .
  104. .
  105. Octave successfully built.  Now choose from the following:
  106.  
  107.   ./run-octave    - to run in place to test before installing
  108.   make check      - to run the tests
  109.   make install    - to install (PREFIX=/opt/octave3.8)
  110.  
  111. make[3]: Entering directory `/home/mapx/xfiles/gnuoctave/octave-3.8.1'
  112. Makefile:2835: warning: overriding commands for target `check'
  113. Makefile:2397: warning: ignoring old commands for target `check'
  114. make[3]: Nothing to be done for `install-exec-am'.
  115. /bin/mkdir -p /opt/octave3.8/share/octave/site/m /opt/octave3.8/share/octave/site/api-v49+/m /opt/octave3.8/share/octave/3.8.1/site/m /opt/octave3.8/lib/octave/site/oct/i686-pc-linux-gnu /opt/octave3.8/lib/octave/site/oct/api-v49+/i686-pc-linux-gnu /opt/octave3.8/lib/octave/3.8.1/site/oct/i686-pc-linux-gnu /opt/octave3.8/libexec/octave/site/exec/i686-pc-linux-gnu /opt/octave3.8/libexec/octave/api-v49+/site/exec/i686-pc-linux-gnu /opt/octave3.8/libexec/octave/3.8.1/site/exec/i686-pc-linux-gnu
  116. /bin/mkdir -p '/opt/octave3.8/include/octave-3.8.1/octave'
  117. /usr/bin/install -c -m 644 config.h '/opt/octave3.8/include/octave-3.8.1/octave'
  118. /bin/mkdir -p '/opt/octave3.8/share/octave/3.8.1/etc'
  119. /usr/bin/install -c -m 644 CITATION NEWS config.log '/opt/octave3.8/share/octave/3.8.1/etc'
  120. /bin/mkdir -p '/opt/octave3.8/include/octave-3.8.1/octave'
  121. /usr/bin/install -c -m 644 oct-conf-post.h '/opt/octave3.8/include/octave-3.8.1/octave'
  122. make[3]: Leaving directory `/home/mapx/xfiles/gnuoctave/octave-3.8.1'
  123. make[2]: Leaving directory `/home/mapx/xfiles/gnuoctave/octave-3.8.1'
  124. make[1]: Leaving directory `/home/mapx/xfiles/gnuoctave/octave-3.8.1'
  125.  
  126.  
  127. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  128. $ sudo ln -s /opt/octave3.8/bin/octave /usr/local/bin/octave3.8
  129.  
  130.  
  131. Now to run Octave 3.8 with GUI, at Terminal type:
  132. octave3.8 --force-gui
  133.  
  134. You can of course make a bash alias to always add that –force-gui for you.
  135.  
  136. nano ~/.bash_aliases
  137. and add the line
  138. alias octave38="octave3.8 --force-gui"
Advertisement
Add Comment
Please, Sign In to add comment