Ask Your Question

What is causing this build error when building pike from an rpm?

asked 2015-03-29 05:51:35 -0500

Marzian gravatar image

updated 2015-03-30 06:06:47 -0500

FranciscoD_ gravatar image

Hello, I'm trying to "rpm-build -ba" a package (Pike) for Fedora 21, but I keep getting this error when the installation (%install of the SPEC file) starts:

"Bad exit status from
/var/tmp/rpm-tmp.hI2V3W (%install)"

More precisely, as far as I can see, things start going badly after:

"Installing Pike in
please wait...

Could not resolve Getopt. (Perhaps the
installed pike tree has been moved.)

Here the SPEC file:

I know there are RPMs for previous editions of Pike, but I'm doing a packaging for a school project (and hopefully learn something about packaging in general along the way).

Ideas? Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-03-30 06:04:42 -0500

FranciscoD_ gravatar image

updated 2015-03-30 06:08:08 -0500

There isn't anything weird in the %install section of your spec. I'm guessing the error is caused by something in one of the install scripts that you are using. Unfortunately, it's difficult (almost impossible) to help you diagnose this issue without looking at the project's build system in detail.

Getopts is a parser library that enables your program to parse command line arguments and such. It has implementations for C, Perl and so on. You'll have to see - maybe your install scripts can't find it? It's just a guess really.

edit flag offensive delete link more


Thanks a lot for looking at the SPEC!

This is the part of install.pike about Getopt:

But I guess it's too little information, and since I'm not a Pike developer, I should just ask them.

(Btw, I have the util-linux package, containing getop, correctly installed)

Marzian gravatar imageMarzian ( 2015-03-30 07:51:44 -0500 )edit

Question Tools

1 follower


Asked: 2015-03-29 05:51:35 -0500

Seen: 79 times

Last updated: Mar 30 '15