ARM嵌入式Linux MySQL移植

嵌入式一般使用SQLite数据库,但功能都不如MySql,加上项目需要成功移植MySql5.1.32到samsung6410 arm11平台

运行起来还不错,步骤如下:

参见: http://www.linuxidc.net/thread-2119-1-1.html

mysql-5.1.32 for arm platform porting:

1.modify configure file, comment "run test program while cross compiling" part,refer to "http://www.linuxidc.net/thread-2119-1-1.html"
2../configure --host=arm-linux -with-named-curses-libs=/usr/lib/libncurses.so.5 --prefix=/usr/local/mysql
3.make libncurses.so.5 from ncurses-5.6.tar.gz, then copy ncurses-5.6/lib/libncurses.so.5 .so.5.6 to /usr/lib
4.scripts/Makefile.in line:512, skip comp_sql generate, copy from mysql-pc/scripts/ dir
5.extra/Makefile.in line:546, skip comp_err generate, copy from mysql-pc/extra/ dir
6.sql/Makefile.in line:738,1182, skip comp_err generate, copy from mysql-pc/sql/ dir
7.add #define STACK_DIRECTION 1 on sql/sql_parse.cc line:5432

相关推荐