GithubHelp home page GithubHelp logo

Comments (7)

fungo avatar fungo commented on April 24, 2024

请在 cmake 参数中添加 -DWITH_TOKUDB_STORAGE_ENGINE=1 ,可以参考下这里 AliSQL 源码编译

from alisql.

mg0324 avatar mg0324 commented on April 24, 2024

额,这样啊。不是蛮熟悉linux的cmake,这个博客还可以。你是alisql官方的吗?就快弄个社区,官网什么的吧。不要开源建立在口头上。

from alisql.

mg0324 avatar mg0324 commented on April 24, 2024

加上了你说的参数,编译报错,在max os 10.11

CMake Warning (dev) at storage/tokudb/ft-index/portability/CMakeLists.txt:22 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

The dependency target "build_jemalloc" of target
"tokuportability_static_conv" does not exist.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev):
Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
--help-policy CMP0042" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

MACOSX_RPATH is not specified for the following targets:

ft
locktree
tokufractaltree
tokuportability
util

This warning is for project developers. Use -Wno-dev to suppress it.

from alisql.

dravenk avatar dravenk commented on April 24, 2024

阿里数据库的官网,不过更新很慢http://mysql.taobao.org/index.php?title=%E9%A6%96%E9%A1%B5

from alisql.

fungo avatar fungo commented on April 24, 2024

@mg0324
TokuDB 目前只支持 GNU/Linux(64 bit) 系统,Mac OS 和 Windows 系统是不支持的。

@mg0324 @drakven
还可以关注下我们的《数据库内核月报》月刊,每月都会有更新。

from alisql.

mg0324 avatar mg0324 commented on April 24, 2024

买了个aliyun的ecs服务器,系统是centos7镜像。编译安装alisql成功,但是在执行安装数据库脚本报错:
[root@iZwz9fu4aqltf1hgo4pc1zZ alisql]# scripts/mysql_install_db
Installing MySQL system tables...2016-11-16 18:28:32 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-11-16 18:28:32 0 [Note] ./bin/mysqld (mysqld 5.6.32) starting as process 9485 ...
Transparent huge pages are enabled, according to /sys/kernel/mm/transparent_hugepage/enabled
2016-11-16 18:28:32 9485 [ERROR] TokuDB: Huge pages are enabled, disable them before continuing

2016-11-16 18:28:32 9485 [ERROR] ************************************************************
2016-11-16 18:28:32 9485 [ERROR]
2016-11-16 18:28:32 9485 [ERROR] @@@@@@@@@@@
2016-11-16 18:28:32 9485 [ERROR] @@' '@@
2016-11-16 18:28:32 9485 [ERROR] @@ _ _ @@
2016-11-16 18:28:32 9485 [ERROR] | (.) (.) |
2016-11-16 18:28:32 9485 [ERROR] | ` |
2016-11-16 18:28:32 9485 [ERROR] | > ' |
2016-11-16 18:28:32 9485 [ERROR] | .----. |
2016-11-16 18:28:32 9485 [ERROR] .. |.----.| ..
2016-11-16 18:28:32 9485 [ERROR] .. ' ' ..
2016-11-16 18:28:32 9485 [ERROR] .._______,.
2016-11-16 18:28:32 9485 [ERROR]
2016-11-16 18:28:32 9485 [ERROR] TokuDB will not run with transparent huge pages enabled.
2016-11-16 18:28:32 9485 [ERROR] Please disable them to continue.
2016-11-16 18:28:32 9485 [ERROR](echo never > /sys/kernel/mm/transparent_hugepage/enabled)
2016-11-16 18:28:32 9485 [ERROR]
2016-11-16 18:28:32 9485 [ERROR] ************************************************************
2016-11-16 18:28:32 9485 [ERROR] Plugin 'TokuDB' init function returned error.
2016-11-16 18:28:32 9485 [ERROR] Plugin 'TokuDB' registration as a STORAGE ENGINE failed.
2016-11-16 18:28:32 9485 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-11-16 18:28:32 9485 [Note] InnoDB: The InnoDB memory heap is disabled
2016-11-16 18:28:32 9485 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-11-16 18:28:32 9485 [Note] InnoDB: Memory barrier is not used
2016-11-16 18:28:32 9485 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-11-16 18:28:32 9485 [Note] InnoDB: Using CPU crc32 instructions
2016-11-16 18:28:32 9485 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-11-16 18:28:32 9485 [Note] InnoDB: Completed initialization of buffer pool
2016-11-16 18:28:32 9485 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2016-11-16 18:28:32 9485 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2016-11-16 18:28:32 9485 [Note] InnoDB: Database physically writes the file full: wait...
2016-11-16 18:28:32 9485 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2016-11-16 18:28:34 9485 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2016-11-16 18:28:35 9485 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2016-11-16 18:28:35 9485 [Warning] InnoDB: New log files created, LSN=45781
2016-11-16 18:28:35 9485 [Note] InnoDB: Doublewrite buffer not found: creating new
2016-11-16 18:28:35 9485 [Note] InnoDB: Doublewrite buffer created
2016-11-16 18:28:35 9485 [Note] InnoDB: 128 rollback segment(s) are active.
2016-11-16 18:28:35 9485 [Warning] InnoDB: Creating foreign key constraint system tables.
2016-11-16 18:28:35 9485 [Note] InnoDB: Foreign key constraint system tables created
2016-11-16 18:28:35 9485 [Note] InnoDB: Creating tablespace and datafile system tables.
2016-11-16 18:28:35 9485 [Note] InnoDB: Tablespace and datafile system tables created.
2016-11-16 18:28:35 9485 [Note] InnoDB: Waiting for purge to start
2016-11-16 18:28:35 9485 [Note] InnoDB: 5.6.32 started; log sequence number 0
2016-11-16 18:28:35 9485 [ERROR] Failed to initialize plugins.
2016-11-16 18:28:35 9485 [ERROR] Aborting

2016-11-16 18:28:35 9485 [Note] Binlog end
2016-11-16 18:28:35 9485 [Note] InnoDB: FTS optimize thread exiting.
2016-11-16 18:28:35 9485 [Note] InnoDB: Starting shutdown...
2016-11-16 18:28:36 9485 [Note] InnoDB: Shutdown completed; log sequence number 1600607
2016-11-16 18:28:36 9485 [Note] ./bin/mysqld: Shutdown complete

from alisql.

mg0324 avatar mg0324 commented on April 24, 2024

执行了个:
echo never > /sys/kernel/mm/transparent_hugepage/enabled

居然成功了。嘻嘻。

from alisql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.