If you receive the following error when running the \u201cmake\u201d command in step 8, then you have not installed gcc first:<\/span><\/li>\n<\/ol>\n[root@localhost checkinstall]# make\r\nfor file in locale\/checkinstall-*.po ; do \\\r\ncase ${file} in \\\r\nlocale\/checkinstall-template.po) ;; \\\r\n*) \\\r\nout='echo $file | sed -s 's\/po\/mo\/'' ; \\\r\nmsgfmt -o ${out} ${file} ; \\\r\nif [ $? != 0 ] ; then \\\r\nexit 1 ; \\\r\nfi ; \\\r\n;; \\\r\nesac ; \\\r\ndone\r\nmake -C installwatch\r\nmake[1]: Entering directory \/path\/to\/folder\/checkinstall\/installwatch'\r\n.\/create-localdecls\r\nChecking truncate argument type... off_t\r\nChecking readlinkat result type... ssize_t\r\nChecking libc version... .\/create-localdecls: line 47: gcc: command not found\r\nldd: .\/libctest: No such file or directory\r\nrm: cannot remove 'libctest': No such file or directory\r\ngcc -Wall -c -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DVERSION=\\\"0.7.0beta7\\\" installwatch.c\r\nmake[1]: gcc: Command not found\r\nmake[1]: *** [installwatch.0] Error 127\r\nmake[1]: Leaving directory '\/path\/to\/folder\/checkinstall\/installwatch'\r\nmake: *** [1ll] Error 2<\/span><\/pre>\n2. If you receive the following error when running the \u201cmake\u201d command, you will have to modify the \/checkinstall\/installwatch\/installwatch.c<\/strong> file at the lines mentioned in the fix below and then start at step 8 again.<\/span><\/p>\ninstallwatch.c:2942: error: conflicting types for 'readlink'\r\n\/usr\/include\/unistd.h:828: note: previous declaration of 'readlink' was here\r\ninstallwatch.c:3080: error: conflicting types for 'scandir'\r\n\/usr\/include\/dirent.h:252: note: previous declaration of 'scandir' was here\r\ninstallwatch.c:3692: error: conflicting types for 'scandir64'\r\n\/usr\/include\/dirent.h:275: note: previous declaration of 'scandir64' was here<\/span><\/pre>\nNote: <\/strong>When you edit the installwatch.c <\/strong>file, there will be an \u201cif-then\u201d statement for a static int on each item listed. You want them to match, which is what we are doing here.<\/span><\/p>\nMake the following changes to the .\/checkinstall\/installwatch\/installwatch.c <\/strong>file:<\/span><\/p>\n\n- \n
\n- At line 110, change the \u201cstatic int\u201d to match the previous \u201cstatic int\u201d:<\/span><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n
Original<\/strong>:<\/span><\/p>\nstatic int (*true_scandir)( const char *,struct dirent ***,\r\nint (*)(const struct dirent *),\r\nint (*)(const void *,const void *));<\/span><\/pre>\nEdited<\/strong>:<\/span><\/p>\nstatic int (*true_scandir)( const char *,struct dirent ***,\r\nint (*)(const struct dirent *),\r\nint (*)(const struct dirent **,const struct dirent **));<\/span><\/pre>\n\n- \n
\n- At line 138, change the \u201cstatic int\u201d to match the previous \u201cstatic int\u201d:<\/span><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n
Original:<\/strong><\/span><\/p>\nstatic int (*true_scandir64)( const char *,struct dirent64 ***,\r\nint (*)(const struct dirent64 *),\r\nint (*)(const void *,const void *));<\/span><\/pre>\nEdited:<\/strong><\/span><\/p>\nstatic int (*true_scandir64)( const char *,struct dirent64 ***,\r\nint (*)(const struct dirent64 *),\r\nint (*)(const struct dirent64 **,const struct dirent64 **));<\/span><\/pre>\n\n- \n
\n- At line 2959, change:<\/span><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n
Original<\/strong>:<\/span><\/p>\n#if (GLIBC_MINOR <= 4)<\/span><\/pre>\nEdited:<\/strong><\/span><\/p>\n#if (0)<\/span><\/pre>\n\n- \n
\n- At line 3103, change the \u201cstatic int\u201d to match the previous \u201cstatic int\u201d:<\/span><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n
Original:<\/strong><\/span><\/p>\nint scandir( const char *dir,struct dirent ***namelist,\r\nint (*select)(const struct dirent *),\r\nint (*compar)(const void *,const void *) ) {<\/span><\/pre>\nEdited:<\/strong><\/span><\/p>\nint scandir( const char *dir,struct dirent ***namelist,\r\nint (*select)(const struct dirent *),\r\nint (*compar)(const struct dirent **,const struct dirent **) ) {[\/code]\r\nat line 3719, change the static int to match the previous static int:<\/span><\/pre>\nOriginal:<\/strong><\/span><\/p>\nint scandir64( const char *dir,struct dirent64 ***namelist,\r\nint (*select)(const struct dirent64 *),\r\nint (*compar)(const void *,const void *) ) {<\/span><\/pre>\nEdited:<\/strong><\/span><\/p>\nint scandir64( const char *dir,struct dirent64 ***namelist,\r\nint (*select)(const struct dirent64 *),\r\nint (*compar)(const struct dirent64 **,const struct dirent64 **) ) {<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"Applies to: All Linux versions of Ephesoft Transact This page provides instructions for how to install checkinstall on RedHat Enterprise […]<\/p>\n","protected":false},"author":62,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12358,12393],"tags":[361],"yoast_head":"\n
How to Install Checkinstall on RHEL | Ephesoft Docs<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n