Updating complete error. I have tried installing hdf5 using "sudo port install hdf5", but no luck.
>> pkg install -forge -verbose communications
error: called from
pkg at line 410 column 13
>> pkg install -forge -verbose communications
mkdir (/var/folders/x7/8lp22t_j2ns15sbfr11032ph0000gn/T/oct-3rxFkO)
untar (/Users/navneet/communications-1.2.2.tar.gz, /var/folders/x7/8lp22t_j2ns15sbfr11032ph0000gn/T/oct-3rxFkO)
checking for mkoctfile... /Applications/Octave-4.4.1.app/Contents/Resources/usr/Cellar/octave-octave-app@4.4.1/4.4.1/bin/mkoctfile-4.4.1 --verbose
checking for octave... /Applications/Octave-4.4.1.app/Contents/Resources/usr/Cellar/octave-octave-app@4.4.1/4.4.1/bin/octave-4.4.1
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-4.4.1.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... yes
checking octave/gripes.h presence... yes
checking for octave/gripes.h... yes
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... yes
checking octave/oct-obj.h presence... yes
checking for octave/oct-obj.h... yes
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) yes
checking octave/interpreter.h usability... yes
checking octave/interpreter.h presence... yes
checking for octave/interpreter.h... yes
checking for pkg-config... /Applications/Octave-4.4.1.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
pkg: error running the configure script for communications.
error: called from
configure_make at line 82 column 9
install at line 184 column 7
pkg at line 437 column 9