Re: Computer and compiler questions
Date: Fri, 13 Aug 1999 14:58:16 -0700 (PDT)
From: ABoeckmann <alison@c255.ucsf.edu>
Subject: Re: Computer and compiler questions
I have a few comments on Pierre Maitre's response to J. Zarate 's questions about installing NONMEM an Alpha machine running Linux.
First, the contstants in BLKDAT are always those for the Intel floating point architecture. It does not matter what format the diskettes are recorded in. The content is always the same.
If the Alpha uses the IEEE floating point architecture, then the SETUP C-shell script can be used as-is. It will change Intel constants in BLKDAT to IEEE constants.
If the Alpha uses the Intel floating point architecture, then it is necessary to prevent SETUP from changing constants in BLKDAT from Intel to IEEE.
With NONMEM V1.1., there is a new option for SETUP that tells it to leave the constants unchanged. E.g., something like this:
SETUP /home/nmv g77 -O ar intel
(With NONMEM V1.0's SETUP, stop SETUP and change the constants back to Intel before Step 6).
Second, if DOS-formatted diskettes are used, the file format must indeed be changed from MS-DOS CR/LF to Unix newline. It can be done using vi, as Pierre suggests, but I wonder if there is not an easier way. Does Linux not have the same dos2unix and unix2dos utility programs that Sun Unix has? Or can someone suggest a similar Linux command?
Note that the GNU website (www.gnu.org) has a free package mtools. This includes the Unix program mcopy which can be used to read an MS-DOS-formatted diskette and perform DOS to Unix conversion while the file is being read.
Alison Boeckmann