Fri 04 Apr 2014 03:43:52 PM UTC, comment #3:
This may be due to the way the io pkg tries to automatically find Java spreadsheet class libs.
PKG_ADD (invoked when you load io) starts a function that searches in a few predefined places + subdirs (max 2 subdir levels deep), see below. So if you have many subdirs and files there, searches may take some time.
Hint: if you do not need spreadsheet I/O, try to set an environment flag:
export OCTAVE_IO_JAVALIBS=no
before starting Octave, then PKG_ADD will skip searching.
FYI, the places where PKG_ADD searches on Linux systems are (for "regular" spreadsheet I/O java class libs like Apache POI):
/usr/share/java/
~/java/
+ a subdir conveyed using environment var "OCTAVE_IO_JAVALIBS" (I suppose you didn't set that)
... and for OpenOffice /LibreOffice:
/usr/lib/<bnam>
/opt/<bnam>
where <bnam> is "OpenOffice.org", "LibreOffice" or "ooo", in that order.
So if you have exceptionally many files in one or more of those places PKG_ADD's search can take a while.
On all Linux systems I peeked in, /usr/share/java usually didn't have more than some tens of files so a search there should go fairly rapidly. Same holds for the other searched subdirs mentioned above.
|