Jayad / enterprise-log-search-and-archive

Automatically exported from code.google.com/p/enterprise-log-search-and-archive
0 stars 0 forks source link

Install script broken #208

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. wget 
"http://enterprise-log-search-and-archive.googlecode.com/svn/trunk/elsa/contrib/
install.sh"
2. sh install.sh node
3.

What is the expected output? What do you see instead?

sh install.sh node fails (tested CentOS 6.5 and Debian 7.4)

What version of the product are you using? On what operating system?

Latest install script - CentOS and Debian

Please provide any additional information below.

Here is a diff of what was needed to make it work: 

diff install.sh fixed-install.sh 
< EVENTLOG_VER="0.2.12"

---
> EVENTLOG_VER="0.2.13"
470c470
<   curl 
"http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/$SYSLOG_VE
R/source/eventlog_$EVENTLOG_VER.tar.gz" > "eventlog_$EVENTLOG_VER.tar.gz" &&

---
>   curl -L 
"http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/$SYSLOG_VE
R/source/eventlog_$EVENTLOG_VER.tar.gz" > "eventlog_$EVENTLOG_VER.tar.gz" &&
483c483
<   curl 
"http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/$SYSLOG_VE
R/source/syslog-ng_$SYSLOG_VER.tar.gz" > "syslog-ng_$SYSLOG_VER.tar.gz" &&

---
>   curl -L 
"http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/$SYSLOG_VE
R/source/syslog-ng_$SYSLOG_VER.tar.gz" > "syslog-ng_$SYSLOG_VER.tar.gz" &&
486c486
<   ./configure "--prefix=$BASE_DIR/syslog-ng-$SYSLOG_VER" --enable-ipv6 && 

---
>   ./configure "--prefix=$BASE_DIR/syslog-ng" --enable-ipv6 && 
488c488
<   ln -fs "$BASE_DIR/syslog-ng-$SYSLOG_VER" "$BASE_DIR/syslog-ng" &&

---
> # ln -fs "$BASE_DIR/syslog-ng-$SYSLOG_VER" "$BASE_DIR/syslog-ng" &&

Original issue reported on code.google.com by Sigi.tur...@gmail.com on 20 Mar 2014 at 6:14

GoogleCodeExporter commented 9 years ago
Tested fix on Debiand 7.4 and CentOS - seems to work with above changes.

Original comment by Sigi.tur...@gmail.com on 20 Mar 2014 at 6:15

GoogleCodeExporter commented 9 years ago
Forgot to mention - syslog-ng 3.4.7 would not compile on CentOS 6.5 - solution 
was to patch the source:

--- modules/afsocket/afinet-dest.h.orig 2013-06-01 20:07:20.486110490 -0700
+++ modules/afsocket/afinet-dest.h 2013-06-01 20:07:48.165628435 -0700
@@ -23,7 +23,7 @@

 #ifndef AFINET_DEST_H_INCLUDED
 #define AFINET_DEST_H_INCLUDED
-
+#include <linux/types.h>
 #include "afinet.h"
 #include "afsocket-dest.h"

Original comment by Sigi.tur...@gmail.com on 20 Mar 2014 at 6:18

GoogleCodeExporter commented 9 years ago

Original comment by mchol...@gmail.com on 23 Mar 2014 at 9:47