Re: PROBLEM WITH THE COMPILER IN INSTALLATION OF NM7.2.0 ON A MAC OSX 10.7.3
Dear Carlos,
The problem can be sovled by installing the "command line tools" in Xcode.
(Open Xcode then go to preferences -> "downloads" - "Components" )
I had experienced the same problem with you, but I successfully
installed NONMEM 7.2 on Mac OS X Lion with X code 4.3.1 using Intel
fortran 11 and gfortran 4.6.2, respectively.
With best regards
Sang-Heon Cho M.D., Ph.D.
Research Assistant Professor
Department of Clinical Pharmacology and Therapeutics
Seoul National University College of Medicine and Hospital
Tel: 82-2-2072-4170, Fax: 82-2-742-9252
E-mail: [email protected], [email protected]
Quoted reply history
2012/3/10 Carlos Orlando Jacobo Cabral <[email protected]>:
> Dear Joanna and Teijo I thank you, but I still have the same problem with
> the same error message
>
>
>
> I uninstalled gfrotran with the next command
>
>
> sudo rm -r /usr/local/gfortran /usr/local/bin/gfortran
>
> then I updated X Code to 4.3 version, and I installed gfortan again
> (gfortran 4.6.2 for Mac OS Lion 10.7 from
> http://gcc.gnu.org/wiki/GFortranBinaries), and tried to install NM7.2 again
> with the command
>
> /bin/bash/ SETUP72 /Users/Rod/desktop/cd_nonmem/NONMEM_7.2.0
> /Applications/nm72 gfortran y /usr/bin/ar same rec i unzip
> nonmem72e.zip nonmem72r.zip
>
> but the result was same, at last the error message:
>
>
> gfortran: error trying to exec 'as': execvp: No such file or directory
> Could not compile util/test.f90
>
> ./util/dotest: line 72: gcc: command not found
> Could not assemble util/test.c with gcc
>
> Compiler gfortran and/or install program cannot be run
> Installation Aborted
>
> I was triying to find another solution, but didn´t succeed. So do you or
> anynone else have any idea of what I am doing wrong or what I can do?
>
> Thank you again.
>
> PhD student ORLANDO JACOBO
> E-mail: [email protected]; [email protected]
>
>
>
>
> ________________________________
> From: [email protected]
> To: [email protected]; [email protected]
> CC: [email protected]
>
> Subject: Re: [NMusers] PROBLEM WITH THE COMPILER IN INSTALLATION OF NM7.2.0
> ON A MAC OSX 10.7.3
> Date: Fri, 2 Mar 2012 11:05:52 +0000
>
>
> Dear Carlos,
>
> Yes, I agree with Teijo that the problem is probably that you need to
> install Xcode. It will be included with your OSX installation CD, or else
> you can download it from the Apple Developer website (you will need to
> register and/or log in).
>
> I had this same problem last week, and a couple of extra (and mildly
> embarrassing..) problems we ran into were 1) installing a version of Xcode
> that was not compatible with the OS version and 2) it not installing
> properly, even though we thought we had run the installer.
>
> I hope that helps.
> Joanna
>
> Joanna Lewis
> PhD student
> Institute of Child Health,
> 30 Guilford Street,
> London WC1N 1EH
> 0207 905 2307
>
> From: Teijo Saari <[email protected]>
> Date: Fri, 2 Mar 2012 09:54:50 +0100
> To: Carlos Orlando Jacobo Cabral <[email protected]>
> Cc: <[email protected]>
> Subject: Re: [NMusers] PROBLEM WITH THE COMPILER IN INSTALLATION OF NM7.2.0
> ON A MAC OSX 10.7.3
>
> Dear Carlos,
>
> One problem might be, that XCode-package is not updated (to 4.x). That has
> to be done before installing NONMEM, since XCode does not update
> automatically with Lion (instead Lion deletes the previous version 3.x).
>
> With best wishes,
>
> Teijo
>
> 2012/3/2 Carlos Orlando Jacobo Cabral <[email protected]>
>
> Hi NMUSERS
>
> I´m trying to install NONMEM 7.2 on a Mac with OS 10.7.3 and I first
> installed gfortran 4.6.2 for Mac OS Lion (10.7) from the gfortran web site
> http://gcc.gnu.org/wiki/GFortranBinaries#MacOS
>
> After I tried to install NONMEM (installation from a directory) using
> a terminal window with the next command:
>
> /bin/bash/ SETUP72 /Users/Rod/desktop/cd_nonmem/NONMEM_7.2.0
> /Applications/nm72 gfortran y /usr/bin/ar same rec i unzip
> nonmem72e.zip nonmem72r.zip
>
> and the complete messages that appear after enter this command are:
>
>
> SETUP72/Users/Rod/desktop/cd_nonmem/NONMEM_7.2.0 /Applications/nm72 gfortran
> y /usr/bin/ar same rec i unzip nonmem72e.zip nonmem72r.zip
> CD-ROM drive is /Users/Rod/desktop/cd_nonmem/NONMEM_7.2.0
> NONMEM 7.2 directory is /Applications/nm72
> Command for FORTRAN compiles is gfortran
> Optimization for Fortran compiles is y
> Command to build NONMEM archive is /usr/bin/ar
> Sizes is same (SIZES.f90 is always used)
> Recompile is rec
> All binaries will be recompiled
> Interactive is i
> Unzip program is unzip
> Encrypted source file is nonmem72e.zip
> Unencrypted file is nonmem72r.zip
>
> To learn how to override the defaults, enter
> %SETUP72 help
>
> Continue (y/n) [y]?y
>
> directory /Applications/nm72
> Step 1a. Copy files from /Users/Rod/desktop/cd_nonmem/NONMEM_7.2.0 to
> /Applications/nm72
> Step 1b. Copy files from
> /Users/Rod/desktop/cd_nonmem/NONMEM_7.2.0/NONMEM_7.2.0 to /Applications/nm72
>
> Installing NONMEM 7.2.0 (Enter Ctrl-C to interrupt)...
> Dierectories already exist -skipping step 2a.
> Choosing platform-dependent files...
> os is Darwin
> cpu is i386
> Will use install_Darwin
> Compiler is gfortran
> Will use existing finish
>
> === Checking compiler
> Version of gfortran is:
> GNU Fortran (GCC) 4.6.2 20111019 (prerelease)
> Copyright (C) 2011 Free Software Foundation, Inc.
>
> GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
> You may redistribute copies of GNU Fortran
> under the terms of the GNU General Public License.
> For more information about these matters, see the file named COPYNG
>
> gfortran: error trying to exec 'as': execvp: No such file or directory
> Could not compile util/test.f90
>
> ./util/dotest: line 72: gcc: command not found
> Could not assemble util/test.c with gcc
>
> Compiler gfortran and/or install program cannot be run
> Installation Aborted
>
>
> --So the error seems to be about gfortran as seen above in the last part.
> And I don´t know how to solve this problem, can anybody help me
> or tell me what I'm doing wrong? I thank in advance.
>
>
> PhD-st ORLANDO JACOBO
>
> E-mail: [email protected]; [email protected]
>
>
>
>
> --
> Teijo Saari, MD PhD
> Post Doctoral Researcher
> Anästhesiologische Klinik
> Friedrich-Alexander-Universität Erlangen-Nürnberg
> Krankenhausstrasse 12
> D-91054 Erlangen
> Phone +49 9131 853 9157
> Fax +49 9131 853 9161
> Mobile +49 152 5855 4502
> email: [email protected]
>