Installing Octave Package in Ubuntu

How to install symbolic package in Octave for ubuntu?

I just hit the same problem. The solution is to check if you have pip

sudo apt-cache policy python-pip

which should return either:

  python-pip:
Installed: (none)
Candidate: 1.5.4-1ubuntu3
Version table:
1.5.4-1ubuntu3 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
1.5.4-1 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

meaning it isn't installed. Or:

python-pip:
Installed: 1.5.4-1ubuntu3
Candidate: 1.5.4-1ubuntu3
Version table:
*** 1.5.4-1ubuntu3 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
100 /var/lib/dpkg/status
1.5.4-1 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

if it is installed. If not installed run:

sudo apt-get install python-pip

Now you can run pip to get the new sympy

pip install --user sympy

Finally back to octave to run

pkg install -forge symbolic

or

pkg install /PATH/YOU/DOWNLOADED/TO/symbolic-2.2.4.tar.gz

if you downloaded the tar of the version you need.

Last and final step: Each time your run octave, you need to load the symbolic package,

pkg load symbolic

or you can put this command in your ~/.octaverc.

Install Octave Package Manually

In the README.html of Octave 4.0.0 folder you can find the following passage:

Included Octave Forge Packages
A number of Octave-Forge packages have been included with Octave, however they must be installed in order to use them.
To install:
• Start Octave and then open the build_packages.m file found in the src folder where Octave was installed.
• Run the script build_packages.m to build and install the packages.
Installation is a one-time procedure. After installation packages must still be loaded in order to use them with the pkg load PACKAGENAME command.
Other packages are available from Octave-Forge.

What you need to do for other packages, which are not included with Octave, is: download the package from http://octave.sourceforge.net/packages.php. Then put the package in the src folder and modify build_packages.m respectively before executing it.

Error,when installing a new package in Octave

I don't use Octave, but based on the instructions on https://octave.sourceforge.io/, you should try

pkg install -forge image
pkg install -forge bim

to install the Forge image and bim packages respectively.

pkg load sockets with octave

Rather than using Ubuntu's packaged octave-sockets package, you're likely to have a better experience if you install the package directly from Octave instead

pkg install -forge sockets

Installing Octave 4.2.0 from source on ubuntu?

if u want to compile from source make sure this all dependence are installed:

sudo apt-get openjdk-8-jdk gcc g++ gfortran libpcre3-dev libqhull-dev libbz2-dev libhdf5-dev libfftw3-dev libsndfile1-dev libglpk-dev libcurl4-gnutls-dev libfreetype6-dev libgraphicsmagick1-dev libgraphicsmagick++1-dev libparpack2 libncurses5-dev libreadline6-dev libsqlite3-dev tix-dev libssl-dev gperf flex bison gnuplot libfltk1.3-dev libarpack++2-dev libqrupdate-dev libosmesa6-dev libqscintilla2-qt5-dev libqscintilla2-dev  qttools5-dev-tools libxft-dev libgl2ps-dev libgdbm-dev liblzma-dev libffi-dev  libsundials-dev

or you could just do sudo apt-get build-dep octave to install all the above dependences though its not the best way to do so as the Wiki Octave Page explains

Then :

## wget ftp://ftp.gnu.org/gnu/octave/octave-<version-preferred>
wget ftp://ftp.gnu.org/gnu/octave/octave-4.4.1.tar.xz

## tar xf octave-<version-preferred>
tar xf octave-4.4.1.tar.xz

## rm octave-<version-preferred>
rm octave-4.4.1.tar.xz

## cd octave-<version-preferred>/
cd octave-4.4.1/

./configure
make -j8
sudo make install

Octave signal package installation

The pkg command is actually a part of octave and should be run from within octave, not from a shell terminal.


Credit for this answer goes to the members in this thread, but since they similarly came to the conclusion in extended comments and didn't end up posting an answer, maybe this will find some others falling into this trap :)

Unable to install octave-forge Miscellaneous package in Octave 3.8 Ubuntu

Considering the error message, and the location from where the error is throw, this comes from a problem reading the page of the miscellaneous package. The weird error message is because of this bug.

So make sure Octave is able to use urlread (try with some random file you know it exists), and that you didn't made any typo when entering the package name.

Finally, you should not be mixing Octave packages installed via the Debian repositories and installed via Octave's pkg.



Related Topics



Leave a reply



Submit