Installing symbolic package in octave
Olivia Zamora
I have installed octave with the following commands:
sudo add-apt-repository ppa:picaso/octave
sudo apt-get install octaveThen from octave I used the following command:
pkg install -forge symbolicI got the following error:
configure: error: SymPy version 0.7.5 or later is required
checking for sort... /usr/bin/sort
checking for GNU coreutils... yes
checking for python... /usr/bin/python
checking python module: sympy... yes
checking for SymPy version... 0.7.4.1
checking for gawk... gawk
pkg: error running the configure script for symbolic.
error: called from 'configure_make' in file /usr/share/octave/4.0.0/m/pkg/private/configure_make.m near line 79, column 9I installed python sympy with:
sudo apt-get install python-sympyI restarted the operating system and tried again but still the same error.
42 Answers
I just hit the same problem. The solution is to check if you have pip
sudo apt-cache policy python-pipwhich should return either:
python-pip: Installed: (none) Candidate: 1.5.4-1ubuntu3 Version table: 1.5.4-1ubuntu3 0 500 trusty-updates/universe amd64 Packages 1.5.4-1 0 500 trusty/universe amd64 Packagesmeaning 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 trusty-updates/universe amd64 Packages 100 /var/lib/dpkg/status 1.5.4-1 0 500 trusty/universe amd64 Packagesif it is installed. If not installed run:
sudo apt-get install python-pipNow you can run pip to get the new sympy
pip install --user sympyFinally back to octave to run
pkg install -forge symbolicor
pkg install /PATH/YOU/DOWNLOADED/TO/symbolic-2.2.4.tar.gzif 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 symbolicor you can put this command in your ~/.octaverc.
Run
sudo apt-get install octave-symbolic 1