How do you install an sh program? -- follow-up

Paul Howarth paul at city-fan.org
Fri Jul 1 10:24:57 UTC 2005


Benjamin Sher wrote:
> Paul Howarth wrote:
> 
>> Benjamin Sher wrote:
>>
>>> Dear friends:
>>>
>>> I assure you that the Readme.txt file for XnView does NOT have any 
>>> installation instructions. That would be the first place I would check.
>>
>>
>>
>> Just run the "install" script (as root).
>>
>> # ./install
>>
>> Paul.
>>
> Dear Paul:
> 
> That's precisely what I tried to do originally, but to no avail. What 
> does this error message mean, please?
> 
> Benjamin
> 
> [sher at localhost XnView-1.68-x86-unknown-linux2.x-static]$ su
> Password:
> [root at localhost XnView-1.68-x86-unknown-linux2.x-static]# ls
> app-defaults  Formats.txt  lib  nconvert.sh  Usage.txt     xnview.sh
> bin           install      man  ReadMe.txt   WhatsNew.txt
> [root at localhost XnView-1.68-x86-unknown-linux2.x-static]# ./install
>  OS  : Linux, version 2.6.9-5.0.5.EL
> ./install: line 26: syntax error near unexpected token `('
> ./install: line 26: `   uid=*(root)*)'
> [root at localhost XnView-1.68-x86-unknown-linux2.x-static]#

It means the author of the install script doesn't write portable code, 
or hasn't tried running it himself.

Edit the install script and change the line:

         uid=*(root)*)

to:

         uid=*\(root\)*)

Paul.





More information about the fedora-list mailing list