can not use help in octave 3.8.1 on mac - macos

when i enter:
>> help help
i get error message:
error: unable to open /usr/local/Cellar/octave/3.8.1_1/share/octave/3.8.1/etc/macros.texi for reading
error: called from:
error: /usr/local/Cellar/octave/3.8.1_1/share/octave/3.8.1/m/help/__makeinfo__.m at line 103, column 5
error: /usr/local/Cellar/octave/3.8.1_1/share/octave/3.8.1/m/help/help.m at line 99, column 22
How could i solve it? I'm using this on MacOS 10.10.2.

Check if you have the documentations installed !
Depending on how you have to installed octave, you have to specify somehow to install also the documentations.
If you need more help, then provide more info, on how octave has been installed.
If you have installed through home-brew, try to reinstall it with with-docs option i.e.
brew reinstall octave --with-docs

Related

Agox installation

I have problem with installation of AGOX, prerequisites are
A C compiler (Tested with Intel/2018.1.163)
An MPI installation (Tested with openmpi/4.0.3)
how to install these on Ubuntu, kindly help me with this. Thank you.
I have tried installing agox on ubuntu using the documentation given on github but got an error saying
ERROR: Could not find a version that satisfies the requirement agox (from versions: none)
ERROR: No matching distribution found for agox

Octave: error installing package on Windows

First of all, I know a lot of questions similar to mine have been asked, and nevertheless they don't help me solve the problem I'm facing. I'm running Octave 5.1.0.0 on Windows 10 Pro 64 bit. I'm having no issues but one: when I try to install Symbolic package by pkg install symbolic-2.7.1.tar.gz (downloaded from Octave Forge), I get the error
unpack: unarchiving program exited with status: 1
tar: Error opening archive: Failed to open
'/C/Users/smlvcfncst/Downloads/symbolic-2.7.1.tar.gz'
error: called from
unpack at line 274 column 5
untar at line 48 column 5
install at line 81 column 9
pkg at line 441 column 9
and I have no clue where the problem related to the unpacking could be. Not only I have 7z and Winrar installed, but moreover I use a full installation of Cmder, so my system has everything that is needed to work with a .tar.gz
I've tried in different terminals, both with and without administrator privileges, and the problem persists. How should I proceed then?
EDIT: Following Andy's suggestion, I let you know that even before installing Octave I already have installed and used both Python and MinGW, as well as sympy module. Moreover, my Octave installation was the most standard possible for Windows, that is using the official .exe installer. No other package, apart from those included with installation, have been added before I tried adding symbolic.
Thank you in advance.

Wordnet::Similarity installation issue

When I install Wordnet::Similarity on mac, the following error occur:
usr/local/bin/perl "-Iblib/arch" "-Iblib/lib" build/Depthfiles.PL blib/lib/WordNet/synsetdepths.dat
Generating default depth files.
Can't load '/usr/local/lib/perl5/site_perl/5.8.8/darwin-2level/auto/Digest/SHA1/SHA1.bundle' for module Digest::SHA1: dlopen(/usr/local/lib/perl5/site_perl/5.8.8/darwin-2level/auto/Digest/SHA1/SHA1.bundle, 1): no suitable image found. Did find:
/usr/local/lib/perl5/site_perl/5.8.8/darwin-2level/auto/Digest/SHA1/SHA1.bundle: mach-o, but wrong architecture at /usr/local/lib/perl5/5.8.8/darwin-2level/DynaLoader.pm line 230.
at blib/lib/WordNet/Tools.pm line 76
Compilation failed in require at blib/lib/WordNet/Tools.pm line 76.
My attempt was to enter to the downloaded package directory from terminal and type:
perl Makefile.PL
make
make test
sudo make install
I made sure to have installed all prerequisite http://search.cpan.org/dist/WordNet-Similarity/doc/install.pod#Prerequisites. I suspect that this may be due to mac processor version with Perl interface. Any suggestion on how to fix this?
Install libdigest-sha-perl in Ubuntu 14.04 has solved this issue.
Download link:http://packages.ubuntu.com/trusty/amd64/perl/libdigest-sha-perl

Octave 3.8.0 - package installation error in Mac OS X

I am trying to install some packages in Octave however, I am getting errors. Any help will be much appreciated. I tried this from Octave home directory. (I have also tried: pkg install general-1.3.4.tar.gz)
octave:1> pkg install -forge general
In file included from /usr/local/octave/3.8.0/lib/gcc47/gcc/x86_64-apple-darwin13/4.7.3/include/stdint.h:3:0,
from /usr/local/octave/3.8.0/include/octave-3.8.0/octave/oct-conf-post.h:167,
from /usr/local/octave/3.8.0/include/octave-3.8.0/octave/config.h:3351,
from /usr/local/octave/3.8.0/include/octave-3.8.0/octave/../octave/oct.h:31,
from SHA1.cc:19:
/usr/local/octave/3.8.0/lib/gcc47/gcc/x86_64-apple-darwin13/4.7.3/include-fixed/stdint.h:27:32: fatal error: sys/_types/_int8_t.h: No such file or directory
compilation terminated.
make: *** [SHA1.oct] Error 1
/usr/local/octave/3.8.0/bin/mkoctfile-3.8.0 SHA1.cc
pkg: error running `make' for the general package.
error: called from 'configure_make' in file /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/private/configure_make.m near line 82, column 9
error: called from:
error: /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/private/install.m at line 199, column 5
error: /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/pkg.m at line 394, column 9
Running the following command on a new terminal window solved it for me on the command line and gui based versions:
xcode-select --install
I have found a workaround from other sites on the web:
I was having the same issue when trying to install the Octave Signal Package without success. The following finally appears to be working.
code-select --install from the Terminal window to install the command line tools
Install MacPorts for Mac. This is a standard installer that you can download from Macports.
sudo port install gcc48 --> This is a Fortran compiler, which is necessary for installing octave-general
sudo port install octave-general [NOTE: THIS TOOK A VERY LONG TIME, and I had to disable Spotlight indexing...Hours on a Macbook Pro]
sudo port install octave-control
sudo port install octave-signal
I am having similar problems with octave 3.8.0 and Yosemite
pkg install /Users/Andrew/Downloads/odepkg-0.8.4.tar.gz
configure: error: in /var/tmp/oct-ZcfViL/odepkg/src':
configure: error: C compiler cannot create executables
Seeconfig.log' for more details
checking for gcc... /usr/local/octave/3.8.0/bin/gcc-mp-4.7
checking whether the C compiler works... no
pkg: error running the configure script for odepkg.
error: called from 'configure_make' in file /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/private/configure_make.m near line 72, column 9
error: called from:
error: /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/private/install.m at line 199, column 5
error: /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/pkg.m at line 394, column 9
I have the xcode command line tools installed.

Install libSVM-3.17 on Mac OS X 10.9 Mavericks

I'm trying to install libsvm-3.17 in my macOS10.9 machine.
I read this tutorial about the common problem:
/Applications/MATLAB_R2011b.app/bin/mex: line 305: llvm-gcc-4.2:
command not found
but it didn't solve the issue. I still got these errors:
/Applications/MATLAB_R2012b.app/bin/mex: line 305: llvm-gcc-4.2:
command not found
/Applications/MATLAB_R2012b.app/bin/mex: line 1326: llvm-gcc-4.2:
command not found
mex: compile of ' "libsvmread.c"' failed.
If make.m fails, please check README about detailed instructions.
Does anybody know if the problem is the fact that I'm using OSX10.9? In this case, any idea about the solution?
The easiest way to do this kind of thing is to use one of the popular package managers in OS X, for example I prefer homebrew:
$ brew install libsvm
==> Downloading http://www.csie.ntu.edu.tw/~cjlin/libsvm/oldfiles/libsvm-3.17.tar.gz
######################################################################## 100.0%
==> make CFLAGS=
==> make lib
🍺 /usr/local/Cellar/libsvm/3.17: 8 files, 240K, built in 9 seconds
$
I faced a similar problem. The article in the link fixed it for me. http://chehsunliu.wordpress.com/2013/12/25/install-libsvm-3-17-for-matlab-r2012a-on-mac-os-x-10-9/

Resources