Initial Experiences with Max OS X 5.2 Leopard and NONMEM and PDx-Pop 3.0
Installation of Leopard on my MacBook Pro took about one hour and forty
minutes (20 minutes less than my installation of Vista Service Pack 1 to
my HP Media Center workstation). No problems were encountered for the
OS upgrade from Tiger (10.4) to Leopard (10.5).
I wish I could say the same for upgrading the Fortran compiler and
linker which are required by the upgrade. I am not a Mac expert but
still, it took me nearly a day to get them to work (even with some
suggestions from Dennis Fisher). Dennis suggested the Xcode 3.0 tools
provide on the Panther were not sufficient and provided a link to the
Apple Developers site for a different version:
https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftwa
re?bundleID=19897
A new version of g95 was also downloaded from http://ftp.g95.org/ using
the link for G95 Binaries and Source (Stable version 0.91, March 2008)>>
x86 OSX on that page. Cctools was also downloaded from this page
(although it is not clear if it was needed). Installation of g95 from
the g95-x86-osx.tar was the least clear. There may be a better way, but
the following worked for me from the command line:
sudo rm -rf /bin/g95 (removes link to previous g95 version)
cp g95-x86-osx.tar /opt (I install most of my software like compilers
and NONMEM under /opt directory)
cd /opt
mv g95-install x-g95-install (rename previous g95 install directory so
it won't be over-written)
tar xvf g95-x86-osx.tar (untars and creates /opt/g95-install
directories, subdirectories and files)
sudo ln -s /opt/g95-install/bin/i386-apple-darwin8.11.1-g95 /bin/g95
(creates a new symbolic link in /bin so g95 can be called, if /bin is in
your path).
Once g95 was installed I ran a compile test with a simple "Hello, World"
type source file, in this case called 'gmtest.f':
C234567
program test
WRITE (6,*) "ICON Development Solutions - Tools for Expediting"
WRITE (6,*) " Population Analysis (c) 2007"
end
I compiled with the same options I ultimately used for NONMEM
("-fno-pic" suggested by Dennis Fisher):
g95 -O -fno-pic -fsloppy-char gmtest.f
I then ran the test program:
./a.out
ICON Development Solutions - Tools for Expediting
Population Analysis (c) 2007"
Having a successful test compile, I then recompiled NONMEM from it's
directory (in this case, /opt/nm621):
./SETUP /opt/nm621 g95 '-O -fno-pic -fsloppy-char' /usr/bin/ar intel
/mnt/cdrom y
No errors were noted in the recompile (Some warnings were noted but
these can be ignored) and "nmfe6 CONTROL5 report5.txt" was run
successfully from /opt/nm621/run.
The only change required for PDx-Pop 3.0 after recompilation of NONMEM
was to change the Foptions variable to "-O -fno-pic -fsloppy-char "
using Tools > Edit Configuration from the PDx-Pop menu bar.
William J. Bachman, Ph.D.
Director, Pharmacometrics R&D
Icon Development Solutions
6031 University Blvd., Suite 300
Ellicott City, MD 21043
Office 410-696-3002
Cell 301-467-8635
[EMAIL PROTECTED]
_____________________________________________________________________________________________________________