Hi,

Did you by chance copy & paste the command from the wiki? If so, I have seen 
some strange SCII character conversions happen that way. so, I'd suggest trying 
to retype the whole command manually the way the option is shown in the man 
page for rpmbuild.

Cause when I type your command manually, I get what I would expect:

rpmbuild -ba --target=i686 dovecot.spec
Building target platforms: i686
Building for target i686
error: failed to stat /root/dovecot.spec: No such file or directory

When I copy & paste what the text command from your mail, I get the wrong:

rpmbuild –ba --target=i686 dovecot.spec
Building target platforms: i686
Building for target i686
error: failed to stat /root/–ba: No such file or directory

So, there must be a difference in the character you use.

Martin


Am 12.06.2010 um 04:41 schrieb Rajesh M:

>>> hi
>>> 
>>> 
>>> i followed the instructions as posted by mr amit
>>> http://www.mail-archive.com/qmailtoaster-list@qmailtoaster.com/msg25551.html
>>> 
>>> i downloaded the rpm from
>>> 
>>> http://dl.atrpms.net/all/dovecot-1.2.11-3_108.src.rpm
>>> 
>>> and put it in /usr/src/qtms-install
>>> 
>>> 
>>> rpm -i dovecot*.src.rpm
>>> 
>>> it gave a warning
>>> 
>>> warning: dovecot-1.2.11-3_108.src.rpm Header V4 DSA signature: NOKEY,
>>> key
>>> ID 6534c2b
>>> 
>>> when i did
>>> 
>>> rpmbuild –ba --target=i686 dovecot.spec
>>> 
>>> i got error
>>> 
>>> rpmbuild failed to stat /usr/src/qtms-install/-ba
>>> 
>>> no such file or directory .... i am stuck here.
>>> 
>>> help required please
>>> 
>>> if any body has implemented this i would like the exact steps please
>>> 
>>> thanks very much
>> 
>> 
>> What system are you building on?
>> I'd venture to guess that you're in the wrong directory. If you're running
>> CentOS, you want to be in /usr/src/redhat/SPECS to run the command you
>> were running.
>> 
>> 
>> 
>> ---------------------------------------------------------------------------------
>> Qmailtoaster is sponsored by Vickers Consulting Group
>> (www.vickersconsulting.com)
>>    Vickers Consulting Group offers Qmailtoaster support and
>> installations.
>>      If you need professional help with your setup, contact them today!
>> ---------------------------------------------------------------------------------
>>     Please visit qmailtoaster.com for the latest news, updates, and
>> packages.
>> 
>>      To unsubscribe, e-mail:
>> qmailtoaster-list-unsubscr...@qmailtoaster.com
>>     For additional commands, e-mail:
>> qmailtoaster-list-h...@qmailtoaster.com
>> 
>> 
>> 
> 
> 
> hi
> 
> i tried that also, it now gives error
> 
> failed to stat /usr/src/redhat/SPECS/-ba
> 
> no such file or directory
> 
> i think this is some other issue --- why is it considering the option
> "-ba" as a directory
> 
> rajesh
> 
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------------------
> Qmailtoaster is sponsored by Vickers Consulting Group 
> (www.vickersconsulting.com)
>    Vickers Consulting Group offers Qmailtoaster support and installations.
>      If you need professional help with your setup, contact them today!
> ---------------------------------------------------------------------------------
>     Please visit qmailtoaster.com for the latest news, updates, and packages.
> 
>      To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
>     For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
> 
> 


--
"The whole modern world has divided itself into Conservatives and Progressives. 
The business of Progressives is to go on making mistakes. The business of the 
Conservatives is to prevent the mistakes from being corrected."

Gilbert K. Chesterton


---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
    Vickers Consulting Group offers Qmailtoaster support and installations.
      If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
     Please visit qmailtoaster.com for the latest news, updates, and packages.

      To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
     For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com


Reply via email to