The following is a description and complete output listing of an installation 
of MinGW64 bit gfortran and NONMEM 7.2.0 on Windows 7 64-bit (Home Premium with 
Service Pack 1).

1. The first step was to uninstall and/or disable any 32-bit gfortran or g95 
implementations.  In the test case, 32-bit gfortran was disabled by removing 
the references to gfortran in the PATH environment variable using Control Panel:

references removed from PATH: ;C:\Program Files 
(x86)\gfortran\libexec\gcc\i586-pc-mingw32\4.6.0;C:\Program Files 
(x86)\gfortran\bin

2. MinGW64 version 4.6.1 for 64 bit gfortran for Windows was downloaded from 
http://sourceforge.net/projects/mingw-w64/files/latest/download?source=files
The filename was mingw-w64-gcc-4.6.3-runtime-2.0.1-static-ada-20120321.7z. 

3. The file was extracted using 7-Zip File Manger obtained from 
http://www.7-zip.org/download.html creating a directory structure starting with 
a "mingw-w64-gcc-4.6.3-runtime-2.0.1-static-ada-20120321" directory and 
containing a "mingw64" directory.

4. A "gfortran" directory was created under the C:\Program Files\ directory. 
The "mingw64" directory was copied from the 
"mingw-w64-gcc-4.6.3-runtime-2.0.1-static-ada-20120321" directory to the 
"C:\Program Files\gfortran\" directory. 

5. References were created in the PATH environment variable using Control Panel 
to the new gfortran similar to the old references to gfortran but referencing 
the new locations.

references added to PATH: ;C:\Program 
Files\gfortran\mingw64\libexec\gcc\x86_64-w64-mingw32\4.6.3;C:\Program 
Files\gfortran\mingw64\bin

6. The new gfortran 64-bit implementation was tested in a DOS window by 
"asking" the version and using a simple compile test specifying a 64-bit 
executable ("-m64") of gmtest.for (file distributed with NONMEM):

c:\>cd \nm72\util 
C:\nm72\util>gfortran --version 
GNU Fortran (GCC) 4.6.3 
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 COPYING 

C:\nm72\util>gfortran -m64 gmtest.for 

C:\nm72\util>a.exe 
 ICON Development Solutions - Tools for Expediting 
  Population Analysis (c) 2009-2011 

7. NONMEM 7.2.0 was installed from a DOS window using the correct arguments for 
gfortran.  (When "Changes to License file, resource\SIZES.f90 and other 
resource files may be made here." was displayed prior to Step 6., a valid 
nonmem.lic file was copied to the c:\nm72gf64\license\ directory and the 
installation was then allowed to continue.)
["c:\nm72gf64" was used as the installation directory argument just to 
differentiate this install from other installs on this system.]

C:\Users\Bill>cd \ 
C:\>d: 
D:\>SETUP72 d: c:\nm72gf64 gfortran y ar same rec i 
NONMEM 7.2.0 INSTALLATION UTILITY - Windows/DOS batch file version 
For instructions, see readme_7.2.0.pdf or readme_7.2.0.txt on the CD 

SETUP72 d: c:\nm72gf64 gfortran y ar same rec i unzip.exe nonmem72e.zip 
nonmem72r.zip 
CD-ROM drive is d: 
NONMEM 7.2.0 directory is c:\nm72gf64 
Command for FORTRAN compiles is gfortran 
Optimization for Fortran compiles is y 
Command to build NONMEM archive is ar 
Sizes is same 
Recompile is rec 
All binaries will be recompiled 
Interactive is i 
Unzip is unzip.exe 
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] 
The directory c:\nm72gf64 does not exist. 
Step 1. Creating c:\nm72gf64 
Step 1a. Copy files from d: to c:\nm72gf64 
        1 file(s) copied. 
        1 file(s) copied. 
        1 file(s) copied. 
        1 file(s) copied. 
        1 file(s) copied. 
        1 file(s) copied. 
        1 file(s) copied. 
        1 file(s) copied. 
        1 file(s) copied. 
        1 file(s) copied. 
        1 file(s) copied. 
        1 file(s) copied. 
        1 file(s) copied. 
        1 file(s) copied. 
        1 file(s) copied. 
Step 1b. Copy files from  d:\NONMEM_7.2.0 to c:\nm72gf64 

Installing NONMEM 7.2.0 (Enter Ctrl-C to interrupt) ... 
Step 2a. Make sub-directories of c:\nm72gf64 
Extract rest of files 
Using resource\SIZES.f90 
Choosing platform-dependent files ... 
Will use install_Win.exe 
Will use util\finish_win_gfortran.bat 

===Checking compiler 
start compile/link 
end compile/link 
=== 
Copying NONMEM license file nonmem.lic to 
c:\nm72gf64\license\nonmem.lic 
Warning: the license may be expired or may expire soon. 
When this happens, NONMEM runs will fail. 
If you have a new license file from IDS, you may stop, replace 
it and restart SETUP72. Otherwise, allow NONMEM installation 
to finish at this time. 
Obtain a new license file from IDS ([email protected]) 
as soon as possible and replace 
c:\nm72gf64\license\nonmem.lic 

Changes to License file, resource\SIZES.f90 and other resource 
files may be made here. 

Continue (y/n)? [y] 
Step 6.  Compile resource files 
Compile of resource files was successful. 
ar: creating resource.a 
resource directory has been compiled 
Continue (y/n)? [y] 

Step 9.  Compile all remaining source files 
This will take a long time. 
See file c:\nm72gf64\progress.txt for compiler progress 
Step 10. Build NONMEM archive nm\nonmem.a 
Step 13. Create shell script util\nmfe72 

Step 14. Create directory run 
run contains the following files: 
  nmfe72.bat CONTROL3 CONTROL5 DATA3 THEOPP REPORT5IDS.txt 
run contains additional files 

Installation of NONMEM 7.2.0 is finished. 
For future reference, the command has been saved in file SETUP.TXT
 
Please review c:\nm72gf64\compilemsgs.txt 
              c:\nm72gf64\finishmsgs.txt 
Ignore warnings. Report error messages. 

Do you want to install help and html files and Users Guides? 
Continue (y/n)? [y] 
Help and html files and Users Guides will be installed. 
Step 15. Install NONMEM Users Guide files in c:\nm72gf64\guides 
Unzipping guides.zip... 
To use the NONMEM Users Guides, 
 open pdf files in c:\nm72gf64\guides using Adobe Reader. 
Step 16. Install On-line help files in c:\nm72gf64\help 
Unzipping help.zip... 
"Installing On-Line Help Tools ..." 
For online help, enter (e.g.) 
    cd c:\nm72gf64\help 
    nmhelp advan2 
Step 17. Install HTML files in c:\nm72gf64\html (this may take a while) ... 
Unzipping html.zip... 
For online help HTML files, 
  open c:\nm72gf64\html\index.htm in web browser 

Do you want to test the installation? 
Continue (y/n)? [y] 
Testing the installation. Commands are 
    cd c:\nm72gf64\run 
    nmfe72 CONTROL5 REPORT5.txt -prdefault 
If the run is successful, file REPORT5.txt will be created.
 
doing nmtran 

 WARNINGS AND ERRORS (IF ANY) FOR PROBLEM    1 

 (WARNING  2) NM-TRAN INFERS THAT THE DATA ARE POPULATION. 

 (WARNING  43) THE $PK BLOCK REQUESTS "CALL ONCE PER INDIVIDUAL RECORD", BUT 
 DATA ITEMS ARE USED IN THE $PK BLOCK. VALUES OF THESE DATA ITEMS 
 SUBSEQUENT TO THOSE FROM THE FIRST EVENT RECORD WILL BE IGNORED.  IF THIS 
 IS NOT APPROPRIATE, THE CALL DATA ITEM CAN BE USED TO OBTAIN ADDITIONAL 
 CALLS, OR $PK'S CALLING PROTOCOL SHOULD BE CHANGED. 
 CREATING MUMODEL ROUTINE... 
        1 file(s) copied. 
Finished compiling fsubs 
Completed call to gfcompile.bat 
Starting nonmem execution ... 
License Registered to: IDS NONMEM 7 TEAM 
Expiration Date:     2 JUN 2013 
Current Date:        9 MAY 2012 
Days until program expires :393 

 First Order 
 MONITORING OF SEARCH: 

0ITERATION NO.:    0    OBJECTIVE VALUE:   110.244034784025        NO. OF FUNC. 
EVALS.:   6 
 CUMULATIVE NO. OF FUNC. EVALS.:        6 
 NPARAMETR:  3.0000E+00  8.0000E-02  4.0000E-02  6.0000E+00  5.0000E-03  
3.0000E-01  2.0000E-04  6.0000E-03  4.0000E-01  4.0000E-01
 PARAMETER:  1.0000E-01  1.0000E-01  1.0000E-01  1.0000E-01  1.0000E-01  
1.0000E-01  1.0000E-01  1.0000E-01  1.0000E-01  1.0000E-01
 GRADIENT:   1.4640E+01 -1.6691E+01  5.6460E+01 -9.4129E+00 -1.1699E+01  
1.0623E+01 -6.3485E-01 -4.7803E+01 -9.6457E+00  5.2414E+00

0ITERATION NO.:    5    OBJECTIVE VALUE:   105.453694506201        NO. OF FUNC. 
EVALS.:   7 
 CUMULATIVE NO. OF FUNC. EVALS.:       45 
 NPARAMETR:  2.8166E+00  8.0433E-02  3.8563E-02  6.6123E+00  9.7862E-03 
-3.9509E-02  2.3438E-04  8.1375E-03  4.9657E-01  4.0346E-01
 PARAMETER: -5.3055E-02  1.0703E-01  5.7598E-02  1.4858E-01  1.8644E-01 
-1.2545E-02  1.5794E-01  1.3452E-01  3.7714E-02  1.0431E-01
 GRADIENT:   3.5103E-01 -1.3214E+01  2.8003E+01  1.1115E+00  1.9193E+00 
-5.3252E+00  7.1533E-02 -2.2091E+01 -1.4424E+00  8.2329E+00

0ITERATION NO.:   10    OBJECTIVE VALUE:   104.747695561777        NO. OF FUNC. 
EVALS.:   7 
 CUMULATIVE NO. OF FUNC. EVALS.:       80 
 NPARAMETR:  2.7362E+00  7.6935E-02  3.5982E-02  5.7362E+00  1.0840E-03 
-2.9208E-01  2.3701E-04  9.4013E-03  5.1805E-01  3.8850E-01
 PARAMETER: -1.1928E-01  4.9234E-02 -2.3022E-02  7.7517E-02  2.2174E-02 
-9.9574E-02  1.9498E-01  1.4956E-01 -1.7173E-01  8.5414E-02
 GRADIENT:  -1.3933E+00 -7.4632E+00  9.3144E+00  1.0280E+00  9.6395E-01 
-3.1313E+00  1.0212E+00 -5.3784E+00 -2.0828E+00 -9.1477E-01

0ITERATION NO.:   15    OBJECTIVE VALUE:   104.561086502423        NO. OF FUNC. 
EVALS.:   7 
 CUMULATIVE NO. OF FUNC. EVALS.:      116 
 NPARAMETR:  2.7735E+00  7.8097E-02  3.6292E-02  5.5466E+00  5.1735E-03 
-1.2911E-01  2.3941E-04  9.0947E-03  5.1461E-01  3.8752E-01
 PARAMETER: -8.8567E-02  6.8686E-02 -1.2994E-02  6.0711E-02  1.0762E-01 
-4.4762E-02  1.9028E-01  1.4643E-01 -8.4016E-02  8.4157E-02
 GRADIENT:   7.7938E-03  5.7189E-03  3.0426E-02 -5.1648E-03 -1.2939E-02  
1.4490E-02  7.4602E-04 -2.5227E-02 -3.1443E-03  1.5799E-02

0ITERATION NO.:   19    OBJECTIVE VALUE:   104.561067398632        NO. OF FUNC. 
EVALS.:   0 
 CUMULATIVE NO. OF FUNC. EVALS.:      149 
 NPARAMETR:  2.7739E+00  7.8129E-02  3.6307E-02  5.5498E+00  5.2393E-03 
-1.2767E-01  2.3985E-04  9.1064E-03  5.1521E-01  3.8750E-01
 PARAMETER: -8.8304E-02  6.9219E-02 -1.2510E-02  6.0998E-02  1.0895E-01 
-4.4249E-02  1.9095E-01  1.4652E-01 -8.3269E-02  8.4127E-02
 GRADIENT:   1.2144E-04 -1.4882E-04 -6.6303E-06 -7.5745E-05 -1.6157E-05  
1.1307E-04  6.4128E-05  1.1193E-04 -1.7655E-05  4.2677E-05

 Elapsed estimation time in seconds:     0.28 
 Elapsed covariance time in seconds:     0.03 

You should now compare REPORT5.txt vs. REPORT5IDS.txt 
Values should be similar. 
E.g., the following should be identical: 
find  "#OBJV:" REPORT5.txt 

---------- REPORT5.TXT 
 #OBJV:********************************************      104.561       
**************************************************
find  "#OBJV:" REPORT5IDS.txt 
---------- REPORT5IDS.TXT 
 #OBJV:********************************************      104.561       
**************************************************

Above text represents a successful install of NONMEM 7.2.0 with 64-bit gfortran.

William J. Bachman, Ph.D.
Director, Pharmacometrics R&D
Icon Development Solutions
7740 Milestone Parkway 
Suite 150
Hanover, MD 21076
Office 215-616-8699
[email protected]


ICON plc made the following annotations.
------------------------------------------------------------------------------
This e-mail transmission may contain confidential or legally privileged 
information
that is intended only for the individual or entity named in the e-mail address. 
If you
are not the intended recipient, you are hereby notified that any disclosure, 
copying,
distribution, or reliance upon the contents of this e-mail is strictly 
prohibited. If
you have received this e-mail transmission in error, please reply to the 
sender, so that
ICON plc can arrange for proper delivery, and then please delete the message.
Thank You,
ICON plc
South County Business Park
Leopardstown
Dublin 18
Ireland
Registered number: 145835

Reply via email to