Reputation:
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
Upvotes: 6
Views: 3990
Reputation: 41
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.
Upvotes: 2
Reputation: 551
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 See
config.log' for more details checking for gcc... /usr/local/octave/3.8.0/bin/gcc-mp-4.7 checking whether the C compiler works... nopkg: 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.
Upvotes: 0
Reputation: 31
Running the following command on a new terminal window solved it for me on the command line and gui based versions:
xcode-select --install
Upvotes: 3