Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
I am trying to install the IDS component barnyard2 on RHEL 5. I am following the snort enterprise insall document by Patrick Harper. For installing barnyard, after the tar command ...
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    38

    Trying to ./configure.....

    I am trying to install the IDS component barnyard2 on RHEL 5.

    I am following the snort enterprise insall document by Patrick Harper.

    For installing barnyard, after the tar command it says to perform a ./configure --enable-mysql

    The --enable-mysql does not work:
    configure: WARNING: unrecognized options: --enable-mysql

    --with-mysql does work. Is there a difference?

    Next, using --with-mysql, I get a failure at the end:

    ERROR! Libpcap library/headers (libpcap.a (or .so)/pcap.h)
    not found, go get it from Open Source and Linux Forums dot tcpdump dot org TCPDUMP/LIBPCAP public repository
    or use the --with-libpcap-* options, if you have it installed
    in unusual place. Also check if your libpcap depends on another
    shared library that may be installed in an unusual place

    I do a find / -name libpcap* and get:

    /usr/share/doc/libpcap-0.9.4
    /usr/lib/libpcap.so.0.9.4
    /usr/lib/libpcap.so.0
    /usr/lib/libpcap.so.0.9
    /usr/lib64/libpcap.so.0.9.4
    /usr/lib64/libpcap.so.0
    /usr/lib64/libpcap.so.0.9

    How do I tell the configure to use one of the above? I don't understand how to use the --with-libpcap-* option?

    Thanks,

    Ray

  2. #2
    Linux Newbie JosePF's Avatar
    Join Date
    Jun 2010
    Posts
    225
    Hi,
    i dont know nothing about barnyard2 but i think that problem in installation is that you have to install libcap-dev package. This file contains headers
    ERROR! Libpcap library/headers (libpcap.a (or .so)/pcap.h)
    .

    I hope this can help you
    Regards
    There are people trying to avoid mistakes and another that tries to target.

  3. #3
    Just Joined!
    Join Date
    Sep 2010
    Posts
    38
    Quote Originally Posted by JosePF View Post
    Hi,
    i dont know nothing about barnyard2 but i think that problem in installation is that you have to install libcap-dev package. This file contains headers .

    I hope this can help you
    Regards

    dep of libpcap-devel is libpcap.

    I get this:

    [root@sguil01.root sguil]# rpm -ihv libpcap-0.9.4-15.el5.x86_64.rpm
    Preparing... ########################################### [100%]
    file /usr/lib64/libpcap.so.0.9.4 from install of libpcap-0.9.4-15.el5.x86_64 conflicts with file from package libpcap-0.9.4-14.el5.x86_64
    [root@sguil01.root sguil]#

    Arrrrggggg

    Ray

  4. #4
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    file /usr/lib64/libpcap.so.0.9.4 from install of libpcap-0.9.4-15.el5.x86_64 conflicts with file from package libpcap-0.9.4-14.el5.x86_64
    So libpcap is already installed. Now install the devel package - it's on the RHEL media:

    Code:
    /Server/libpcap-devel-0.9.4-14.el5.x86_64.rpm

  5. #5
    Just Joined!
    Join Date
    Sep 2010
    Posts
    38
    Ok, this time a little different error:

    [root@sguil01.root barnyard2-1.8]# ./configure --with-mysql

    After a ton of checking outputs, I get:


    **********************************************
    ERROR: unable to find mysql headers (mysql.h)
    checked in the following places
    /usr
    /usr/include
    /usr/include/mysql
    /usr/mysql
    /usr/mysql/include
    /usr/local
    /usr/local/include
    /usr/local/include/mysql
    /usr/local/mysql
    /usr/local/mysql/include
    **********************************************

    So I think, I'll try installing mysql-devel...that should fix it...but nooooo:

    [root@sguil01.root sguil]# yum localinstall mysql-devel-5.0.77-4.el5_5.3.x86_64.rpm
    Loaded plugins: security
    Setting up Local Package Process
    Examining mysql-devel-5.0.77-4.el5_5.3.x86_64.rpm: mysql-devel-5.0.77-4.el5_5.3.x86_64
    Marking mysql-devel-5.0.77-4.el5_5.3.x86_64.rpm to be installed
    Resolving Dependencies
    --> Running transaction check
    ---> Package mysql-devel.x86_64 0:5.0.77-4.el5_5.3 set to be updated
    --> Processing Dependency: openssl-devel for package: mysql-devel
    --> Finished Dependency Resolution
    mysql-devel-5.0.77-4.el5_5.3.x86_64 from /mysql-devel-5.0.77-4.el5_5.3.x86_64 has depsolving problems
    --> Missing Dependency: openssl-devel is needed by package mysql-devel-5.0.77-4.el5_5.3.x86_64 (/mysql-devel-5.0.77-4.el5_5.3.x86_64)
    Error: Missing Dependency: openssl-devel is needed by package mysql-devel-5.0.77-4.el5_5.3.x86_64 (/mysql-devel-5.0.77-4.el5_5.3.x86_64)


    But openssl is installed:

    [root@sguil01.root sguil]# rpm -aq | grep -i openssl
    pyOpenSSL-0.6-1.p24.7.2.2
    openssl-0.9.8e-12.el5
    openssl-0.9.8e-12.el5
    [root@sguil01.root sguil]#

    Now what?

    Thanks,

    Ray

  6. #6
    Linux Newbie JosePF's Avatar
    Join Date
    Jun 2010
    Posts
    225
    ERROR:
    openssl-devel is needed by package mysql-devel...
    You need openssl-devel too
    You can install a package without his headers. Headers are used when you compile but are not needed to run a program.
    configure file creates a makefile -> then you run make (this compile it) and finally make install that cp files into your system (like a win installer).

    .Rpm or .deb packages contain already compiled programs and have information about where and how install application and also about dependencies that have to satisfy (automatically resolved by package manager).

    When you install a program from sources, configure file search this dependencies and say you if there is some unmet dependencie.

    Regards
    Last edited by JosePF; 09-24-2010 at 05:22 PM.
    There are people trying to avoid mistakes and another that tries to target.

  7. #7
    Just Joined!
    Join Date
    Sep 2010
    Posts
    38
    Now trying to install dependencies for krb5-devel...

    Is there an easier way to do this? There are a ton of deendencies...

    Thanks,

    Ray

  8. #8
    Just Joined!
    Join Date
    Sep 2010
    Posts
    38
    Quote Originally Posted by RayAID View Post
    Now trying to install dependencies for krb5-devel...

    Is there an easier way to do this? There are a ton of deendencies...

    Thanks,

    Ray
    So when I try to install openssl-devel, a dependency is krb5-devel!
    Now when I try to install krb5-devel, another ton of dependencies pop up!

    This seems endless and fruitless!!!

    Is this natural? Why can't it be simpler???

    Thanks,

    A frustrated Ray.....

  9. #9
    Linux Newbie JosePF's Avatar
    Join Date
    Jun 2010
    Posts
    225
    Hi,
    try to search in Internet a rpm package...

    Good luck!
    There are people trying to avoid mistakes and another that tries to target.

  10. #10
    Just Joined!
    Join Date
    Sep 2010
    Posts
    38
    Quote Originally Posted by JosePF View Post
    Hi,
    try to search in Internet a rpm package...

    Good luck!

    I've been doing this seems like all day for one installation!

    Now this:

    yum localinstall krb5-libs-1.6.1-36.el5_5.5.x86_64.rpm
    Loaded plugins: security
    Setting up Local Package Process
    Examining krb5-libs-1.6.1-36.el5_5.5.x86_64.rpm: krb5-libs-1.6.1-36.el5_5.5.x86_64
    Marking krb5-libs-1.6.1-36.el5_5.5.x86_64.rpm as an update to krb5-libs-1.6.1-36.el5.x86_64
    Marking krb5-libs-1.6.1-36.el5_5.5.x86_64.rpm as an update to krb5-libs-1.6.1-36.el5.i386
    Resolving Dependencies
    --> Running transaction check
    --> Processing Dependency: libdes425.so.3 for package: pam_krb5
    --> Processing Dependency: libgssapi_krb5.so.2 for package: cups-libs
    --> Processing Dependency: libgssapi_krb5.so.2 for package: openssl
    --> Processing Dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT) for package: cups-libs
    --> Processing Dependency: libk5crypto.so.3 for package: pam_krb5
    --> Processing Dependency: libk5crypto.so.3 for package: cups-libs
    --> Processing Dependency: libk5crypto.so.3 for package: openssl
    --> Processing Dependency: libk5crypto.so.3(k5crypto_3_MIT) for package: openssl
    --> Processing Dependency: libkrb4.so.2 for package: pam_krb5
    --> Processing Dependency: libkrb4.so.2(krb4_2_MIT) for package: pam_krb5
    --> Processing Dependency: libkrb5.so.3 for package: pam_krb5
    --> Processing Dependency: libkrb5.so.3 for package: cups-libs
    --> Processing Dependency: libkrb5.so.3 for package: openssl
    --> Processing Dependency: libkrb5.so.3(krb5_3_MIT) for package: pam_krb5
    --> Processing Dependency: libkrb5.so.3(krb5_3_MIT) for package: openssl
    --> Processing Dependency: krb5-libs = 1.6.1-36.el5 for package: krb5-workstation
    --> Processing Dependency: krb5-libs = 1.6.1-36.el5 for package: krb5-workstation
    ---> Package krb5-libs.x86_64 0:1.6.1-36.el5_5.5 set to be updated
    --> Finished Dependency Resolution
    openssl-0.9.8e-12.el5.i686 from installed has depsolving problems
    --> Missing Dependency: libkrb5.so.3(krb5_3_MIT) is needed by package openssl-0.9.8e-12.el5.i686 (installed)
    pam_krb5-2.2.14-10.i386 from installed has depsolving problems
    --> Missing Dependency: libdes425.so.3 is needed by package pam_krb5-2.2.14-10.i386 (installed)
    1:cups-libs-1.3.7-11.el5.i386 from installed has depsolving problems
    --> Missing Dependency: libkrb5.so.3 is needed by package 1:cups-libs-1.3.7-11.el5.i386 (installed)
    1:cups-libs-1.3.7-11.el5.i386 from installed has depsolving problems
    --> Missing Dependency: libk5crypto.so.3 is needed by package 1:cups-libs-1.3.7-11.el5.i386 (installed)
    1:cups-libs-1.3.7-11.el5.i386 from installed has depsolving problems
    --> Missing Dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT) is needed by package 1:cups-libs-1.3.7-11.el5.i386 (installed)
    pam_krb5-2.2.14-10.i386 from installed has depsolving problems
    --> Missing Dependency: libkrb5.so.3(krb5_3_MIT) is needed by package pam_krb5-2.2.14-10.i386 (installed)
    openssl-0.9.8e-12.el5.i686 from installed has depsolving problems
    --> Missing Dependency: libgssapi_krb5.so.2 is needed by package openssl-0.9.8e-12.el5.i686 (installed)
    pam_krb5-2.2.14-10.i386 from installed has depsolving problems
    --> Missing Dependency: libkrb4.so.2(krb4_2_MIT) is needed by package pam_krb5-2.2.14-10.i386 (installed)
    pam_krb5-2.2.14-10.i386 from installed has depsolving problems
    --> Missing Dependency: libkrb4.so.2 is needed by package pam_krb5-2.2.14-10.i386 (installed)
    1:cups-libs-1.3.7-11.el5.i386 from installed has depsolving problems
    --> Missing Dependency: libgssapi_krb5.so.2 is needed by package 1:cups-libs-1.3.7-11.el5.i386 (installed)
    pam_krb5-2.2.14-10.i386 from installed has depsolving problems
    --> Missing Dependency: libk5crypto.so.3 is needed by package pam_krb5-2.2.14-10.i386 (installed)
    krb5-workstation-1.6.1-36.el5.x86_64 from installed has depsolving problems
    --> Missing Dependency: krb5-libs = 1.6.1-36.el5 is needed by package krb5-workstation-1.6.1-36.el5.x86_64 (installed)
    pam_krb5-2.2.14-10.i386 from installed has depsolving problems
    --> Missing Dependency: libkrb5.so.3 is needed by package pam_krb5-2.2.14-10.i386 (installed)
    openssl-0.9.8e-12.el5.i686 from installed has depsolving problems
    --> Missing Dependency: libk5crypto.so.3 is needed by package openssl-0.9.8e-12.el5.i686 (installed)
    openssl-0.9.8e-12.el5.i686 from installed has depsolving problems
    --> Missing Dependency: libkrb5.so.3 is needed by package openssl-0.9.8e-12.el5.i686 (installed)
    openssl-0.9.8e-12.el5.i686 from installed has depsolving problems
    --> Missing Dependency: libk5crypto.so.3(k5crypto_3_MIT) is needed by package openssl-0.9.8e-12.el5.i686 (installed)
    Error: Missing Dependency: libk5crypto.so.3(k5crypto_3_MIT) is needed by package openssl-0.9.8e-12.el5.i686 (installed)
    Error: Missing Dependency: libgssapi_krb5.so.2 is needed by package openssl-0.9.8e-12.el5.i686 (installed)
    Error: Missing Dependency: libk5crypto.so.3 is needed by package openssl-0.9.8e-12.el5.i686 (installed)
    Error: Missing Dependency: libkrb4.so.2(krb4_2_MIT) is needed by package pam_krb5-2.2.14-10.i386 (installed)
    Error: Missing Dependency: libkrb5.so.3 is needed by package 1:cups-libs-1.3.7-11.el5.i386 (installed)
    Error: Missing Dependency: krb5-libs = 1.6.1-36.el5 is needed by package krb5-workstation-1.6.1-36.el5.x86_64 (installed)
    Error: Missing Dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT) is needed by package 1:cups-libs-1.3.7-11.el5.i386 (installed)
    Error: Missing Dependency: libkrb4.so.2 is needed by package pam_krb5-2.2.14-10.i386 (installed)
    Error: Missing Dependency: libk5crypto.so.3 is needed by package pam_krb5-2.2.14-10.i386 (installed)
    Error: Missing Dependency: libk5crypto.so.3 is needed by package 1:cups-libs-1.3.7-11.el5.i386 (installed)
    Error: Missing Dependency: libkrb5.so.3(krb5_3_MIT) is needed by package pam_krb5-2.2.14-10.i386 (installed)
    Error: Missing Dependency: libkrb5.so.3(krb5_3_MIT) is needed by package openssl-0.9.8e-12.el5.i686 (installed)
    Error: Missing Dependency: libdes425.so.3 is needed by package pam_krb5-2.2.14-10.i386 (installed)
    Error: Missing Dependency: libkrb5.so.3 is needed by package openssl-0.9.8e-12.el5.i686 (installed)
    Error: Missing Dependency: libkrb5.so.3 is needed by package pam_krb5-2.2.14-10.i386 (installed)
    Error: Missing Dependency: libgssapi_krb5.so.2 is needed by package 1:cups-libs-1.3.7-11.el5.i386 (installed)
    You could try using --skip-broken to work around the problem
    You could try running: package-cleanup --problems
    package-cleanup --dupes
    rpm -Va --nofiles --nodigest
    The program package-cleanup is found in the yum-utils package.



    Where are these dependencies located?

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...