Login | Register
My pages Projects Community openCollabNet

Discussions > users > Installing on CentOS5 (x86_64)

fsvs
Discussion topic

Back to topic list

Installing on CentOS5 (x86_64)

Author Thomas Harold <tgh at tgharold dot com>
Full name Thomas Harold <tgh at tgharold dot com>
Date 2007-05-31 07:17:59 PDT
Message Well, I'm getting closer to installing FSVS on CentOS5...

...

********************​********************​***************
*** The Makefile has been updated. ***
*** Please run make again, to build the binary. ***
*** Now stopping execution. ***
********************​********************​***************
make: *** [Makefile] Error 1
[root@fw1-hosho src]# make
ctags ac_list.c actions.c add_unvers.c build.c checksum.c commit.c
diff.c direnum.c est_ops.c export.c fsvs.c helper.c ignore.c info.c
props.c pwcache.c racallback.c remote.c revert.c status.c sync.c
update.c url.c waa.c warnings.c actions.h add_unvers.h build.h
checksum.h commit.h config.h diff.h direnum.h est_ops.h export.h
global.h helper.h ignore.h info.h interface.h props.h pwcache.h
racallback.h remote.h revert.h status.h sync.h update.h url.h waa.h
warnings.h
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
-idirafter /usr/local/include -idirafter /usr/include -idirafter
/openpkg/include -idirafter /usr/include/apr-1 -Os
-DFSVS_VERSION='"fsv​s-1.1.4:835"' -c -o ac_list.o ac_list.c
In file included from ac_list.c:9:
global.h:16:18: error: gdbm.h: No such file or directory
global.h:23:18: error: pcre.h: No such file or directory
In file included from ac_list.c:9:
global.h:90: error: expected specifier-qualifier-list before ‘pcre’
In file included from ac_list.c:13:
update.h:27: error: expected declaration specifiers or ‘...’ before
‘GDBM_FILE’
In file included from ac_list.c:20:
props.h:29: error: expected declaration specifiers or ‘...’ before
‘GDBM_FILE’
props.h:31: error: expected declaration specifiers or ‘...’ before
‘GDBM_FILE’
props.h:35: error: expected ‘)’ before ‘db’
props.h:37: error: expected ‘)’ before ‘db’
props.h:49: error: expected ‘)’ before ‘db’
props.h:50: error: expected ‘)’ before ‘db’
props.h:51: error: expected ‘)’ before ‘db’
props.h:52: error: expected ‘)’ before ‘db’
props.h:56: error: expected ‘)’ before ‘db’
make: *** [ac_list.o] Error 1

I'm guessing that I need to also install the "gdbm" and "gdbm-devel"
packages. Oh, and "pcre" and "pcre-devel".

...

Okay, once I added those (4) packages to the "yum install" line, FSVS
seems to have compiled correctly. It looks like the complete line
required to install all prerequisites for CentOS5 (and probably RHEL5) is:

# yum install subversion subversion-devel ctags apr apr-devel gcc gdbm
gdbm-devel pcre pcre-devel

That line could probably be trimmed down a bit (for instance, I think
installing subversion infers installing the apr package). When I do
FSVS on the other CentOS5 box, I'll check and see.

I'm still working on my blog entry describing the install steps from
A-Z. But a permanent URL will be:

http://www.tgharold.​com/techblog/2007/05​/fsvs-for-sysadmins.​shtml

...

Other things that I've run across:

Maybe the Makefile should check for the existence of those header files
and spit out a less technical error message? I don't even know if that
is possible, but for the less technically adept users, the output of
"cc" can be a bit daunting.

(Alternately, I should try to write a RPM package for FSVS, which would
define what the dependencies are. But don't hold your breath, I've just
switched over to CentOS5 in the past month so I haven't learned those
tricks yet.)

Also, on the index page in the SVN repository at tigris.org, it does not
list "gdbm" as a system requirement.

« Previous message in topic | 1 of 5 | Next message in topic »

Messages

Show all messages in topic

Installing on CentOS5 (x86_64) Thomas Harold <tgh at tgharold dot com> Thomas Harold <tgh at tgharold dot com> 2007-05-31 07:17:59 PDT
     Re: Installing on CentOS5 (x86_64) pmarek P.Marek 2007-05-31 09:26:33 PDT
         Re: Installing on CentOS5 (x86_64) pmarek P.Marek 2007-05-31 09:31:44 PDT
             Re: Installing on CentOS5 (x86_64) Thomas Harold <tgh at tgharold dot com> Thomas Harold <tgh at tgharold dot com> 2007-05-31 13:54:06 PDT
         Re: Installing on CentOS5 (x86_64) Thomas Harold <tgh at tgharold dot com> Thomas Harold <tgh at tgharold dot com> 2007-05-31 13:56:30 PDT
Messages per page: