Hi all,
i want to install the the communication package using the package installation from octave: pkg install -forge communications
While the other related packages could be installed as expected i ran into problems with the communications toolbox.
The error is printed out as follows:
error: pkg: error running the configure script for communications.
error: called from
configure_make at line 93 column 9
install at line 196 column 7
pkg at line 568 column 9**
My system
OS: macOS Monterey 12.0.1
Octave version: Version 6.3.0 (Homebrew)
Installation method: Downloaded and installed via command line pkg install -forge communications
Thaks in advance
I hope that you maybe can help me to overcome this issue.
Please try again with pkg install -forge -verbose communications and show the complete output of that command.
That won’t fix the bug. But it might help tracking down the issue.
I’m not sure how .dmg apps install on macOS. But you should have had hdf5 already before installing the homebrew version. Octave itself depends on the hdf5 library.
In fact, it might be working for you now. (Probably because the version of hdf5 used when the Octave app was built happens to be compatible to the one you installed with homebrew.)
But there is no guarantee that it will continue to work correctly when homebrew updates the hdf5 library.
Instead, try setting the environment variables to pick up the libraries that are bundled with the Octave app you are using and re-install the communications package linking to the “correct” libraries.
@Johannes_Meyer Great that you found a solution To conclude this thread, can you explain in detail the commands you used, especially how and which environment variable was set?
I could replicate the problem. Please read the instructinos above carefully and run those setenv commands from the Octave command-line not from the macOS terminal application.
I tried to install the package manually through source forge when this command had failed. But to no avail.
Note that I have hdf5 already installed through brew.
Please find the input output log here:
>> setenv('CPPFLAGS', '-I/usr/local/opt/hdf5/include')
>> setenv('LDFLAGS', '-L/usr/local/opt/hdf5/lib')
>> pkg install -forge -verbose communications
mkdir (/var/folders/s7/q2mkmjnx6y36w4lf46p18l180000gn/T/oct-mmfrFM)
untar (/var/folders/s7/q2mkmjnx6y36w4lf46p18l180000gn/T/communications-1.2.3-bqlqZS.tar.gz, /var/folders/s7/q2mkmjnx6y36w4lf46p18l180000gn/T/oct-mmfrFM)
checking for mkoctfile... /Applications/Octave-6.1.0.app/Contents/Resources/usr/Cellar/octave-octave-app@6.1.0/6.1.0/bin/mkoctfile-6.1.0 --verbose
checking for octave... /Applications/Octave-6.1.0.app/Contents/Resources/usr/Cellar/octave-octave-app@6.1.0/6.1.0/bin/octave-6.1.0
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ -std=gnu++11 accepts -g... yes
checking for a sed that does not truncate output... /Applications/Octave-6.1.0.app/Contents/Resources/usr/bin//gsed
checking gripe_nonconformant or octave::err_nonconformant... octave::err_nonconformant
checking gripe_wrong_type_arg or err_wrong_type_arg... err_wrong_type_arg
checking gripe_square_matrix_required or err_square_matrix_required... err_square_matrix_required
checking gripe_invalid_conversion or err_invalid_conversion... err_invalid_conversion
checking gripe_implicit_conversion or warn_implicit_conversion... warn_implicit_conversion
checking flush_octave_stdout or octave::flush_stdout... octave::flush_stdout
checking is_complex_type or iscomplex... iscomplex
checking is_real_type or isreal... isreal
checking is_numeric_type or isnumeric... isnumeric
checking is_empty or isempty... isempty
checking oct_mach_info::float_format or octave::mach_info::float_format... octave::mach_info::float_format
checking how to run the C++ preprocessor... clang++ -std=gnu++11 -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking octave/oct.h usability... yes
checking octave/oct.h presence... yes
checking for octave/oct.h... yes
checking octave/base-lu.h usability... no
checking octave/base-lu.h presence... no
checking for octave/base-lu.h... no
checking octave/lu.h usability... yes
checking octave/lu.h presence... yes
checking for octave/lu.h... yes
checking octave/gripes.h usability... no
checking octave/gripes.h presence... no
checking for octave/gripes.h... no
checking octave/errwarn.h usability... yes
checking octave/errwarn.h presence... yes
checking for octave/errwarn.h... yes
checking octave/ovl.h usability... yes
checking octave/ovl.h presence... yes
checking for octave/ovl.h... yes
checking octave/oct-obj.h usability... no
checking octave/oct-obj.h presence... no
checking for octave/oct-obj.h... no
checking octave/ls-oct-ascii.h usability... no
checking octave/ls-oct-ascii.h presence... no
checking for octave/ls-oct-ascii.h... no
checking octave/ls-oct-text.h usability... yes
checking octave/ls-oct-text.h presence... yes
checking for octave/ls-oct-text.h... yes
checking for octave/oct-obj.h... (cached) no
checking octave/interpreter.h usability... yes
checking octave/interpreter.h presence... yes
checking for octave/interpreter.h... yes
checking for pkg-config... /Applications/Octave-6.1.0.app/Contents/Resources/usr/bin//pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for HDF5... no
checking for H5Fopen in -lhdf5... no
configure: error: hdf5 not found
error: pkg: error running the configure script for communications.
error: called from
configure_make at line 93 column 9
install at line 196 column 7
pkg at line 568 column 9
Please excuse me for discrepancies here, still trying to find my way around here as a beginner (im a bachelors engineering student lol).
It seems to have been possible with Octave.App “Octave-6.3.0-beta1.dmg”, so please try to upgrade and (Update: I confused with the control package, no solution for Octave.App as of today ) post further issues with Octave.App in the GitHub issue tracker for better support
Alternatively change to plain Homebrew use the information given in this topic and start Octave from Terminal using
Hi! Octave.app maintainer here. Yep, the octave-app repo in GitHub is a good place to report these issues, because building Octave packages that have native extensions on Mac, and especially in the context of Octave.app, is a built of a specialty case.
I’m afraid that Octave.app development is kind of hosed right now, because Octave.app is based on Homebrew, Homebrew has dropped support for macOS 10.14, and Octave.app really wants to support 10.14 (because we want to support a broad range of users, and also really because I’m a 10.14 guy).
10.14.6 mojave is my mac os
i have issue for installing pkg communications …
please help , it’s for my lab , please find me a solution, i followed this discussion to to setenv, but i’m getting error
octave:1> setenv(‘CPPFLAGS’, ‘-I/usr/local/opt/hdf5/include’)
octave:2> setenv(‘LDFLAGS’, ‘-L/usr/local/opt/hdf5/lib’)
octave:3> pkg install -forge -verbose communications
error: get_forge_pkg: could not read URL, please verify internet connection
error: called from
get_forge_pkg at line 72 column 7
get_forge_download at line 32 column 14
pkg at line 500 column 31
>> pkg install -forge -verbose communications
he following dependencies were unsatisfied:
communications needs signal >= 1.1.3
>> pkg install -forge -verbose signal
the following dependencies were unsatisfied:
signal needs control >= 2.4
>> pkg install -forge -verbose control
error running 'make' for the control package.
error: called from
configure_make at line 110 column 9
install at line 196 column 7
pkg at line 568 column 9
>> pkg install -forge control
error: pkg: error running 'make' for the control package.
error: called from
configure_make at line 110 column 9
install at line 196 column 7
pkg at line 568 column 9