I am a newbie both to system admin and Linux but have been asked to help take care of a Linux server. I am a little over my head with this so any help would be great.
Basically, I'm trying to compile PHP 4.3.9 on Red Hat 3.4.6-3 and am getting the following error when I execute rpmbuild -bb php.spec
#define PHP_FCGI_STATIC 0
#define PHP_SAFE_MODE 0
#define PHP_SAFE_MODE_EXEC_DIR "/usr/bin"
#define PHP_SIGCHILD 0
#define PHP_WRITE_STDOUT 1
#define SIZEOF_INT 4
#define SIZEOF_LONG 8
#define STDC_HEADERS 1
#define WITH_BCMATH 1
#define YYTEXT_POINTER 1
#endif
#ifdef __cplusplus
extern "C" void std::exit (int) throw (); using std::exit;
configure: exit 1
+ make -j4
make: *** No targets specified and no makefile found. Stop.
error: Bad exit status from /var/tmp/rpm-tmp.27226 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.27226 (%build)
The code in the spec file is not something I'm familiar with at all since I only have very limited linux knowledge. I know the error wants a makefile and target for the make command but from what I can tell there's something else that may be affecting it. Any ideas where I should start looking?
I can post my spec file later when I have more time but any ideas would be helpful since I'm really out of my league here