/home/cifer/Downloads/mysql-5.5.20/sql/sql_repl.cc: In function ‘int fake_rotate_event(NET*, String*, char*, ulonglong, const char**)’:
/home/cifer/Downloads/mysql-5.5.20/sql/sql_repl.cc:85:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
[ 92%] Building CXX object sql/CMakeFiles/sql.dir/sql_select.cc.o
[ 92%] Building CXX object sql/CMakeFiles/sql.dir/sql_show.cc.o
[ 92%] Building C object sql/CMakeFiles/sql.dir/sql_state.c.o
[ 92%] Building CXX object sql/CMakeFiles/sql.dir/sql_string.cc.o
[ 93%] Building CXX object sql/CMakeFiles/sql.dir/sql_table.cc.o
/home/cifer/Downloads/mysql-5.5.20/sql/sql_table.cc: In function ‘bool write_ddl_log_header()’:
/home/cifer/Downloads/mysql-5.5.20/sql/sql_table.cc:742:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/cifer/Downloads/mysql-5.5.20/sql/sql_table.cc:745:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/cifer/Downloads/mysql-5.5.20/sql/sql_table.cc:748:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/cifer/Downloads/mysql-5.5.20/sql/sql_table.cc: In function ‘bool write_ddl_log_entry(DDL_LOG_ENTRY*, DDL_LOG_MEMORY_ENTRY**)’:
/home/cifer/Downloads/mysql-5.5.20/sql/sql_table.cc:1139:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
[ 93%] Building CXX object sql/CMakeFiles/sql.dir/sql_test.cc.o
[ 93%] Building CXX object sql/CMakeFiles/sql.dir/sql_trigger.cc.o
[ 93%] Building CXX object sql/CMakeFiles/sql.dir/sql_udf.cc.o
[ 93%] Building CXX object sql/CMakeFiles/sql.dir/sql_union.cc.o
[ 93%] Building CXX object sql/CMakeFiles/sql.dir/sql_update.cc.o
[ 93%] Building CXX object sql/CMakeFiles/sql.dir/sql_view.cc.o
[ 94%] Building CXX object sql/CMakeFiles/sql.dir/strfunc.cc.o
[ 94%] Building CXX object sql/CMakeFiles/sql.dir/table.cc.o
[ 94%] Building CXX object sql/CMakeFiles/sql.dir/thr_malloc.cc.o
[ 94%] Building CXX object sql/CMakeFiles/sql.dir/sql_time.cc.o
[ 94%] Building CXX object sql/CMakeFiles/sql.dir/tztime.cc.o
[ 94%] Building CXX object sql/CMakeFiles/sql.dir/uniques.cc.o
[ 95%] Building CXX object sql/CMakeFiles/sql.dir/unireg.cc.o
/home/cifer/Downloads/mysql-5.5.20/sql/unireg.cc: In function ‘bool mysql_create_frm(THD*, const char*, const char*, const char*, HA_CREATE_INFO*, List<Create_field>&, uint, KEY*, handler*)’:
/home/cifer/Downloads/mysql-5.5.20/sql/unireg.cc:295:42: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/cifer/Downloads/mysql-5.5.20/sql/unireg.cc:323:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/cifer/Downloads/mysql-5.5.20/sql/unireg.cc:329:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/cifer/Downloads/mysql-5.5.20/sql/unireg.cc:339:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/cifer/Downloads/mysql-5.5.20/sql/unireg.cc:365:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
[ 95%] Building CXX object sql/CMakeFiles/sql.dir/item_xmlfunc.cc.o
[ 95%] Building CXX object sql/CMakeFiles/sql.dir/rpl_tblmap.cc.o
[ 95%] Building CXX object sql/CMakeFiles/sql.dir/sql_binlog.cc.o
[ 95%] Building CXX object sql/CMakeFiles/sql.dir/event_scheduler.cc.o
[ 95%] Building CXX object sql/CMakeFiles/sql.dir/event_data_objects.cc.o
[ 95%] Building CXX object sql/CMakeFiles/sql.dir/event_queue.cc.o
[ 96%] Building CXX object sql/CMakeFiles/sql.dir/event_db_repository.cc.o
[ 96%] Building CXX object sql/CMakeFiles/sql.dir/sql_tablespace.cc.o
[ 96%] Building CXX object sql/CMakeFiles/sql.dir/events.cc.o
[ 96%] Building C object sql/CMakeFiles/sql.dir/__/sql-common/my_user.c.o
[ 96%] Building CXX object sql/CMakeFiles/sql.dir/partition_info.cc.o
[ 96%] Building CXX object sql/CMakeFiles/sql.dir/rpl_utility.cc.o
[ 97%] Building CXX object sql/CMakeFiles/sql.dir/rpl_injector.cc.o
[ 97%] Building CXX object sql/CMakeFiles/sql.dir/sql_locale.cc.o
[ 97%] Building CXX object sql/CMakeFiles/sql.dir/rpl_rli.cc.o
[ 97%] Building CXX object sql/CMakeFiles/sql.dir/rpl_mi.cc.o
[ 97%] Building CXX object sql/CMakeFiles/sql.dir/sql_servers.cc.o
[ 97%] Building CXX object sql/CMakeFiles/sql.dir/sql_audit.cc.o
[ 97%] Building CXX object sql/CMakeFiles/sql.dir/sql_connect.cc.o
[ 98%] Building CXX object sql/CMakeFiles/sql.dir/scheduler.cc.o
[ 98%] Building CXX object sql/CMakeFiles/sql.dir/sql_partition_admin.cc.o
[ 98%] Building CXX object sql/CMakeFiles/sql.dir/sql_profile.cc.o
[ 98%] Building CXX object sql/CMakeFiles/sql.dir/event_parse_data.cc.o
[ 98%] Building CXX object sql/CMakeFiles/sql.dir/sql_alter.cc.o
[ 98%] Building CXX object sql/CMakeFiles/sql.dir/sql_signal.cc.o
[ 99%] Building CXX object sql/CMakeFiles/sql.dir/rpl_handler.cc.o
[ 99%] Building CXX object sql/CMakeFiles/sql.dir/mdl.cc.o
[ 99%] Building CXX object sql/CMakeFiles/sql.dir/sql_admin.cc.o
[ 99%] Building CXX object sql/CMakeFiles/sql.dir/transaction.cc.o
[ 99%] Building CXX object sql/CMakeFiles/sql.dir/sys_vars.cc.o
[ 99%] Building CXX object sql/CMakeFiles/sql.dir/sql_truncate.cc.o
[100%] Building CXX object sql/CMakeFiles/sql.dir/datadict.cc.o
[100%] Building CXX object sql/CMakeFiles/sql.dir/sql_reload.cc.o
[100%] Building CXX object sql/CMakeFiles/sql.dir/sql_yacc.cc.o
[100%] Building CXX object sql/CMakeFiles/sql.dir/sql_builtin.cc.o
Linking CXX static library libsql.a
[100%] Built target sql
Scanning dependencies of target mysqld
[100%] Building CXX object sql/CMakeFiles/mysqld.dir/main.cc.o
Linking CXX executable mysqld
[100%] Built target mysqld
Scanning dependencies of target udf_example
[100%] Building C object sql/CMakeFiles/udf_example.dir/udf_example.c.o
Linking C shared module udf_example.so
[100%] Built target udf_example
Scanning dependencies of target my_safe_process
[100%] Building CXX object mysql-test/lib/My/SafeProcess/CMakeFiles/my_safe_process.dir/safe_process.cc.o
Linking CXX executable my_safe_process
[100%] Built target my_safe_process
这一步基本是没什么问题 然后是
6 。 make VERBOSE=1
这部很快执行完了,也没什么问题 , 他的作用是 “The second command sets VERBOSE to show the commands for each
compiled source.”
7 。sudo make install
是的,这一步往往是需要root权限的, 而且,一般情况下,前两步都做好了,这一步是最不容易出问题的
而且,事实也确实没出问题
正如大家所知, make install 默认会将mysql装在 //usr/local/mysql
8. [sudo] make package
这一步是用来制作安装包的, 这会生成一个 package, 实际就是你已经编译好了的 mysql tar包
生成了以后, 可以考到别的电脑上安装而不必重新编译(还不如直接去官网下binary版本的。。)
所以这步不是必须的,根据个人需要
之后就是 Perform Postinstallation Setup (安装后的配置工作)
官网原文:
The remainder of the installation process involves setting up the
configuration file, creating the core databases, and starting the
MySQL server. For instructions, see Section 2.10,
"Postinstallation Setup and Testing."
Note
The accounts that are listed in the MySQL grant tables initially
have no passwords. After starting the server, you should set up
passwords for them using the instructions in Section 2.10,
"Postinstallation Setup and Testing."
--转自