[ofa-general] Re: Error installing infiniband-diags

Hal Rosenstock hrosenstock at xsigo.com
Tue Mar 11 11:26:26 PDT 2008


On Tue, 2008-03-11 at 18:32 +0000, Sasha Khapyorsky wrote:
> On 11:16 Tue 11 Mar     , Hal Rosenstock wrote:
> > > > 
> > > > When installing (OFED 1.3) infiniband-diags via make install, I get:
> > > > 
> > > > ./config/install-sh -m 444
> > > > scripts/IBswcountlimits.pm //usr/local/lib/perl/5.8.4/IBswcountlimits.pm
> > > > mv: cannot remove `scripts/IBswcountlimits.pm': Permission denied
> > > > make[3]: *** [install-data-hook] Error 1
> > > > 
> > > > Is it trying to move/remove the source script
> > > > (scripts/IBswcountlimits.pm) ? Any idea on what could be wrong ?
> > > 
> > > I don't know. Maybe your install-sh tries to move
> > > scripts/IBswcountlimits.pm to new place. Add '-xv' at first line of the
> > > ./config/install-sh
> > 
> > Looking at install-sh, I'm not sure what you mean by this exactly.
> 
> I meant to add verbosity - to make first line of the script to be:
> 
>   #!/bin/sh -xv
> 
> , rerun it (without '-c') and to see what is going on here.

without -c it does a mv (from the source dir) which fails and with -c it
does a cp.

without -c:
+ '[' x '!=' x ']'
+ '[' x = x ']'
basename "$dst"
++ basename //opt/ofed/sbin/IBswcountlimits.pm
+ dstfile=IBswcountlimits.pm
+ '[' xIBswcountlimits.pm = x ']'
+ :
+ dsttmp=//opt/ofed/sbin/_inst.29162_
+ rmtmp=//opt/ofed/sbin/_rm.29162_
+ trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0
+ trap '(exit $?); exit' 1 2 13 15
+ mv scripts/IBswcountlimits.pm //opt/ofed/sbin/_inst.29162_
mv: cannot remove `scripts/IBswcountlimits.pm': Permission denied
status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status
+ status=1
+ rm -f //opt/ofed/sbin/_inst.29162_ //opt/ofed/sbin/_rm.29162_

with -c:
+ dstfile=IBswcountlimits.pm
+ '[' xIBswcountlimits.pm = x ']'
+ :
+ dsttmp=//opt/ofed/sbin/_inst.6997_
+ rmtmp=//opt/ofed/sbin/_rm.6997_
+ trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0
+ trap '(exit $?); exit' 1 2 13 15
+ cp scripts/IBswcountlimits.pm //opt/ofed/sbin/_inst.6997_
+ '[' x '!=' x ']'
+ :
+ '[' x '!=' x ']'
+ :
+ '[' x '!=' x ']'
+ :
+ '[' 'xchmod 444' '!=' x ']'
+ chmod 444 //opt/ofed/sbin/_inst.6997_


> 
> Sasha
> _______________________________________________
> general mailing list
> general at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general



More information about the general mailing list