The problem

You want to create your own RPM package. You have written a spec file test.spec. But when you call rpmbuild you get the following error message:

root@linux# rpmbuild -ba test.spec
error: File /root/test.spec does not appear to be a spec file.

The cause

Your spec file contains German umlauts or other non-ASCII characters.

The solution

Remove all umlauts and other characters that are not in the ASCII character set from your spec file.

Note: The problem does not occur with all distributions, nor can it be determined by the version of RPM. Both SuSE 9.1 and SuSE 10.0 use RPM version 4.1.1. The problem occurs with SuSE 9.1 but not with SuSE 10.0.

Linux knowledge

Questi articoli sono stati scritti dal fondatore di Checkmk molti anni fa.
Tuttavia, sono ancora validi e quindi li conserviamo sul nostro sito web.
Da allora Mathias ha sviluppato il software di monitoraggio che oggi è Checkmk.

Scopri di più