Comments - MariaDB Source Code
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.
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.
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.
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.
hi,
bzr has bug that prevents cheking MariaDB.
You must use source tarball instead.
joni
Simply grab a source tarball or branch lp:maria/5.5 and then run
But note cmake-settings-to-include-tokudb-in-5534
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
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?
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
try again, perhaps it's a transient error.
Or download a shared repository tarball (mariadb-shared-repo.tgz) from the link above.
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.
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:
Perhaps, it was a temporary issue.
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?
No, but you can use git-bzr to branch a bzr repository using git.
don't like performance checkout
everything done as the mysql user
then
After running the
make install, and prior to starting MariaDB, did you run themysql_install_dbscript? 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
the shell variables $repo and $maria are not set
They're just placeholders for whatever you want to fill in.
cd mariadb-5.2
This directory does not exist
This is just an example directory. The point is to
cdinto your local MariaDB source code directory and perform abzr updateprior to working with the code. I've added a comment to better indicate this.Thanks!