Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install.sh doesn't work on debian stretch. #52

Open
nate-byrnes opened this issue Jun 28, 2017 · 0 comments
Open

install.sh doesn't work on debian stretch. #52

nate-byrnes opened this issue Jun 28, 2017 · 0 comments

Comments

@nate-byrnes
Copy link

nate-byrnes commented Jun 28, 2017

Stretch switched from mysql to mariadb for all mysql related packages etc. I was able to progress to a point by past the first two blocks of errors with:

  • apt install libmariadbclient-dev this got me to have mysql_config in place
  • apt install mariadb-server got me the mysql user
  • also needed to run apt install syslog-ng, even though it seems we try to compile it from source...

The first error encountered when running contrib/install.sh node is:

--> Working on DBD::mysql
Fetching http://www.cpan.org/authors/id/M/MI/MICHIELB/DBD-mysql-4.042.tar.gz ... OK
Configuring DBD-mysql-4.042 ... N/A
! Configure failed for DBD-mysql-4.042. See /root/.cpanm/work/1498578041.30211/build.log for details.

the build log shows:

Running Makefile.PL
Can't exec "mysql_config": No such file or directory at Makefile.PL line 87.

Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
not contain the path to mysql_config. Resorting to guessed values!


PLEASE NOTE:

For 'make test' to run properly, you must ensure that the
database user 'root' can connect to your MySQL server
and has the proper privileges that these tests require such
as 'drop table', 'create table', 'drop procedure', 'create procedure'
as well as others.

mysql> grant all privileges on test.* to 'root'@'localhost' identified by 's3kr1t';

You can also optionally set the user to run 'make test' with:

perl Makefile.PL --testuser=username

Can't exec "mysql_config": No such file or directory at Makefile.PL line 574.
Failed to determine directory of mysql.h. Use

  perl Makefile.PL --cflags=-I<dir>

to set this directory. For details see DBD::mysql::INSTALL,
section "C Compiler flags" or type

  perl Makefile.PL --help
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
-> N/A
-> FAIL Configure failed for DBD-mysql-4.042. See /root/.cpanm/work/1498578041.30211/build.log for details.

However, after fixing the above as mentioned earlier, syslog-ng fails to compile with the following error:

In file included from /usr/include/openssl/bn.h:31:0,
                 from /usr/include/openssl/asn1.h:24,
                 from /usr/include/openssl/objects.h:916,
                 from /usr/include/openssl/evp.h:27,
                 from /usr/include/openssl/x509.h:23,
                 from /usr/include/openssl/ssl.h:50,
                 from tlscontext.h:31,
                 from tlscontext.c:24:
/usr/include/openssl/asn1.h:553:1: note: declared here
 DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
 ^
Makefile:910: recipe for target 'libsyslog_ng_crypto_la-tlscontext.lo' failed
make[4]: *** [libsyslog_ng_crypto_la-tlscontext.lo] Error 1
make[4]: Leaving directory '/tmp/syslog-ng-3.4.7/lib'
Makefile:1517: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/tmp/syslog-ng-3.4.7/lib'
Makefile:679: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/tmp/syslog-ng-3.4.7/lib'
Makefile:514: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/syslog-ng-3.4.7'
Makefile:418: recipe for target 'all' failed
make: *** [all] Error 2
build_syslogng success
Executing set_syslogng_conf
Updating syslog-ng.conf...
contrib/install.sh: 825: contrib/install.sh: /usr/local/syslog-ng/bin/pdbtool: not found
contrib/install.sh: 827: contrib/install.sh: /usr/local/syslog-ng/bin/pdbtool: not found
contrib/install.sh: 848: contrib/install.sh: cannot create /usr/local/syslog-ng/etc/syslog-ng.conf: Directory nonexistent
set_syslogng_conf FAIL

Any suggestions on how I might be able to get this to proceed beyond this point?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant