Changes

Jump to navigation Jump to search

FAQ

631 bytes added, 10:31, 11 April 2016
Add note on how to load package at startup and how to load all packages
Yes, but development is done primarily with GCC, so you may hit some incompatibilities. Octave is intended to be portable to any standard conforming compiler. If you have difficulties that you think are bugs, please report them to the http://bugs.octave.org bug tracker, or ask for help on the [mailto:help@octave.org mailing list].
== How do I install ''or load all'' Octave packages? ==Do not do it! Really, there is no reason to do this. Octave Forge has many packages for different needs but it's unlikely that you need all of them. The common misconception is that the more packages one installs, the more complete and powerful its octave installation will be. However, in the same way one would ''never'' install all perl modules, ruby gems or python packages (because it simply makes no sense), one should not install all octave packages. This isn't desirable and it's not even possible.
Do not do it! Really, there is no reason to do this. Octave has manypackages for different needs and is unlikely that you need all ofthem. You either have a small set of required packages, in which caseyou know them by name; or you want them all "just because", in which caseyou don't really need them. The common misconception is that the more packages one has installedand loaded, the more complete and powerful its Octave installation will be.However, in the same way one would never install all perl modules,ruby gems, python packages, and C++ libraries (because it simply makesno sense), one should not install all Octave packages. Packages should be installed and loaded selectively. Note that some packages are meant to shadow core functions changing the way Octave works, and that different packages can have different implementations of a function functions with the same name, leading to unpredictable results. Others are just broken or crappy and will break your system. What's worse If you really really really want to do load all packages, some of you can withthe following:  ## WARNING: loading all packages is probably not the solution you are even loaded looking for. cellfun (@(x) pkg ("load", x.name), pkg ("list"));  == How do I automatically load a package at Octave startup so ? == When Octave starts, it runs {{Path|~/.octaverc}}. If you want Octave toautomatically load a package, simply add a {{codeline|pkg load pkg-name}}command to it. If the files does not exist, create it. If you do this, remember that other people may be screwing not have Octave configuredto load packages at startup. Therefore, if you write code for others,remember that your octave installation without even realizing itprograms still need to load the packages they require.
=Coding=

Navigation menu