📄 compile-linux-tools
字号:
#! /bin/sh# debug#set -x# stop on errorsset -eif test ! -r ./sql/mysqld.ccthen echo "you must start from the top source directory" exit 1fipath=`dirname $0`# cleanif test -e "Makefile"; then make -k clean; fi# remove filesrm -f */.deps/*.Prm -f */*.linux# run autotools. $path/compile-AUTOTOOLS# configure./configure --without-innodb --without-docs# build tools onlymake cleanmake# Create mysql_version.h which was deleted my previous step./config.status include/mysql_version.h (cd dbug; make libdbug.a)(cd strings; make libmystrings.a)(cd mysys; make libmysys.a)(cd heap; make libheap.a)(cd vio; make libvio.a)(cd regex; make libregex.a)(cd myisam; make libmyisam.a)(cd myisammrg; make libmyisammrg.a)(cd extra; make comp_err)(cd libmysql; make conf_to_src)(cd libmysql_r; make conf_to_src)# so the file will be linked(cd sql; make sql_yacc.cc)(cd sql; make gen_lex_hash)(cd strings; make conf_to_src)# so the file will be linked(cd sql; make sql_yacc.cc)# copying required linux toolscp extra/comp_err extra/comp_err.linuxcp libmysql/conf_to_src libmysql/conf_to_src.linux#cp libmysql_r/conf_to_src libmysql_r/conf_to_src.linuxcp sql/.libs/gen_lex_hash sql/gen_lex_hash.linuxcp strings/conf_to_src strings/conf_to_src.linux# Delete mysql_version.hrm -f include/mysql_version.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -