3598
|
1 NOTE: This file was originally written several years ago, when many |
|
2 people were complaining that Octave would not work for them on Linux |
|
3 systems. Generally, the problems were not actually bugs in Octave. |
|
4 More recently, the compilers are better, most distributions are more |
|
5 complete, and it seems harder to install incompatible sets of |
|
6 libraries or header files (but some people still manage to do it). |
|
7 |
2602
|
8 Since July 1996, most work on Octave has been done using a Linux |
|
9 system, and a number of people who regularly test Octave snapshot |
3142
|
10 releases also primarily use Linux systems. Because of this, I believe |
|
11 Octave should run reasonably well on most current Linux systems. |
|
12 However, there have been some problems in the past, usually the result |
|
13 of improper installation of compilers or libraries. Sometimes the |
|
14 problems have happened because of a botched upgrade or even a buggy |
|
15 Linux distribution. |
2593
|
16 |
3598
|
17 If you can, you should probably install Octave using one of the Debian |
|
18 or RPM packages for Octave that are available with the major Linux |
|
19 distributions. For example, Dirk Eddelbuettel <edd@debian.org> |
|
20 maintains the Debian Octave package and usually has them ready within |
|
21 a day or so of new Octave releases. They are available via the WWW at |
4494
|
22 http://www.debian.org/distrib/packages. |
3142
|
23 |
|
24 If for some reason you can't (or choose not to) install Octave from |
|
25 one of the binary distributions or by using one of the Debian or RPM |
|
26 packages and something goes wrong, please check the following list to |
|
27 see if your problem is already well known before reporting a bug. |
2593
|
28 |
2596
|
29 Octave compiles, but it won't run |
|
30 --------------------------------- |
|
31 |
|
32 If you can compile Octave, but it crashes with a segmentation fault |
3598
|
33 right away, you probably have incompatible versions of libc and |
|
34 libstdc++ installed, or you have a version of the dynamic loader, |
|
35 ld.so, that is incompatible with your versions of the libraries, or |
|
36 both. |
2593
|
37 |
2596
|
38 Octave won't even compile |
|
39 ------------------------- |
2593
|
40 |
|
41 If you can't compile Octave, you should first check to see that your |
|
42 compiler and header files are properly installed. Do you have |
|
43 multiple versions of the g++ include files on your system? Are you |
2596
|
44 sure that your copy of g++ is finding the right set? You can find out |
|
45 by compiling a simple C++ program with -v: |
|
46 |
|
47 bash$ cat foo.cc |
|
48 #include <iostream.h> |
2663
|
49 int main (void) { cerr << "yo\n"; return 0; } |
2596
|
50 |
|
51 bash$ g++ -v foo.cc |
3598
|
52 gcc -v foo.cc -lstdc++ -lm |
2596
|
53 Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.2/specs |
|
54 gcc version 2.7.2 |
|
55 /usr/lib/gcc-lib/i486-linux/2.7.2/cpp -lang-c++ -v -undef ... |
|
56 #include "..." search starts here: |
|
57 #include <...> search starts here: |
|
58 /usr/lib/g++-include |
|
59 /usr/local/include |
|
60 /usr/i486-linux/include |
|
61 /usr/lib/gcc-lib/i486-linux/2.7.2/include |
|
62 /usr/include |
|
63 End of search list. |
|
64 ... |
|
65 |
2597
|
66 If the location of the correct set of include files is not listed in |
|
67 the search path, then you might be able to fix that with a symbolic |
3598
|
68 link. However, if your version of libstdc++ was not compiled with your |
2597
|
69 current version of gcc, you are likely to run into more trouble. |
2596
|
70 |
2993
|
71 I/O in dynamically loaded .oct files doesn't work |
|
72 ------------------------------------------------- |
|
73 |
|
74 If Octave prints things like `%.-1e' instead of numbers when you use a |
|
75 dynamically linked .oct file, you probably need to create shared |
|
76 versions of the Octave libraries. To do that, configure Octave with |
3142
|
77 --enable-shared, recompile, and reinstall. |
2993
|
78 |
2601
|
79 |
2598
|
80 If you have comments or suggestions for this document, please contact |
5041
|
81 bug@octave.org. |
2593
|
82 |
|
83 John W. Eaton |
|
84 jwe@bevo.che.wisc.edu |
|
85 University of Wisconsin-Madison |
|
86 Department of Chemical Engineering |
|
87 |
5041
|
88 Fri Oct 1 13:04:36 2004 |