Hello,
I downloaded the src.rpm from this link and try compiling the RPM
http://www.imagemagick.org/download/linux/SRPMS/
But it is failed with this error message: (Please ignore the version since all the versions are failed and turned out with same message)
...
+ cp -a www/source /root/rpmbuild/BUILDROOT/ImageMagick-6.9.3-2.x86_64/usr/share/doc/ImageMagick-6.9.3
+ rm /root/rpmbuild/BUILDROOT/ImageMagick-6.9.3-2.x86_64/usr/lib64/libMagick++-6.Q16.la /root/rpmbuild/BUILDROOT/ImageMagick-6.9.3-2.x86_64/usr/lib64/libMagickCore-6.Q16.la /root/rpmbuild/BUILDROOT/ImageMagick-6.9.3-2.x86_64/usr/lib64/libMagickWand-6.Q16.la
+ chmod 755 '/root/rpmbuild/BUILDROOT/ImageMagick-6.9.3-2.x86_64/usr/lib64/perl5/vendor_perl/auto/Image/Magick/*/*.so'
chmod: cannot access '/root/rpmbuild/BUILDROOT/ImageMagick-6.9.3-2.x86_64/usr/lib64/perl5/vendor_perl/auto/Image/Magick/*/*.so': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.kbO5Rc (%install)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.kbO5Rc (%install)
Linux Environment
----------------------------
My Centos version is 7.x.
with yum groupinstall -y 'Development Tools' 'Development Libraries';
> uname -a
Linux localhost.localdomain 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
I also try on other linux box with latest kernel version but it is still failed.
I did the same thing serveral months ago and this is working fine.
So I do believe that the centos packages come with some RPMs which changes the behaviour.
Is there anyone can help this case?
Thanks a lot
[SOLVED] RPM compile error on Centos 7
[SOLVED] RPM compile error on Centos 7
Last edited by patrickt on 2016-08-23T17:51:35-07:00, edited 1 time in total.
Re: RPM compile error on Centos 7
Hello,
Seems no one answer, so I try find out the solution.
The main reason to cause this problem is because of the perl-homedir rpm package which enforces the write to user home.
i.e. ~/perl5
This package installed profile on /etc/profile.d to assign the default perl5 path there.
I removed the perl-homedir rpm, logout and login again.
Recompiled the whole thing and it works now.
Thanks
Seems no one answer, so I try find out the solution.
The main reason to cause this problem is because of the perl-homedir rpm package which enforces the write to user home.
i.e. ~/perl5
This package installed profile on /etc/profile.d to assign the default perl5 path there.
I removed the perl-homedir rpm, logout and login again.
Recompiled the whole thing and it works now.
Thanks