一)

#./configure --prefix=/usr/local/mysql-5.1.54

(mysql指定路径安装报错:)

如下:

checking for termcap functions library... configure: error: No curses/termcap library found

安装:

ncurses-devel.***.rpm 包解决

#cd /media/CentOS_5.5_Final/CentOS/

#ls ncurses-devel*

找到这个包并用rpm安装。

# rpm -ivh ncurses-devel-5.5-24.20060715.i386.rpm

(或者去下载一个ncurses-5.6.tar.gz,

wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz 解压并安装)

(二)

make时出错

../depcomp: line 571: exec: g++: not found

make[1]: *** [my_new.o] 错误 127

make[1]: Leaving directory `/usr/local/src/mysql/mysql-5.1.32/mysys`

make: *** [all-recursive] 错误 1

解决:

#yum install gcc-c++ 可解决问题。

重新指定安装路径:

#./configure --prefix=/usr/local/mysql-5.0.90

make

make install

(三)

初始化数据库时出错:

# scripts/mysql_install_db --user=mysql

#bin/mysql_install_db --basedir=/usr/local/mysql-5.1.54 --datadir=/usr/local/mysql-5.1.54/data --user=mysql

[Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-

external-locking' instead.

(解决方法:将my.cnf 中的'--skip-locking' 换成'--skip-external-locking' 就可以了。)

(四)修改/etc/my.cnf 的配置文件:

[client]

#password = your_password

port = 3306

socket = /tmp/mysql.sock

# Here follows entries for some specific programs

# The MySQL server

[mysqld]

port = 3306

socket = /tmp/mysql.sock

basedir=/usr/local/mysql-5.1.54

datadir=/usr/local/mysql-5.1.54/data

skip-external-locking

key_buffer_size = 16M

max_allowed_packet = 1M

table_open_cache = 64

sort_buffer_size = 512K

net_buffer_length = 8K

read_buffer_size = 256K

read_rnd_buffer_size = 512K

myisam_sort_buffer_size = 8M

[mysql]

no-auto-rehash

# Remove the next comment character if you are not familiar with SQL

#safe-updates

五:提示

出错时,可及时查看错误日志:

vi /usr/local/mysql-5.1.54/data/localhost.localdomain.err

显示如下:

110107 22:06:31 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use

'--skip-external-locking' instead.

/usr/local/mysql-5.1.54/libexec/mysqld: Table 'mysql.plugin' doesn't exist

110107 22:06:31 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

110107 22:06:31 [ERROR] Can't start server : Bind on unix socket: No such file or directory

110107 22:06:31 [ERROR] Do you already have another mysqld server running on socket: var/lib/mysql/mysql.sock

?

110107 22:06:31 [ERROR] Aborting

?

转载于:https://blog.51cto.com/kuailemy/1127268

linux中源码编译安装mysql常见错误相关推荐

  1. php源码无法安装mysql_linux中源码编译安装mysql常见错误

    (一) #./configure --prefix=/usr/local/mysql-5.1.54 (mysql指定路径安装报错:) 如下: checking for termcap function ...

  2. linux上源码安装mysql,Linux中源码包安装MySQL的shell脚本

    #!/bin/bash #安装MYSQL yum -y install ncurses-devel yum -y install autoconf tar zxf /cmake--C / cd /cm ...

  3. centos lnmp源码安装mysql_CentOS 6.6 下源码编译安装MySQL 5.7.5

    说明:CentOS 6.6 下源码编译安装MySQL 5.7.5 1. 安装相关工具 # yum -y install gcc-c++ ncurses-devel cmake make perl \ ...

  4. mac版源码编译安装mysql

    mac版源码编译安装mysql 一.基础环境 1.清理环境(清理系统自带的Mariadb和boost) CentOS 7 版本的系统默认自带安装了MariaDB,需要先清理. ##查询已安装的mari ...

  5. Centos 7 源码编译安装 mysql

    文章目录 Centos 7 源码编译安装 mysql 1. 卸载 centos 自带的 mariadb 2. 下载 mysql 3. 安装 mysql 3.1 解压压缩包 3.1.1 自定义解压安装目 ...

  6. 源码编译安装mysql,DDL数据定义语言的使用。

    今天来尝试下源码编译安装mysql. 这次我们要用到cmake工具,安装cmake. # yum install cmake # tar -xf mysql-5.5.37.tar.gz # cd my ...

  7. WdOS源码编译安装MySQL 5.5.25a

    2019独角兽企业重金招聘Python工程师标准>>> MySQL是一个中.小型关系型数据库管理系统,由瑞典MySQL AB公司开发,目前属于Oracle公司.MySQL是一种关联数 ...

  8. 【Python 笔记】Linux 下源码编译安装 python

    本文记录在 Linux 上源码编译安装 python 的过程. 文章目录 1. 源码编译安装说明 2. 安装 python2.7 3. 安装 python3.6 1. 源码编译安装说明 安装过程比我想 ...

  9. Python 3.10版本及其依赖项 Linux下源码编译 安装到指定路径/目录

    Python 3.10版本及其依赖项 Linux下源码编译 安装到指定路径/目录 安装需求 准备工作 Python及其依赖项 libffi glibc GDBM mpdecimal bz2 xz re ...

最新文章

  1. 怎么用u盘在服务器上传文件,U盘向云服务器传输文件吗
  2. 数据库中关于convert的参数学习(转化函数用法)
  3. rust(63)-全局静态变量
  4. 如何在 Windows 10 上安装 WSL 2
  5. 百度前端学院-基础学院-第四课
  6. 简单入门Javascript正则表达式
  7. apache mediawiki 安装_MediaWiki初探:安装及使用入门
  8. [Python] 增加维度或者减少维度:a.squeeze(axis) 和 a.unsqueeze(axis)
  9. java day58【 案例:使用 spring 的 IoC 的实现账户的 CRUD 、 基于注解的 IOC 配置 、 Spring 整合 Junit[掌握] 】...
  10. python3pygame 游戏程序_python3 pygame实现接小球游戏
  11. win10 桌面设置为远程桌面
  12. Matlab学习(可以用MATLAB作曲)
  13. 推荐一款点阵字库生成工具/点阵生成器
  14. 【雅思大作文考官范文】——第十五篇:'high salaries' essay
  15. c语言fabs函数的返回值,关于c语言中fabs函数的用法
  16. 数据库原理题型 - 选择题
  17. 万字干货!《人人都是产品经理》作者苏杰独家专访
  18. 读《Oracle 数据库应用与实践》
  19. OPPO Watch 2系列正式发布 双擎混动技术兼顾智能与续航
  20. 窥探现代浏览器架构(一)

热门文章

  1. python找水仙花数_Python一句代码实现找出所有水仙花数的方法
  2. 32位程序调用64位dll_电脑系统怎样区分32位和64位
  3. 类似飞秋的局域网软件_内网视频会议软件系统
  4. @propertysource 读不到properties_在加拿大读了6年还是大学一年级,会被赶出校吗?...
  5. linux bash command not found
  6. java医疗框架,java毕业设计_springboot框架的城市智慧医疗服务系统
  7. android 市场自动安装软件,Android 应用中跳转到应用市场评分示例
  8. 解决使用pip安装lxml包报错问题Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
  9. 【Socket网络编程】1.bind()和 INADDR_ANY 解析
  10. Machine Learning - Andrew Ng on Coursera (Week 6)