banner

[Rule] Rules  [Home] Main Forum  [Portal] Portal  
[Members] Member Listing  [Statistics] Statistics  [Search] Search  [Reading Room] Reading Room 
[Register] Register  
[Login] Loginhttp  | https  ]
 
Forum Index Thảo luận hệ điều hành *nix Lỗi cài snort_inline trên CentOs 6.4 - liên quan mysql  XML
  [Question]   Lỗi cài snort_inline trên CentOs 6.4 - liên quan mysql 28/11/2013 23:59:23 (+0700) | #1 | 279104
duyvu09
Member

[Minus]    0    [Plus]
Joined: 08/01/2011 07:07:08
Messages: 33
Offline
[Profile] [PM]
Chào mọi người.
Mình đang gặp một số vấn đề về cài đặt snort_inline trên CentOs 6.4
Mình làm theo trang http://openmaniak.com/inline_oink.php (trang này hướng dẫn theo Ubuntu LTS 6.06), tất nhiên khi cài các gói mình sử dụng yum install <name of package>, và một số gói có tên gọi khác bên CentOS, cũng có một số gói không mà mình không tìm thấy (như là libmysqlclient12-dev), và mình cũng bỏ qua bước thêm các rules bằng Oinkmastes. Khi đến bước cài đặt snort_inline mình cài như sau
#./configure –with-mysql-libraries=/usr/lib64/mysql/ && make && make install
thì mọi thứ đều bình thường nhưng khi khởi chạy snort_inline với lệnh sau:
#snort_inline -Q -v -c /etc/snort_inline/snort_inline.conf -l /var/log/snort_inline
thì gặp lỗi như sau (liên quan đến mysql)




Lỗi bằng chữ (trong trường hợp hình không hiển thị được!):
database: compiled support for ()
database: configured to use MySQL
database: 'mysql' support is not compiled into this build of snort

ERROR: If this build of snort was obtained as a binary distribution (e.g., rpm, or Window), then check for alternate builds that contains the necessary 'mysql' support
........


Mình đã tìm kiếm trên mạng, nhưng không tìm được cách giải quyết (có thể tìm chưa ra!), nên mong mọi người giúp đỡ smilie
[Up] [Print Copy]
  [Question]   Lỗi cài snort_inline trên CentOs 6.4 - liên quan mysql 30/11/2013 10:42:27 (+0700) | #2 | 279112
duyvu09
Member

[Minus]    0    [Plus]
Joined: 08/01/2011 07:07:08
Messages: 33
Offline
[Profile] [PM]
Mình thấy lượng xem cũng khá nhiều, mong mọi ngươi giúp mình, hoặc đưa ra lời khuyên smilie (ví dụ nên chọn Ubuntu thay vì CentOs,...). À lí do mình chọn CentOs là vì hiện tại mình đang học trên nó, và cũng khá thích nó, và muốn thông thạo hơn về nó smilie
[Up] [Print Copy]
  [Question]   Lỗi cài snort_inline trên CentOs 6.4 - liên quan mysql 02/12/2013 11:26:29 (+0700) | #3 | 279121
[Avatar]
Ky0
Moderator

Joined: 16/08/2009 23:09:08
Messages: 532
Offline
[Profile] [PM]
- Bạn đã tạo cơ sở dữ liệu và user cho Snort trong MySQL chưa?
- Bạn đã khai báo username/password/database trong file cấu hình của snort (thường là /etc/snort_inline/snort_inline.conf) ?
Bạn xem lại phần hướng dẫn ở http://openmaniak.com/inline_tutorial.php có thiếu bước nào không nhé!

- Phần nữa nếu trên CentOS thì bạn phải cài các gói sau: mysql, mysql-devel, mysql-lib.Trên CentOS không có gói libmysqlclient12-dev nhé bạn.

- Ky0 -
UITNetwork.com
Let's Connect
[Up] [Print Copy]
  [Question]   Lỗi cài snort_inline trên CentOs 6.4 - liên quan mysql 02/12/2013 19:35:26 (+0700) | #4 | 279131
duyvu09
Member

[Minus]    0    [Plus]
Joined: 08/01/2011 07:07:08
Messages: 33
Offline
[Profile] [PM]
- Mình đã tạo cơ sở dữ liệu và user cho Snort trong MySQL rồi, và cũng khai báo "
output database: log, mysql, user=snortuser password=snortpassword dbname=snort host=localhost" trong file cấu hình rồi.

- Mình đã cài các gói mysql-bench, mysql-server, mysql-devel và mysql, khi chạy ./configure --with-mysql thì sẽ bị lỗi "ERROR: unable to find mysql headers (mysql.h)" (do thiếu libmysqlclient12-dev) và giải quyết bằng cách ./configure --with-mysql-libraries=/usr/lib64/mysql.

- À cho mình hỏi trên trang http://snort-inline.sourceforge.net/download.html có 3 hình thức khác nhau: source code, statically compiled binary, và patch, 3 loại này khác nhau cái gì nhỉ?, statically compiled binary có dòng đầu tiên ghi "(with-mysql)"?. Mình thì tải bản đầu tiên của source code.
Cảm ơn bạn.
[Up] [Print Copy]
  [Question]   Lỗi cài snort_inline trên CentOs 6.4 - liên quan mysql 03/12/2013 11:36:49 (+0700) | #5 | 279134
[Avatar]
Ky0
Moderator

Joined: 16/08/2009 23:09:08
Messages: 532
Offline
[Profile] [PM]

duyvu09 wrote:
- Mình đã tạo cơ sở dữ liệu và user cho Snort trong MySQL rồi, và cũng khai báo "
output database: log, mysql, user=snortuser password=snortpassword dbname=snort host=localhost" trong file cấu hình rồi.

- Mình đã cài các gói mysql-bench, mysql-server, mysql-devel và mysql, khi chạy ./configure --with-mysql thì sẽ bị lỗi "ERROR: unable to find mysql headers (mysql.h)" (do thiếu libmysqlclient12-dev) và giải quyết bằng cách ./configure --with-mysql-libraries=/usr/lib64/mysql.

- À cho mình hỏi trên trang http://snort-inline.sourceforge.net/download.html có 3 hình thức khác nhau: source code, statically compiled binary, và patch, 3 loại này khác nhau cái gì nhỉ?, statically compiled binary có dòng đầu tiên ghi "(with-mysql)"?. Mình thì tải bản đầu tiên của source code.
Cảm ơn bạn. 

=> Đá nói là trên CentOS không có gói libmysqlclient12-dev rồi mà smilie , để sử dụng được thì chỉ cần cài gói mysql-lib.

Đưa kết quả lệnh sau lên đây:
Code:
rpm -qa|grep mysql
UITNetwork.com
Let's Connect
[Up] [Print Copy]
  [Question]   Lỗi cài snort_inline trên CentOs 6.4 - liên quan mysql 03/12/2013 20:32:12 (+0700) | #6 | 279139
duyvu09
Member

[Minus]    0    [Plus]
Joined: 08/01/2011 07:07:08
Messages: 33
Offline
[Profile] [PM]
- Xin lỗi bạn!, do mình diễn đạt không rõ (hoặc dùng nhầm từ khiến bạn hiểu nhầm!), ý mình cũng là không có gói libmysqlclient12-dev trên CentOS, nên chạy ./configure --with-mysql bị lỗi "unable to find mysqlclient library ", và mình theo hướng dẫn trang này để sửa lỗi: http://techinterplay.com/how-to-fix-the-error-unable-to-find-mysqlclient-library-libmysqlclient.html (là chạy dòng configure như bài trước mình đã nói).

- Còn đây là kết quả chạy rpm -qa | grep mysql



[Up] [Print Copy]
[digg] [delicious] [google] [yahoo] [technorati] [reddit] [stumbleupon]
Go to: 
 Users currently in here 
1 Anonymous

Powered by JForum - Extended by HVAOnline
 hvaonline.net  |  hvaforum.net  |  hvazone.net  |  hvanews.net  |  vnhacker.org
1999 - 2013 © v2012|0504|218|