[Zebralist] zebra installation setup error

Mike Taylor mike at indexdata.com
Thu Jul 16 13:33:05 CEST 2009


Installing prerequisites from RPM is an _alternative_ to building from
source -- there would be no header files in the YAZ RPM because it's
for users, not developers.  There should be a YAZ-dev package which
includes the headers.  But whether you use RPMs to install pre-built
libraries and binaries, or whether you build your own from source, you
need the prerequisites.  And it may be not be a good idea to mix YAZ
headers from RPMs with a Zebra build from source.  In general, it's
best either to use RPMs for everything or build everything from
source.

2009/7/16 Sivasankari Muthuraja <sivasankari.muthuraja at gmail.com>:
> i have installed the yaz  rpm from
>  http://kojipkgs.fedoraproject.org/packages/yaz/3.0.34/1.fc10/i386/*.rpm
> files
> . I dont find anysort of file to configure either configure,make
> install,make,make file.
> why should i build an pre-built rpm. i haven't taken the source folder and
> build it
> is there any fault over ther.
> I have checked over all the essential modules.
> Its available there
> sivasankari
>
> On Thu, Jul 16, 2009 at 4:02 PM, Mike Taylor <mike at indexdata.com> wrote:
>>
>> This seems pretty clear: Zebra can't build becase it can't find the
>> necessary YAZ header files, which it depends on.  Build and install
>> YAZ first.
>>
>> But a better route would be just to plough on with installing all the
>> dependencies of the Zebra RPM, so that everything is installed from
>> packages.  Your operating system probably has a package management
>> system that automates dependency-chasing.
>>
>> 2009/7/16 Sivasankari Muthuraja <sivasankari.muthuraja at gmail.com>:
>> > I m installing koha in fedora10 machine.
>> > I tried installing zebra rpm. It shows the error. since zebra is
>> > dependant
>> > on yaz. Yaz for fedora 10 is not in the indexdata site.
>> > i searched through sites long and long and find it in the specfied url.
>> >
>> > http://kojipkgs.fedoraproject.org/packages/yaz/3.0.34/1.fc10/i386/libyaz-3.0.34-1.fc10.i386.rpm
>> > and had installed all dependants for yaz.
>> >
>> > Since i could not install zebra through rpm.
>> >
>> > [root at localhost /]# rpm -ivh
>> >
>> > http://ftp.indexdata.dk/pub/zebra/redhat/fc6/idzebra-2.0-2.0.10-1.i386.rpm
>> > Retrieving
>> >
>> > http://ftp.indexdata.dk/pub/zebra/redhat/fc6/idzebra-2.0-2.0.10-1.i386.rpm
>> > error: Failed dependencies:
>> >         libcrypto.so.6 is needed by idzebra-2.0-2.0.10-1.i386
>> >         libidzebra-2.0-modules = 2.0.10 is needed by
>> > idzebra-2.0-2.0.10-1.i386
>> >         libidzebra-2.0.so.0 is needed by idzebra-2.0-2.0.10-1.i386
>> >         libssl.so.6 is needed by idzebra-2.0-2.0.10-1.i386
>> >         libyaz.so.2 is needed by idzebra-2.0-2.0.10-1.i386
>> > [root at localhost /]# rpm -ivh
>> >
>> > http://ftp.indexdata.dk/pub/zebra/redhat/fc6/idzebra-2.0-2.0.8-1.i386.rpm
>> > Retrieving
>> >
>> > http://ftp.indexdata.dk/pub/zebra/redhat/fc6/idzebra-2.0-2.0.8-1.i386.rpm
>> > error: Failed dependencies:
>> >         libcrypto.so.6 is needed by idzebra-2.0-2.0.8-1.i386
>> >         libidzebra-2.0-modules = 2.0.8 is needed by
>> > idzebra-2.0-2.0.8-1.i386
>> >         libidzebra-2.0.so.0 is needed by idzebra-2.0-2.0.8-1.i386
>> >         libssl.so.6 is needed by idzebra-2.0-2.0.8-1.i386
>> >         libyaz.so.2 is needed by idzebra-2.0-2.0.8-1.i386
>> >
>> > I installed the idzebra-2.0.8.tar.gz file .but it shows error in make
>> > I ran ./configure
>> > make
>> > make install to install idzebra
>> > zebrasrv2.0.8 is not available in usr/bin folder
>> > #./configure went well
>> > #make
>> > run step at the end it shows the error
>> > ===========Error screen shot==============
>> > In file included from zebramap.c:28:
>> > ./../include/attrfind.h:28:21: error: yaz/oid.h: No such file or
>> > directory
>> > In file included from zebramap.c:28:
>> > ./../include/attrfind.h:44: error: expected declaration specifiers or
>> > '...'
>> > before 'oid_value'
>> > ./../include/attrfind.h:46: error: expected declaration specifiers or
>> > '...'
>> > before 'oid_value'
>> > zebramap.c: In function 'zebra_maps_sort':
>> > zebramap.c:374: error: too many arguments to function 'attr_find'
>> > zebramap.c:377: error: too many arguments to function 'attr_find'
>> > zebramap.c: In function 'zebra_maps_attr':
>> > zebramap.c:404: error: too many arguments to function 'attr_find'
>> > zebramap.c:405: error: too many arguments to function 'attr_find'
>> > zebramap.c:406: error: too many arguments to function 'attr_find'
>> > zebramap.c:407: error: too many arguments to function 'attr_find'
>> > zebramap.c:408: error: too many arguments to function 'attr_find'
>> > zebramap.c:409: error: too many arguments to function 'attr_find'
>> > make[1]: *** [zebramap.lo] Error 1
>> > make[1]: Leaving directory `/idzebra-2.0.8/util'
>> > make: *** [all-recursive] Error 1
>> > =================================
>> >
>> >
>> > [root at localhost idzebra-2.0.8]# make install
>> > Making install in util
>> > make[1]: Entering directory `/idzebra-2.0.8/util'
>> > if /bin/sh ../libtool --mode=compile gcc -DPACKAGE_NAME=\"idzebra\"
>> > -DPACKAGE_TARNAME=\"idzebra\" -DPACKAGE_VERSION=\"2.0.8\"
>> > -DPACKAGE_STRING=\"idzebra\ 2.0.8\"
>> > -DPACKAGE_BUGREPORT=\"zebra-help at indexdata.dk\" -DPACKAGE=\"idzebra\"
>> > -DVERSION=\"2.0.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
>> > -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
>> > -DHAVE_MEMORY_H=1
>> > -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
>> > -DHAVE_UNISTD_H=1
>> > -DHAVE_DLFCN_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_SYS_TIME_H=1
>> > -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_UTSNAME_H=1 -DHAVE_UNISTD_H=1
>> > -DHAVE_LIBCRYPT=1 -DHAVE_CRYPT_H=1 -DHAVE_TCL_H=0 -DHAVE_MKSTEMP=1
>> > -DHAVE_ATOLL=1 -DHAVE_READLINE_READLINE_H=1 -DHAVE_READLINE_HISTORY_H=1
>> > -DHAVE_READLINE_COMPLETION_OVER=1
>> > -DHAVE_READLINE_RL_COMPLETION_MATCHES=1
>> > -DHAVE_ICONV_H=1 -DHAVE_LIBBZ2=1 -DHAVE_BZLIB_H=1 -DHAVE_LIBM=1
>> > -DHAVE_LIBDL=1 -DHAVE_EXPAT_H=1 -D_FILE_OFFSET_BITS=64 -DSIZEOF_OFF_T=8
>> > -DSIZEOF_LONG_LONG=8 -DZEBRA_ZINT=8 -DIDZEBRA_STATIC_GRS_SGML=1
>> > -DSTDC_HEADERS=1 -I. -I.  -I./../include -pthread -DYAZ_POSIX_THREADS=1
>> > -DYAZ_HAVE_XML2=1 -DYAZ_HAVE_XSLT=1 -DYAZ_HAVE_EXSLT=1
>> > -I/usr/include/libxml2 -DYAZ_USE_NEW_LOG=1
>> > -DDEFAULT_PROFILE_PATH=\"/usr/local/share/idzebra/tab\"   -g -O2 -MT
>> > zebramap.lo -MD -MP -MF ".deps/zebramap.Tpo" -c -o zebramap.lo
>> > zebramap.c; \
>> >         then mv -f ".deps/zebramap.Tpo" ".deps/zebramap.Plo"; else rm -f
>> > ".deps/zebramap.Tpo"; exit 1; fi
>> >  gcc -DPACKAGE_NAME=\"idzebra\" -DPACKAGE_TARNAME=\"idzebra\"
>> > -DPACKAGE_VERSION=\"2.0.8\" "-DPACKAGE_STRING=\"idzebra 2.0.8\""
>> > -DPACKAGE_BUGREPORT=\"zebra-help at indexdata.dk\" -DPACKAGE=\"idzebra\"
>> > -DVERSION=\"2.0.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
>> > -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
>> > -DHAVE_MEMORY_H=1
>> > -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
>> > -DHAVE_UNISTD_H=1
>> > -DHAVE_DLFCN_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_SYS_TIME_H=1
>> > -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_UTSNAME_H=1 -DHAVE_UNISTD_H=1
>> > -DHAVE_LIBCRYPT=1 -DHAVE_CRYPT_H=1 -DHAVE_TCL_H=0 -DHAVE_MKSTEMP=1
>> > -DHAVE_ATOLL=1 -DHAVE_READLINE_READLINE_H=1 -DHAVE_READLINE_HISTORY_H=1
>> > -DHAVE_READLINE_COMPLETION_OVER=1
>> > -DHAVE_READLINE_RL_COMPLETION_MATCHES=1
>> > -DHAVE_ICONV_H=1 -DHAVE_LIBBZ2=1 -DHAVE_BZLIB_H=1 -DHAVE_LIBM=1
>> > -DHAVE_LIBDL=1 -DHAVE_EXPAT_H=1 -D_FILE_OFFSET_BITS=64 -DSIZEOF_OFF_T=8
>> > -DSIZEOF_LONG_LONG=8 -DZEBRA_ZINT=8 -DIDZEBRA_STATIC_GRS_SGML=1
>> > -DSTDC_HEADERS=1 -I. -I. -I./../include -pthread -DYAZ_POSIX_THREADS=1
>> > -DYAZ_HAVE_XML2=1 -DYAZ_HAVE_XSLT=1 -DYAZ_HAVE_EXSLT=1
>> > -I/usr/include/libxml2 -DYAZ_USE_NEW_LOG=1
>> > -DDEFAULT_PROFILE_PATH=\"/usr/local/share/idzebra/tab\" -g -O2 -MT
>> > zebramap.lo -MD -MP -MF .deps/zebramap.Tpo -c zebramap.c  -fPIC -DPIC -o
>> > .libs/zebramap.o
>> > In file included from zebramap.c:28:
>> > ./../include/attrfind.h:28:21: error: yaz/oid.h: No such file or
>> > directory
>> > In file included from zebramap.c:28:
>> > ./../include/attrfind.h:44: error: expected declaration specifiers or
>> > '...'
>> > before 'oid_value'
>> > ./../include/attrfind.h:46: error: expected declaration specifiers or
>> > '...'
>> > before 'oid_value'
>> > zebramap.c: In function 'zebra_maps_sort':
>> > zebramap.c:374: error: too many arguments to function 'attr_find'
>> > zebramap.c:377: error: too many arguments to function 'attr_find'
>> > zebramap.c: In function 'zebra_maps_attr':
>> > zebramap.c:404: error: too many arguments to function 'attr_find'
>> > zebramap.c:405: error: too many arguments to function 'attr_find'
>> > zebramap.c:406: error: too many arguments to function 'attr_find'
>> > zebramap.c:407: error: too many arguments to function 'attr_find'
>> > zebramap.c:408: error: too many arguments to function 'attr_find'
>> > zebramap.c:409: error: too many arguments to function 'attr_find'
>> > make[1]: *** [zebramap.lo] Error 1
>> > make[1]: Leaving directory `/idzebra-2.0.8/util'
>> > make: *** [install-recursive] Error 1
>> > [root at localhost idzebra-2.0.8]#
>> >
>> > make install show this error.
>> > M unable to proceed,
>> >
>> >
>> > _______________________________________________
>> > Zebralist mailing list
>> > Zebralist at lists.indexdata.dk
>> > http://lists.indexdata.dk/cgi-bin/mailman/listinfo/zebralist
>> >
>> >
>>
>> _______________________________________________
>> Zebralist mailing list
>> Zebralist at lists.indexdata.dk
>> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/zebralist
>
>
> _______________________________________________
> Zebralist mailing list
> Zebralist at lists.indexdata.dk
> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/zebralist
>
>



More information about the Zebralist mailing list