[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fail to install Octave-netcdf package

From: Yi-Hui Wang
Subject: fail to install Octave-netcdf package
Date: Mon, 19 Sep 2016 20:23:06 -0700


I encountered a problem when I tried to install the octave-netcdf package on my MacBook Air (os x 10.9.5). Before installing the package, I defined the PATH and LD_LIBRARY_PATH by adding export PATH="/opt/local/bin:$PATH"

export LD_LIBRARY_PATH=“/opt/local/lib:$LD_LIBRARY_PATH" to the end of the ./bash_profile. I believe that PATH and LD_LIBRARY_PATH correspond to the libraries, which are /opt/local/bin/nc-config, and -L/opt/local/lib -lnetcdf -lhdf5_hl -lhdf5 -ldl -lm -lz -lcurl, respectively.

Despite of this setup, I still got error messages below:

mkdir (/var/tmp/oct-oKDJX5)

untar (/Users/yihuiw/netcdf-1.0.11.tar.gz, /var/tmp/oct-oKDJX5)

checking for gcc... /usr/local/octave/3.8.0/bin/gcc-mp-4.7

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... configure: error: in `/var/tmp/oct-oKDJX5/netcdf/src':

configure: error: cannot run C compiled programs.

If you meant to cross compile, use `--host'.

See `config.log' for more details

pkg: error running the configure script for netcdf.

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 am not sure what I can do to solve this problem. I would be very appreciated if anyone can help me out. Thank you very much.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]