Page 1 of 1

Failed rpm build on CentOS 5.2 x86_64

Posted: 2009-01-20T20:32:26-07:00
by dognose
Does IM build on 64 bit, or does it need any special workarounds?

rpmbuild --bb ImageMagick.spec

Processing files: ImageMagick-c++-devel-6.4.8-7
error: File not found: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/bin/Magick++-config
error: File not found: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/lib64/libMagick++.so
error: File not found: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/lib64/pkgconfig/Magick++.pc
error: File not found: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/lib64/pkgconfig/ImageMagick++.pc
error: File not found by glob: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/share/man/man1/Magick++-config.*
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.70316
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd ImageMagick-6.4.8-7
+ DOCDIR=/var/tmp/ImageMagick-6.4.8-7-root-root/usr/share/doc/ImageMagick-c++-devel-6.4.8
+ export DOCDIR
+ rm -rf /var/tmp/ImageMagick-6.4.8-7-root-root/usr/share/doc/ImageMagick-c++-devel-6.4.8
+ /bin/mkdir -p /var/tmp/ImageMagick-6.4.8-7-root-root/usr/share/doc/ImageMagick-c++-devel-6.4.8
+ cp -pr Magick++/examples /var/tmp/ImageMagick-6.4.8-7-root-root/usr/share/doc/ImageMagick-c++-devel-6.4.8
+ exit 0

RPM build errors:
File not found by glob: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/lib64/libMagick++.so.*
File not found: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/bin/Magick++-config
File not found: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/lib64/libMagick++.so
File not found: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/lib64/pkgconfig/Magick++.pc
File not found: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/lib64/pkgconfig/ImageMagick++.pc
File not found by glob: /var/tmp/ImageMagick-6.4.8-7-root-root/usr/share/man/man1/Magick++-config.*

Re: Failed rpm build on CentOS 5.2 x86_64

Posted: 2009-01-21T18:09:03-07:00
by anthony
Did you try my instructions in Im Examples. APIs
http://www.imagemagick.org/Usage/api/#building

Someone has mentioned that it works for CentOS
I have not tried this myself.

Re: Failed rpm build on CentOS 5.2 x86_64

Posted: 2009-01-21T22:49:40-07:00
by dognose
Yes, I'm quite familiar with building rpms from source.

It should be as simple as "rpmbuild --rebuild package.srpm"

I've built IM previously, the same version (6.3.8) that was reported here to build. I haven't been able to build any since... though I've only been trying intermittently.

I'm guessing the problem is with inconsistencies in the Magic++ makefile(s).. I'm just not good at finding those types of problems.

Ironically, I don't even need Magic++, just the base install.

Re: Failed rpm build on CentOS 5.2 x86_64

Posted: 2009-01-22T00:22:45-07:00
by anthony
dognose wrote:Yes, I'm quite familiar with building rpms from source.

It should be as simple as "rpmbuild --rebuild package.srpm"
Except if you want to change teh configuration items by modifing the 'spec' file before building the SRPM. I need to add a couple of items, and use the latest SVN beta release (bleeding edge) so I first create the SRPM then buils the RPM's from that.

I don't have any trouble with the Magick++ aspect, on fedora (8 or 10) so I am not certain what problem you are having.

I suggest getting a SVN copy, or the last TAR file, and building the SRPM yourself as well.

Missing files are not a problem for me.

Re: Failed rpm build on CentOS 5.2 x86_64

Posted: 2009-01-22T11:44:47-07:00
by dognose
Success.

I was finally able to get the rpm built.

I just had to rip out references to magick++ in the spec file, and compensate for the extra files from the make errors.

Re: Failed rpm build on CentOS 5.2 x86_64

Posted: 2009-01-22T18:00:10-07:00
by anthony
Do you have notes on what you did to the spec file to make it work with CentOS