- I downloaded the source for check install.
checkinstall-1.6.2.tar.gz
. - I then
tar -xzvf checkinstall-1.6.2.tar.gz
- Then I
make
.
It prints this error:
[root@ip-50-63-180-135 checkinstall-1.6.2]# make
for file in locale/checkinstall-*.po ; do \
case ${file} in \
locale/checkinstall-template.po) ;; \
*) \
out=`echo $file | sed -s 's/po/mo/'` ; \
msgfmt -o ${out} ${file} ; \
if [ $? != 0 ] ; then \
exit 1 ; \
fi ; \
;; \
esac ; \
done
make -C installwatch
make[1]: Entering directory `/home/sofiane/checkinstall-1.6.2/installwatch'
gcc -Wall -c -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DVERSION=\"0.7.0beta7\" installwatch.c
installwatch.c:2942: error: conflicting types for 'readlink'
/usr/include/unistd.h:828: note: previous declaration of 'readlink' was here
installwatch.c:3080: error: conflicting types for 'scandir'
/usr/include/dirent.h:252: note: previous declaration of 'scandir' was here
installwatch.c:3692: error: conflicting types for 'scandir64'
/usr/include/dirent.h:275: note: previous declaration of 'scandir64' was here
make[1]: *** [installwatch.o] Error 1
make[1]: Leaving directory `/home/sofiane/checkinstall-1.6.2/installwatch'
make: *** [all] Error 2
I searched extensively on this issue and this solution looks promising. Should I attempt to install checkinstall as an fpm
? What would be the best way to go about that?
Centos 6.3 x86_64
checkinstall
or programs like it to create RPMs is usually the wrong way to go about it.checkinstall
is absolutely the wrong thing to do. (And probably installing PHP from source is, too.)rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm
and thenyum install php54w
. Then after restarting apache my phpinfo() shows up but when I try to run aindex.php
it reports a 500 error. I tried also justyum install php
.yum install php-devel
yum install php-cli`php-common
etc and still 500 error. I figured installing from source is the only thing I can do now.