[ncl-install] Error in running ncargf90

Mary Haley haley at ucar.edu
Mon Jan 22 13:35:50 MST 2018


Can you type the following commands and send email all the output back to
ncl-install at ucar.edu:

sw_vers -productVersion

which gfortran

gfortran --version

which gcc

gcc --version

ncargex agex07 -W x11 -n

ncargf90 agex07.f -o agex07

./agex07


Thanks,


--Mary

On Tue, Jan 16, 2018 at 10:46 PM, Yuanfu Xie <yuanfu_xie at yahoo.com> wrote:

> Mary and Ted,
>
> Thank you both for your help. After installing Xcode, it worked but it ran
> into segmentation fault problem (see my separate email).
>
> Yuanfu
>
>
> On Wednesday, January 17, 2018 1:21 AM, Mary Haley <haley at ucar.edu> wrote:
>
>
> Yuanfu,
>
> Idon't think this is an ncargf90 problem, but rather a gfortran problem.
> And I believe the issue is with your xcode being out-of-date with your
> gfortran.  This can happen if you've upgraded your system lately.
>
> If you google the "missing xcrun at: /Library/Developer/
> CommandLineTools/usr/bin/xcrun" error message, you will see some
> suggestions that you need to fix the developer tools on your Mac by typing
> (from a UNIX terminal window):
>
> xcode-select --install
>
> https://stackoverflow.com/questions/32893412/command-
> line-tools-not-working-os-x-el-capitan-macos-sierra-macos-high-sierra
>
> --Mary
>
>
>
>
> On Mon, Jan 15, 2018 at 5:49 PM, Yuanfu Xie via ncl-install <
> ncl-install at ucar.edu> wrote:
>
>
> Greetings.
>
> I am trying to compile a Fortran code using the command of ncargf90. It
> returned an error message (see the attached messages). I do not see any
> file named xcrun on my computer. Would you give me some help on how to
> resolve this issue? Thank you.
>
> Best regards,
>
> Yuanfu
>
> ncargf90 heun.f90
> gfortran -fPIC -fno-range-check -m64 -Wall -fopenmp -O heun.f90
> -L/Users/xieyuanfu/plotting/ ncl_ncarg-6.4.0-MacOS_10.12_ 64bit_gnu530/lib
> -L/opt/X11/lib -lncarg -lncarg_gks -lncarg_c -lXpm -lX11 -lXext -lcairo
> -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lXrender -lbz2
> xcrun: error: invalid active developer path (/Library/Developer/
> CommandLineTools), missing xcrun at: /Library/Developer/
> CommandLineTools/usr/bin/xcrun
>
> ______________________________ _________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/ mailman/listinfo/ncl-install
> <http://mailman.ucar.edu/mailman/listinfo/ncl-install>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-install/attachments/20180122/29532227/attachment.html>


More information about the ncl-install mailing list