Comments - MariaDB Source Code

 
2 weeks ago Simon Platten

I've been trying to build the branch I checked out this morning, when I tried to build I found lots of apparent dependencies missing, which I'm trying to resolve, still struggling to get LibXml2, can anyone help, is there a more complete source download that includes dependencies ?

I want to develop plugins for an instance of MariaDB that will be specific to me.

 
2 weeks ago Sergei Golubchik

True, most of the dependencies are not included in the source tarball, this is normal.

An easy way to get all build dependencies would be to use your package manager. For example, on Fedora it would be something like sudo dnf builddep mariadb-server. See corresponding pages in this Knowledge Base.

Also, you don't necessarily need all build dependencies. Libxml2 is needed for the CONNECT engine, if you don't want CONNECT — you don't need libxml2.

 
2 weeks ago Sergei Golubchik

True, most of the dependencies are not included in the source tarball, this is normal.

An easy way to get all build dependencies would be to use your package manager. For example, on Fedora it would be something like sudo dnf builddep mariadb-server. See corresponding pages in this Knowledge Base.

Also, you don't necessarily need all build dependencies. Libxml2 is needed for the CONNECT engine, if you don't want CONNECT — you don't need libxml2.

 
10 years, 7 months ago Joni-Pekka Kurronen

hi,

bzr has bug that prevents cheking MariaDB.

You must use source tarball instead.

joni

 
10 years, 7 months ago Sergei Golubchik

Simply grab a source tarball or branch lp:maria/5.5 and then run

cmake . && make

But note cmake-settings-to-include-tokudb-in-5534

 
10 years, 9 months ago vishnu rao

While doing 'bzr init-repo maria' ...... If you face the following error on mac 10.7.5,

----------------------------------

bzr: ERROR: Couldn't import bzrlib and dependencies. Please check the directory containing bzrlib is on your PYTHONPATH.

Traceback (most recent call last): File "/usr/local/bin/bzr", line 74, in <module> import bzrlib ImportError: No module named bzrlib

----------------------------------

solution @ http://instanceof.me/post/7880963425/fixing-bazaar-for-mac-os-x-10-7-lion

 
10 years, 11 months ago Mateusz Loskot

I'm trying to checkout the trunk and getting the following bazaar error:

$ bzr branch lp:maria trunk    
The authenticity of host 'bazaar.launchpad.net (91.189.95.84)' can't be established.
RSA key fingerprint is 9d:38:3a:63:b1:d5:6f:c4:44:67:53:49:2e:ee:fc:89.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'bazaar.launchpad.net,91.189.95.84' (RSA) to the list of known hosts.
Enter passphrase for key '/home/mloskot/.ssh/id_rsa.launchpad': 
bzr: ERROR: bzrlib.errors.BzrCheckError: Internal check failed: Cannot add revision(s) to repository: missing chk node(s) for id_to_entry maps                                    
missing chk node(s) for parent_id_basename_to_file_id maps

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/builtins.py", line 1507, in run
    source_branch=br_from)
  File "/usr/lib/python2.7/site-packages/bzrlib/bzrdir.py", line 367, in sprout
    create_tree_if_local=create_tree_if_local)
  File "/usr/lib/python2.7/site-packages/bzrlib/cleanup.py", line 132, in run
    self.cleanups, self.func, self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/bzrdir.py", line 417, in _sprout
    result_repo.fetch(source_repository, fetch_spec=fetch_spec)
  File "/usr/lib/python2.7/site-packages/bzrlib/vf_repository.py", line 1268, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/usr/lib/python2.7/site-packages/bzrlib/decorators.py", line 218, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/vf_repository.py", line 2585, in fetch
    find_ghosts=find_ghosts)
  File "/usr/lib/python2.7/site-packages/bzrlib/fetch.py", line 77, in __init__
    self.__fetch()
  File "/usr/lib/python2.7/site-packages/bzrlib/fetch.py", line 104, in __fetch
    self._fetch_everything_for_search(search_result)
  File "/usr/lib/python2.7/site-packages/bzrlib/fetch.py", line 132, in _fetch_everything_for_search
    stream, from_format, [])
  File "/usr/lib/python2.7/site-packages/bzrlib/vf_repository.py", line 2051, in insert_stream
    hint = self.target_repo.commit_write_group()
  File "/usr/lib/python2.7/site-packages/bzrlib/repository.py", line 633, in commit_write_group
    result = self._commit_write_group()
  File "/usr/lib/python2.7/site-packages/bzrlib/repofmt/pack_repo.py", line 1727, in _commit_write_group
    hint = self._pack_collection._commit_write_group()
  File "/usr/lib/python2.7/site-packages/bzrlib/repofmt/pack_repo.py", line 1607, in _commit_write_group
    "Cannot add revision(s) to repository: " + problems_summary)
BzrCheckError: Internal check failed: Cannot add revision(s) to repository: missing chk node(s) for id_to_entry maps
missing chk node(s) for parent_id_basename_to_file_id maps

bzr 2.6.0 on python 2.7.5 (Linux-3.11.1-1-ARCH-x86_64-with-glibc2.2.5)
arguments: ['/usr/bin/bzr', 'branch', 'lp:maria', 'trunk']
plugins: bash_completion[2.6.0], changelog_merge[2.6.0], grep[2.6.0],
    launchpad[2.6.0], netrc_credential_store[2.6.0], news_merge[2.6.0],
    po_merge[2.6.0], weave_fmt[2.6.0]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'

*** Bazaar has encountered an internal error.  This probably indicates a
    bug in Bazaar.  You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

Does it indicate a corrupted repository, interrupted checkout stream or local environment issues? How to work around it?

 
10 years, 10 months ago Ben Hiles

I'm getting the same issue with bzr 2.5.1 and bzr 2.6 in windows. Any suggestions?

I found this bug report.

https://bugs.launchpad.net/bzr/+bug/1226897

 
10 years, 10 months ago Sergei Golubchik

try again, perhaps it's a transient error.

Or download a shared repository tarball (mariadb-shared-repo.tgz) from the link above.

 
10 years, 11 months ago Sergei Golubchik

I've just tried your exact command, and it branched the tree successfully for me. But I have bzr 2.5.1.

Either it's a bug in bzr 2.6.0, or launchpad problems — I wasn't able to branch or push yesterday for like half an hour, with strange bzr errors. Then it worked.

 
10 years, 11 months ago Mateusz Loskot

I've just tried once again on different laptop, but with the same Arch Linux 64-bit environment and bazaar 2.6.0 installed and it's successfully pulled the repository:

$ bzr branch lp:maria trunk
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
Branched 3819 revisions.

Perhaps, it was a temporary issue.

 
10 years, 11 months ago Mateusz Loskot

I've repeated the procedure (init, branch) a few times and each time, the same error occured.

Isn't there an official Git (at GitHub?) repository mirror, really?

 
10 years, 11 months ago Sergei Golubchik

No, but you can use git-bzr to branch a bzr repository using git.

 
11 years, 8 months ago Denis Alex

don't like performance checkout

 
13 years, 2 months ago Pete Lancashire

everything done as the mysql user

bzr branch lp:maria trunk

then

./BUILD//compile-pentium64-max

make install

 ./bin/mysqld_safe --user=mysql
110707 15:13:09 mysqld_safe Logging to '/data1/mariadb/bts-info.rose.portland.local.err'.
110707 15:13:09 mysqld_safe Starting mysqld daemon with databases from /data1/mariadb
110707 15:13:09 mysqld_safe mysqld from pid file /data1/mariadb/bts-info.rose.portland.local.pid ended

cat bts-info.rose.portland.local.err 
110707 15:13:09 mysqld_safe Starting mysqld daemon with databases from /data1/mariadb
110707 15:13:09 [Note] PrimeBase XT (PBXT) Engine 1.0.11-7 Pre-GA loaded...
110707 15:13:09 [Note] Paul McCullagh, PrimeBase Technologies GmbH, http://www.primebase.org
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use GCC atomic builtins
InnoDB: Compressed tables use zlib 1.2.3
110707 15:13:09  InnoDB: Initializing buffer pool, size = 128.0M
110707 15:13:09  InnoDB: Completed initialization of buffer pool
110707 15:13:09  InnoDB: highest supported file format is Barracuda.
110707 15:13:09 Percona XtraDB (http://www.percona.com) 1.0.15-12.7 started; log sequence number 45356
110707 15:13:09 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
110707 15:13:09 [Note] Recovering after a crash using mysql-bin
110707 15:13:09 [Note] Starting crash recovery...
110707 15:13:09 [Note] Crash recovery finished.
110707 15:13:09 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
110707 15:13:09 mysqld_safe mysqld from pid file /data1/mariadb/bts-info.rose.portland.local.pid ended
 
13 years, 2 months ago Daniel Bartholomew

After running the make install, and prior to starting MariaDB, did you run the mysql_install_db script? Some of the errors make it seem like there are some things missing.

See the Generic Build Instructions page for some more details.

You might also want to look at Running MariaDB from the Source Directory

 
13 years, 2 months ago Pete Lancashire

the shell variables $repo and $maria are not set

 
13 years, 2 months ago Daniel Bartholomew

They're just placeholders for whatever you want to fill in.

 
13 years, 2 months ago Pete Lancashire

cd mariadb-5.2

This directory does not exist

 
13 years, 2 months ago Daniel Bartholomew

This is just an example directory. The point is to cd into your local MariaDB source code directory and perform a bzr update prior to working with the code. I've added a comment to better indicate this.

Thanks!

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.