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

mariadb-build failed on CentOS 7 #138

Closed
LoganHeinzelman opened this issue Jan 20, 2020 · 4 comments
Closed

mariadb-build failed on CentOS 7 #138

LoganHeinzelman opened this issue Jan 20, 2020 · 4 comments

Comments

@LoganHeinzelman
Copy link

[logan@server3 magma-develop]$ make all VERBOSE=yes

TARGET all
VERBOSE yes

VERSION  7.0
COMMIT  NONE
DATE  20200120.2156
HOST  Linux

Building the bundled dependencies.

Starting at 09:56:35 PM on 01/20/2020

Finished xml2-extract at 09:56:35 PM on 01/20/2020
Finished googtap-extract at 09:56:36 PM on 01/20/2020
Finished jpeg-extract at 09:56:36 PM on 01/20/2020
Finished bzip2-extract at 09:56:41 PM on 01/20/2020
Finished utf8proc-extract at 09:56:42 PM on 01/20/2020
Finished geoip-extract at 09:56:44 PM on 01/20/2020
Finished googtest-extract at 09:56:44 PM on 01/20/2020
Finished tokyocabinet-extract at 09:56:44 PM on 01/20/2020
Finished lzo-extract at 09:56:44 PM on 01/20/2020
Finished mariadb-extract at 09:56:44 PM on 01/20/2020
Finished spf2-extract at 09:56:44 PM on 01/20/2020
Finished jansson-extract at 09:56:45 PM on 01/20/2020
Finished dspam-extract at 09:56:45 PM on 01/20/2020
Finished checker-extract at 09:56:45 PM on 01/20/2020
Finished zlib-extract at 09:56:45 PM on 01/20/2020
Finished memcached-extract at 09:56:46 PM on 01/20/2020
Finished png-extract at 09:56:46 PM on 01/20/2020
Finished pcre-extract at 09:56:46 PM on 01/20/2020
Finished dkim-extract at 09:56:46 PM on 01/20/2020
Finished freetype-extract at 09:56:50 PM on 01/20/2020
Finished gd-extract at 09:56:50 PM on 01/20/2020
Finished curl-extract at 09:56:50 PM on 01/20/2020
Finished openssl-extract at 09:56:53 PM on 01/20/2020
Finished clamav-extract at 09:56:55 PM on 01/20/2020
Finished xml2-extract at 09:57:01 PM on 01/20/2020

Finished extract at 09:57:01 PM on 01/20/2020

Finished geoip-prep at 09:57:01 PM on 01/20/2020
Finished lzo-prep at 09:57:01 PM on 01/20/2020
Finished googtest-prep at 09:57:01 PM on 01/20/2020
Finished zlib-prep at 09:57:01 PM on 01/20/2020
Finished pcre-prep at 09:57:01 PM on 01/20/2020
Finished googtap-prep at 09:57:01 PM on 01/20/2020
Finished utf8proc-prep at 09:57:01 PM on 01/20/2020
Finished freetype-prep at 09:57:01 PM on 01/20/2020
Finished jpeg-prep at 09:57:01 PM on 01/20/2020
Finished mariadb-prep at 09:57:01 PM on 01/20/2020
Finished png-prep at 09:57:01 PM on 01/20/2020
Finished checker-prep at 09:57:02 PM on 01/20/2020
Finished dkim-prep at 09:57:02 PM on 01/20/2020
Finished openssl-prep at 09:57:02 PM on 01/20/2020
Finished curl-prep at 09:57:02 PM on 01/20/2020
Finished tokyocabinet-prep at 09:57:02 PM on 01/20/2020
Finished gd-prep at 09:57:02 PM on 01/20/2020
Finished dspam-prep at 09:57:02 PM on 01/20/2020
Finished jansson-prep at 09:57:02 PM on 01/20/2020
Finished xml2-prep at 09:57:02 PM on 01/20/2020
Finished spf2-prep at 09:57:02 PM on 01/20/2020
Finished bzip2-prep at 09:57:02 PM on 01/20/2020
Finished memcached-prep at 09:57:02 PM on 01/20/2020
Finished clamav-prep at 09:57:02 PM on 01/20/2020

Finished prep at 09:57:02 PM on 01/20/2020

Finished googtap-build at 09:57:02 PM on 01/20/2020
Finished bzip2-build at 09:57:13 PM on 01/20/2020
Finished zlib-build at 09:57:28 PM on 01/20/2020
Finished jansson-build at 09:58:42 PM on 01/20/2020
Finished jpeg-build at 09:59:25 PM on 01/20/2020
Finished pcre-build at 09:59:41 PM on 01/20/2020
Finished png-build at 09:59:43 PM on 01/20/2020
Finished googtest-build at 10:01:13 PM on 01/20/2020
Finished geoip-build at 10:02:19 PM on 01/20/2020
Finished lzo-build at 10:02:27 PM on 01/20/2020
Finished spf2-build at 10:02:47 PM on 01/20/2020
Finished xml2-build at 10:02:49 PM on 01/20/2020
Finished checker-build at 10:02:52 PM on 01/20/2020
Finished memcached-build at 10:08:07 PM on 01/20/2020
Finished openssl-build at 10:09:27 PM on 01/20/2020


mariadb-build failed at 10:09:27 PM on 01/20/2020


Finished tokyocabinet-build at 10:10:21 PM on 01/20/2020
Finished freetype-build at 10:10:55 PM on 01/20/2020
Finished gd-build at 10:12:00 PM on 01/20/2020
Finished dkim-build at 10:12:04 PM on 01/20/2020
Finished curl-build at 10:17:59 PM on 01/20/2020
Finished clamav-build at 10:18:01 PM on 01/20/2020


build failed at 10:18:01 PM on 01/20/2020


make: *** [magmad.so] Error 1
@turkicnomad
Copy link

What version of MariaDB is installed?

@aryanlakhani8
Copy link

I also Face this problem. i used a 10.3 version of mariadb

@turkicnomad
Copy link

turkicnomad commented Feb 11, 2020 via email

@ladar
Copy link
Member

ladar commented May 1, 2020

You need to run build.lib.sh mariadb-log to find out what went wrong. In all likelihood you're missing a build dependency like cmake or libbsd. On my giant TODO list is auditing precisely what packages/commands are required, and then adding logic to the bash script which detects this and tells the user what they need. Loosely, for CentOS 7 you try:

yum --assumeyes install valgrind valgrind-devel texinfo autoconf automake libtool \
ncurses-devel gcc-c++ libstdc++-devel gcc cloog-ppl cpp glibc-devel glibc-headers \
kernel-headers libgomp mpfr ppl perl perl-Module-Pluggable perl-Pod-Escapes \
perl-Pod-Simple perl-libs perl-version patch sysstat perl-Time-HiRes cmake \
libbsd libbsd-devel inotify-tools libarchive libevent memcached mysql \
mysql-server perl-DBI perl-DBD-MySQL git rsync perl-Git perl-Error perl-libintl \
perl-Text-Unidecode policycoreutils checkpolicy

That should get you everything used by the various tools/scripts in the repo, which means there are a few packages you don't actually need to build the server.

Also note, the bundled MariaDB connect is actually the client library magmad uses to connect with it's control database. You'll need a MySQl or MariaDB server to actually use the daemon. You can create that database using the schema.init.sh script. See this script for all the steps needed to setup a single production server. Naturally setting up a cluster is more complicated. Someday I'd like to have add a real installer. See issue #132 for some details.

https://github.com/lavabit/magma/blob/develop/dev/install/magmad.install.sh

@ladar ladar closed this as completed May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants