手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

ARM嵌入式Linux MySQL移植

[日期:2011-04-15] 来源:Linux社区  作者:lxj_com2006 [字体:大 中 小]

嵌入式一般使用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

linux
相关资讯       嵌入式Linux 
本文评论   查看全部评论 (2)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款
第 2 楼
* 匿名 发表于 2013/3/5 21:21:04
[root@Enjoylinux /]# mysql_install_db -u root
Installing MySQL system tables...
/usr/local/mysql/libexec/mysqld: /lib/libstdc++.so.6: version `CXXABI_ARM_1.3.3'
not found (required by /usr/local/mysql/libexec/mysqld)

Installation of system tables failed! Examine the logs in
/usr/local/mysql/var for more information.
开发板超级终端打印出这样的问题,是怎么回事?
第 1 楼
* 匿名 发表于 2013/3/5 21:18:56

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
这几步骤是什么意思?