Skip to content

Instantly share code, notes, and snippets.

@nufeng1999
Last active June 21, 2021 05:45
Show Gist options
  • Select an option

  • Save nufeng1999/78ffb356f44159ccaf8668efaa16712a to your computer and use it in GitHub Desktop.

Select an option

Save nufeng1999/78ffb356f44159ccaf8668efaa16712a to your computer and use it in GitHub Desktop.
[编译arm版本的mysql]编译arm版本的mysql #arm #mysql #编译

http://www.cnblogs.com/Charles-Zhang-Blog/p/3529980.html

#./configure -prefix=/usr/local/mysql 
#{ac_cv_sys_restartable_syscalls+set}"
#-rpath=/arm-linux/arm-none-linux-gnueabi/lib

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/arm-linux/arm-none-linux-gnueabi/lib
export LIBRARY_PATH=$LIBRARY_PATH:/arm-linux/arm-none-linux-gnueabi/lib

./configure --host=arm-linux --enable-static --with-plugins=federated --with-named-curses-libs=/arm-linux/lib/libncurses.a --prefix=/usr/local/mysql --without-debug --without-docs --without-man --without-bench --with-charset=gb2312 --with-extra-charsets=ascii,latin1,utf8   AR="arm-linux-ar" RANLIB=arm-linux-ranlib  CC=arm-linux-gcc LD=arm-linux-ld  AS=arm-linux-as CXX=arm-linux-g++

bin/mysql_install_db --user=root --force --basedir=/usr/local/mysql --datadir=/usr/local/mysql/mysqldb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment