我正在尝试从http://www.ashberg.de/php-barcode/download/安装genbarcode 0.4。在Centos 6.3 64bit。
在README之后,我通过yum(0.98-17.el6)安装了条形码,然后在genbarcode目录中运行make。然后我得到以下错误:
creating depencies
rm -f .tmp.dep
gcc -M -Wall -I/usr/local/include ./genbarcode.c
./genbarcode.c:35:21: error: barcode.h: No such file or directory
make: *** [.dep] Error 123
我还根据genbarcode中包含的自述文件从源代码编译并安装了条形码0.99,但得到了相同的错误。我也尝试将提到'barcode.h'的文件移动到带有genbarcode的目录中,但是我得到了其他我找不到的丢失文件的错误。
我已将genbarcode Makfile的第57行更改为:
@find . -maxdepth 1 -name "*.c" -print0 | xargs -n 1 -0t $(CC) -M $(CFLAGS) >>.tmp.dep
因为它正在发出原始警告:
@find . -name "*.c" -maxdepth 1 -print0 | xargs -n 1 -0t $(CC) -M $(CFLAGS) >>.tmp.dep
感谢任何帮助。
答案 0 :(得分:1)
尝试安装barcode-devel
,barcode
软件包不包含针对barcode
开发/构建所需的文件,例如头文件。