LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Brian W. Barrett (brbarret_at_[hidden])
Date: 2003-11-10 12:32:49


On Monday, November 10, 2003, at 09:13 AM, Andrew Cunningham wrote:

> I have solved the mystery of why ./configure fails on my machine
>
> There is a line in ./configure
> LAM_CONFIGURE_HOST="`hostname`"
>
> On my machine hostname returns two lines
> [andrewmac:MyDeveloper/LAM_MPI/lam-7.0.2] andrewc% hostname
> andrewmac.sandiego.vasci.com
> g4tibook.sandiego.vasci.com
>
> This screws up the pattern that is constructed for 'sed'
>
> s,@LAM_CONFIGURE_HOST@,andrewmac.sandiego.vasci.com
> g4tibook.sandiego.vasci.com,;t t
>
> sed: 12: ./confstathRaL8J/subs-2.sed: unescaped newline inside
> substitute pattern

That would cause the problem. Of course, it kind of begs the question
of how hostname on your machine returns two lines. It can't return two
hostnames (at least, not according to the man page on any system I have
access to), but perhaps can return a hostname with a newline in it
(although hostnames aren't allowed to have newlines in them).

I can't seem to make OS X's hostname return two lines - how did you set
this up?

Brian

-- 
   Brian Barrett
   LAM/MPI developer and all around nice guy
   Have a LAM/MPI day: http://www.lam-mpi.org/