aesenadorjr
Group: Members
Posts: 11
Joined: Feb. 2005 |
|
Posted: Feb. 11 2005,21:55 |
|
Additional bug on Octave extension:
The function files (called m-files) cannot be found by Octave, but they are actually present in /opt/octave/share/octave/2.0.16.92/m/. For example, the statistical functions will not be available unless you edit the /opt/octave/bin/octave.sh script and include the necessary path using the option "-p".
I am still learning how to repackage the octave extension, and thus far I think I got it to work. Right now I am sampling the documented functions to check for other missing links to the function library. If you don't know how to repackage (or scared to try) you can solve the issues I reported here and in my previous post by opening the script /opt/octave/bin/octave.sh using Beaver (or any text editor), then make sure the contents are as follows:
#!/bin/bash
export LD_LIBRARY_PATH="/opt/octave/lib/octave-2.0.16.92/" /opt/octave/bin/octave --exec-path /opt/octave/bin:/usr/bin -p /opt/octave/lib/octave/2.0.16.92/oct/i386-pc-linux-gnu//:/opt/octave/share/octave/2.0.16.92/m//[
Note that there are *two* paths specified for the -p option, and they are separated by a colon. Also, the "//" at the end of the paths are important since these indicate that directories under the paths will be searched recursively.
So why not just use "-p /opt/octave//"? Because according to the octave manual, recursive searching of the directories will slow down the execution of the commands.
Note the option "--exec-path" also contain "/usr/bin" because otherwise the "less" pager will not be found by octave and, consequently, you will not be able to display the output of the commands if these are larger than one screenfull.
That's all for now...
|