Trouble installing NCO-4.3.4

mkovilakam
2013-08-07
2013-10-17
  • mkovilakam
    mkovilakam
    2013-08-07

    Hi,
    I tried installing NCO on my machine. But, it looks like I have C compiler missing. But, I have installed macports in which I guess has the c compiler. Here's the error I am getting.
    Thanks,
    Mahesh


    greenplanet:nco-4.3.4 Mahesh$ ./configure -prefix=/Users/Mahesh/nco_install
    checking build system type… i386-apple-darwin12.4.0
    checking host system type… i386-apple-darwin12.4.0
    checking target system type… i386-apple-darwin12.4.0
    checking for grep that handles long lines and -e… /usr/bin/grep
    checking for egrep… /usr/bin/grep -E
    checking for a BSD-compatible install…
        The current directory must be set to the exelis directory.
        Change the default to the exelis directory and re-run
        this script.
           
    /usr/bin/install -c
    checking whether build environment is sane… yes
    /Users/Mahesh/nco-4.3.4/autobld/missing: Unknown `-is-lightweight' option
    Try `/Users/Mahesh/nco-4.3.4/autobld/missing -help' for more information
    configure: WARNING: 'missing' script is too old or missing
    checking for a thread-safe mkdir -p… autobld/install-sh -c -d
    checking for gawk… no
    checking for mawk… no
    checking for nawk… no
    checking for awk… awk
    checking whether make sets $(MAKE)… no
    checking whether make supports nested variables… no
    checking for gcc… no
    checking for cc… no
    checking for cl.exe… no
    configure: error: in `/Users/Mahesh/nco-4.3.4':
    configure: error: no acceptable C compiler found in $PATH
    See `config.log' for more details

     
  • barrasargtlin
    barrasargtlin
    2013-09-12

    Hey, I just recently had this same problem with another completely unrelated install. There is an install file in your IDL path that is being referenced first before your NCO install file is found. If you rename the IDL install file something like install.old and rerun your config and make, that should fix your problem. That install file is likely somewhere like /usr/local/bin/idl. This is where I found the solution to my problem (from 2008!):

    http://ubuntuforums.org/archive/index.php/t-943932.html

    Check it out and see if that helps. I know this is a month old, so hopefully you found the solution to your problem much sooner than this. Cheers.

     
  • Charlie Zender
    Charlie Zender
    2013-09-12

    Sorry for the delayed response. I was on vacation when the original post came in.
    It could be that barrasargtlin's suggestion will work.
    If not, then Pedro here at UCI builds successfully on Macs all the time, so let us know…
    c

     
  • Pedro Vicente
    Pedro Vicente
    2013-09-12

    For Mac OS X with MacPorts, there are the dependencies regarding NCO

    sudo port install libdap # DAP
    sudo port install gsl # GSL
    sudo port install netcdf # netCDF
    sudo port install udunits2 # UDUnits

    and this location must be on $PATH

    # MacPorts Installer addition on 2012-07-20_at_14:47:33: adding an appropriate PATH variable for use with MacPorts.
    export PATH=/opt/local/bin:/opt/local/sbin:$PATH

    but your problem seems to be not NCO related

    Try installing XCode if you don't have it installed

    https://developer.apple.com/xcode/