trouble installing PH 8.43.D1 for AIX

Darren Reely darren.reely at latticesemi.com
Wed May 3 19:54:09 CDT 2006


I thought the CD downloads were *.tar.Z files for Unix. The Solaris name 
looks something like ph843d1_sol.tar.Z. Is that what you received for 
AIX, or was it already decompressed and extracted on the CD. If so, 
maybe they used Windows software for that, which might not be a good idea.

Despite Dirk's response, I found carriage returns in a script will stop 
it from running. At least on SunOS. It didn't matter if linefeeds were 
also there. I get odd results if only carriage returns are the end of 
line. The first run gives the below result well a second does nothing.

When carriage returns + line feeds are the end of line I get the below 
result.

Here is my execution and response.
.../dreely-> ./test3.csh
./test3.csh: Command not found.
../dreely->

By the way. It didn't matter if the first line on the script used ksh or 
csh in my case.

You could try fixing the files, with the tr command, but your install 
file should already be clean.
    tr -d "\015" < test3.csh > test4.csh

Darren


Brett Greiner wrote:
>  
> The CD we received, came from a COGNOS reseller in New Zealand, which
> they downloaded the Powerhouse from a URL that they were told about from
> COGNOS Canada. This download was written out to a CD and sent to us.
>
> Thanks
> Brett
>
> -----Original Message-----
> From: powerh-l-bounces+brett.greiner=synoptix.co.nz at lists.sowder.com
> [mailto:powerh-l-bounces+brett.greiner=synoptix.co.nz at lists.sowder.com]
> On Behalf Of Brett Greiner
> Sent: Thursday, 4 May 2006 11:45
> To: Rohde, Dirk
> Cc: powerh-l at lists.sowder.com
> Subject: RE: trouble installing PH 8.43.D1 for AIX
>
>  
> Hi Dirk
>
> I assume that you did a "cd" to the directory "<install
> directory>/ph843d1" before running the "./install" command?
> That's correct.
>
> Logged is as root.
> ls -l install displays;
> SYS=/test|root:/apps/cognos/ph843d1>ls -l install
> -rwxrwxrwx   1 root     sys           15223 May 01 14:26 install
> SYS=/test|root:/apps/cognos/ph843d1>
>
>
>
> To show you the ^M issue we have and why we assume its in a DOS format
> ....
> SYS=/test|root:/apps/cognos/ph843d1>cat -v setpow.sh ###^M ^M #
> SetPowerHouseServer script for (Bourne) sh users^M # DON'T execute this
> script, 'dot' it e.g.^M
> #   . /usr/cognos/ph843d1/setup.sh^M
> # (otherwise, the environment variables will just get lost).^M ^M #
> Maintenance note: the logic to update the user's PATH variable^M #
> assumes that PowerHouse is kept in a directory that contains^M # cognos
> and ph in that order in its directory path.^M
>
>
>
> And running the script seems to fail on a blank file where the ^M is the
> only character...
> SYS=/test|root:/apps/cognos/ph843d1>sh -v setpow.sh ###
>
> setpow.sh[2]: ^M:  not found.
> # SetPowerHouseServer script for (Bourne) sh users # DON'T execute this
> script, 'dot' it e.g.
> #   . /usr/cognos/ph843d1/setup.sh
> # (otherwise, the environment variables will just get lost).
>
> setpow.sh[7]: ^M:  not found.
> # Maintenance note: the logic to update the user's PATH variable #
> assumes that PowerHouse is kept in a directory that contains # cognos
> and ph in that order in its directory path.
>
> setpow.sh[11]: ^M:  not found.
> # To change the default location for PowerHouse, do a
> #    PH_VER=PowerHouse-version;export PH_VER
> #    PH_USR=PowerHouse-location;export PH_USR
> # before .'ing this file (where PowerHouse-location is the # directory
> where PowerHouse is installed and PowerHouse-version is # the version of
> PowerHouse desired.)
>
> setpow.sh[18]: ^M:  not found.
> # define default version for PH.
> PH_VER=${PH_VER:=d1}
>
> setpow.sh[21]: ^M:  not found.
> if [ ! $?PH_USR ] ; then
>   if [ `uname` = "HP-UX" ] ; then
>     hpver=`uname -r | cut -f 2 -d .`
>     case $hpver in
> ' is not expected.3-057 Syntax error at line 26 : `in
> SYS=/test|root:/apps/cognos/ph843d1>
>
> -----Original Message-----
> From: Rohde, Dirk [mailto:Dirk.Rohde at vpgroup.com]
> Sent: Thursday, 4 May 2006 11:33
> To: Brett Greiner
> Cc: powerh-l at lists.sowder.com
> Subject: RE: trouble installing PH 8.43.D1 for AIX
>
> Carriage returns at the end of each line of a script should not affect
> its execution. It may be a file protection issue. I assume that you did
> a "cd" to the directory "<install directory>/ph843d1" before running the
> "./install" command? When you do an "ls -l install" in that directory,
> what do you see? Are you logged in as the root (or similarly privileged)
> user?
>
> Dirk Rohde
> VantagePoint Systems
>
> -----Original Message-----
> From: powerh-l-bounces+dirk.rohde=vpgroup.com at lists.sowder.com
> [mailto:powerh-l-bounces+dirk.rohde=vpgroup.com at lists.sowder.com] On
> Behalf Of Brett Greiner
> Sent: May 3, 2006 2:44 PM
> To: powerh-l at lists.sowder.com
> Subject: trouble installing PH 8.43.D1 for AIX
>
>
> Hi all
>
> We have received Powerhouse version 8.43.D1 for AIX on CD. 
>
> I aliased to the root user and proceeded to copy the PH folder from CD
> onto the AIX box, then we ran the install program by doing the command >
> ./install<enter>. 
> AIX responds with ksh: ./install:  not found.
>
> By looking at the supplied setpow.sh script in vi, there are ^M at then
> end of the lines, indicating to me that the data written onto the CD is
> in a DOS format.
> Would that be correct to assume why it won't run the install program?
>
> Can anyone help?
>
> Cheers
> Brett
>
>  
>
>
>
>
>   


More information about the powerh-l mailing list