ubuntu 安装mysql-5.1.41 错误

本文涉及的产品
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
云数据库 RDS MySQL,集群系列 2核4GB
推荐场景:
搭建个人博客
云数据库 RDS MySQL,高可用系列 2核4GB
简介:
今天安装 mysql-5.1.41 出现错误,看了一下 INSTALL-SOURCE ,后明白了所以把错误记下来了,错误大概如下:
 
checking size of int... (cached) 4
checking size of long... (cached) 8
checking size of void*... (cached) 8
checking for sched_yield... (cached) yes
checking for fdatasync... (cached) yes
checking for localtime_r... (cached) yes
checking whether byte ordering is bigendian... (cached) no
checking whether GCC atomic builtins are available... yes
checking whether pthread_t can be used by GCC atomic builtins... yes
checking whether Solaris libc atomic functions are available... checking for atomic_add_long... no
checking for atomic_cas_32... no
checking for atomic_cas_64... no
checking for atomic_cas_ulong... no
checking whether pthread_t can be used by Solaris libc atomic functions... no
checking size of pthread_t... 8
checking for x86 PAUSE instruction... yes
checking "for man pages to remove"... dropping ndbcluster embedded
configure: creating ./config.status
config.status: creating libmysql/libmysql.ver
config.status: creating zlib/Makefile
config.status: creating extra/yassl/Makefile
config.status: creating extra/yassl/taocrypt/Makefile
config.status: creating extra/yassl/taocrypt/benchmark/Makefile
config.status: creating extra/yassl/taocrypt/src/Makefile
config.status: creating extra/yassl/taocrypt/test/Makefile
config.status: creating extra/yassl/src/Makefile
config.status: creating extra/yassl/testsuite/Makefile
config.status: creating plugin/daemon_example/Makefile
config.status: creating plugin/fulltext/Makefile
config.status: creating storage/archive/Makefile
config.status: creating storage/blackhole/Makefile
config.status: creating storage/csv/Makefile
config.status: creating storage/example/Makefile
config.status: creating storage/federated/Makefile
config.status: creating storage/heap/Makefile
config.status: creating storage/ibmdb2i/Makefile
config.status: creating storage/innobase/Makefile
config.status: creating storage/innodb_plugin/Makefile
config.status: creating storage/myisam/Makefile
config.status: creating storage/myisammrg/Makefile
config.status: creating storage/ndb/Makefile
config.status: creating storage/ndb/docs/Makefile
config.status: creating storage/ndb/include/Makefile
config.status: creating storage/ndb/src/Makefile
config.status: creating storage/ndb/src/common/Makefile
config.status: creating storage/ndb/src/common/debugger/Makefile
config.status: creating storage/ndb/src/common/debugger/signaldata/Makefile
config.status: creating storage/ndb/src/common/logger/Makefile
config.status: creating storage/ndb/src/common/mgmcommon/Makefile
config.status: creating storage/ndb/src/common/portlib/Makefile
config.status: creating storage/ndb/src/common/transporter/Makefile
config.status: creating storage/ndb/src/common/util/Makefile
config.status: creating storage/ndb/src/cw/Makefile
config.status: creating storage/ndb/src/cw/cpcd/Makefile
config.status: creating storage/ndb/src/kernel/Makefile
config.status: creating storage/ndb/src/kernel/blocks/Makefile
config.status: creating storage/ndb/src/kernel/blocks/backup/Makefile
config.status: creating storage/ndb/src/kernel/blocks/dbdict/Makefile
config.status: creating storage/ndb/src/kernel/blocks/dbdih/Makefile
config.status: creating storage/ndb/src/kernel/blocks/dblqh/Makefile
config.status: creating storage/ndb/src/kernel/blocks/dbtup/Makefile
config.status: creating storage/ndb/src/kernel/error/Makefile
config.status: creating storage/ndb/src/kernel/vm/Makefile
config.status: creating storage/ndb/src/mgmapi/Makefile
config.status: creating storage/ndb/src/mgmclient/Makefile
config.status: creating storage/ndb/src/mgmsrv/Makefile
config.status: creating storage/ndb/src/ndbapi/Makefile
config.status: creating storage/ndb/test/Makefile
config.status: creating storage/ndb/test/ndbapi/Makefile
config.status: creating storage/ndb/test/ndbapi/bank/Makefile
config.status: creating storage/ndb/test/run-test/Makefile
config.status: creating storage/ndb/test/src/Makefile
config.status: creating storage/ndb/test/tools/Makefile
config.status: creating storage/ndb/tools/Makefile
config.status: creating pstack/Makefile
config.status: creating pstack/aout/Makefile
config.status: creating cmd-line-utils/readline/Makefile
config.status: creating Makefile
config.status: creating extra/Makefile
config.status: creating mysys/Makefile
config.status: creating unittest/Makefile
config.status: creating unittest/mytap/Makefile
config.status: creating unittest/mytap/t/Makefile
config.status: creating unittest/mysys/Makefile
config.status: creating unittest/examples/Makefile
config.status: creating strings/Makefile
config.status: creating regex/Makefile
config.status: creating storage/Makefile
config.status: creating man/Makefile
config.status: creating BUILD/Makefile
config.status: creating vio/Makefile
config.status: creating libmysql/Makefile
config.status: creating libmysql_r/Makefile
config.status: creating client/Makefile
config.status: creating sql/Makefile
config.status: creating sql/share/Makefile
config.status: creating sql/sql_builtin.cc
config.status: creating sql-common/Makefile
config.status: creating dbug/Makefile
config.status: creating scripts/Makefile
config.status: creating include/Makefile
config.status: creating tests/Makefile
config.status: creating Docs/Makefile
config.status: creating support-files/Makefile
config.status: creating support-files/MacOSX/Makefile
config.status: creating support-files/RHEL4-SElinux/Makefile
config.status: creating server-tools/Makefile
config.status: creating server-tools/instance-manager/Makefile
config.status: creating cmd-line-utils/Makefile
config.status: creating cmd-line-utils/libedit/Makefile
config.status: creating libmysqld/Makefile
config.status: creating libmysqld/examples/Makefile
config.status: creating mysql-test/Makefile
config.status: creating mysql-test/lib/My/SafeProcess/Makefile
config.status: creating netware/Makefile
config.status: creating sql-bench/Makefile
config.status: creating include/mysql_version.h
config.status: creating plugin/Makefile
config.status: creating win/Makefile
config.status: creating include/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
/bin/rm: cannot remove `libtoolT': No such file or directory
config.status: executing default commands
 
看 INSTALL-SOURCE 有这么一段解决方法:

     * GNU make, available from  http://www.gnu.org/software/make/.
       Although some platforms come with their own make
       implementations, it is highly recommended that you use GNU
       make. It may already be available on your system as gmake.
     * autoconf 2.58 (or newer), available from
        http://www.gnu.org/software/autoconf/.
     * automake 1.8.1, available from
        http://www.gnu.org/software/automake/.
     * libtool 1.5, available from
        http://www.gnu.org/software/libtool/.
     * m4, available from  http://www.gnu.org/software/m4/.
     * bison, available from  http://www.gnu.org/software/bison/. You
       should use the latest version of bison where possible. Version
       1.75 and version 2.1 are known to work. There have been

shell> cd mysql-5.1
    2. Prepare the source tree for configuration.
       Prior to MySQL 5.1.12, you must separately configure the
       InnoDB storage engine. Run the following command from the main
       source directory:
shell> (cd storage/innobase; autoreconf --force --install)
       You can omit the previous command for MySQL 5.1.12 and later,
       or if you do not require InnoDB support.
       Prepare the remainder of the source tree:
shell> autoreconf --force --install
       As an alternative to the preceding autoreconf command, you can
       use BUILD/autorun.sh, which acts as a shortcut for the
       following sequence of commands:
shell> aclocal; autoheader
shell> libtoolize --automake --force
shell> automake --force --add-missing; autoconf
       If you get some strange errors during this stage, verify that
       you have the correct version of libtool installed.
 
所以解决方法如下:
 
shell $> apt-get install  autoconf automake libtool
shell $> cd mysql-5.1.41
shell $> autoreconf --force --install
shell $> aclocal
shell $>  libtoolize --automake --force
shell $> automake --force --add-missing
shell $> CFLAGS="-O3 -mpentiumpro -mstack-align-double" CXX=gcc CXXFLAGS="-O3 -mpentiumpro -mstack-align-double -felide-constructors -fno-exceptions -fno-rtti"
shell $> ./configure  --prefix=/usr/local/mysql --with-charset=utf8 --with-collation=utf8_general_ci --enable-thread-safe-client --with-extra-charsets=all --with-client-ldflags=-all-static -with-mysqld-ldflags=-all-static --enable-assembler --with-unix-socket-path=/usr/local/mysql/var/mysql.sock --sysconfdir=/usr/local/mysql/etc  --disable-shared  --without-debug --enable-largefile --with-big-tables --without-uca --with-mysqld-user=mysql --with-pthread --with-pstack --with-plugins=all
 
好了没错误了``问题解决了~


本文转自Deidara 51CTO博客,原文链接:http://blog.51cto.com/deidara/235100,如需转载请自行联系原作者
相关实践学习
如何快速连接云数据库RDS MySQL
本场景介绍如何通过阿里云数据管理服务DMS快速连接云数据库RDS MySQL,然后进行数据表的CRUD操作。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助     相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
相关文章
|
24天前
|
缓存 Ubuntu Linux
Linux中yum、rpm、apt-get、wget的区别,yum、rpm、apt-get常用命令,CentOS、Ubuntu中安装wget
通过本文,我们详细了解了 `yum`、`rpm`、`apt-get`和 `wget`的区别、常用命令以及在CentOS和Ubuntu中安装 `wget`的方法。`yum`和 `apt-get`是高层次的包管理器,分别用于RPM系和Debian系发行版,能够自动解决依赖问题;而 `rpm`是低层次的包管理工具,适合处理单个包;`wget`则是一个功能强大的下载工具,适用于各种下载任务。在实际使用中,根据系统类型和任务需求选择合适的工具,可以大大提高工作效率和系统管理的便利性。
123 25
|
1月前
|
关系型数据库 MySQL 数据库
Docker Compose V2 安装常用数据库MySQL+Mongo
以上内容涵盖了使用 Docker Compose 安装和管理 MySQL 和 MongoDB 的详细步骤,希望对您有所帮助。
183 42
|
7天前
|
NoSQL Ubuntu 网络安全
在 Ubuntu 20.04 上安装和配置 Redis
在 Ubuntu 20.04 上安装和配置 Redis 的步骤如下:首先更新系统包,然后通过 `apt` 安装 Redis。安装后,启用并启动 Redis 服务,检查其运行状态。可选配置包括修改绑定 IP、端口等,并确保防火墙设置允许外部访问。最后,使用 `redis-cli` 测试 Redis 功能,如设置和获取键值对。
22 1
|
13天前
|
Ubuntu TensorFlow 算法框架/工具
如何在Ubuntu上安装TensorFlow 24.04
如何在Ubuntu上安装TensorFlow 24.04
38 1
|
1月前
|
Ubuntu API 网络虚拟化
ubuntu22 编译安装docker,和docker容器方式安装 deepseek
本脚本适用于Ubuntu 22.04,主要功能包括编译安装Docker和安装DeepSeek模型。首先通过Apt源配置安装Docker,确保网络稳定(建议使用VPN)。接着下载并配置Docker二进制文件,创建Docker用户组并设置守护进程。随后拉取Debian 12镜像,安装系统必备工具,配置Ollama模型管理器,并最终部署和运行DeepSeek模型,提供API接口进行交互测试。
378 15
|
7天前
|
Ubuntu Linux Docker
如何在Ubuntu 20.04系统中安装Docker
安装 Docker 引擎的步骤如下:首先更新系统包索引 (`sudo apt update`),安装必要依赖包 (`apt-transport-https` 等),添加 Docker 官方 GPG 密钥及 APT 仓库。接着再次更新包索引并安装 Docker 引擎及相关工具 (`docker-ce` 等)。最后启动 Docker 服务并设置开机自启,通过 `docker --version` 和运行测试容器 (`sudo docker run hello-world`) 验证安装是否成功。
69 0
|
2月前
|
弹性计算 Ubuntu Java
OS-Copilot-ubuntu镜像版本的具体测试使用(安装方式有单独注明)
作为一名个人开发者,我主要负责云资源的运维和管理。在使用OS Copilot的过程中,我遇到了一些配置问题,特别是在ECS实例中设置AccessKey时,但最终成功解决了。通过使用OS Copilot的-t/-f/管道功能,我大大提升了效率,减少了命令编写的工作量,特别是在搭建Java运行环境时效果显著。此外,| 功能帮助我快速理解文档,整体体验非常流畅,推荐给其他开发者使用。
63 6
|
2月前
|
安全 关系型数据库 MySQL
CentOS7仅安装部署MySQL80客户端
通过上述步骤,你可以在CentOS 7上成功安装并配置MySQL 8.0客户端。这个过程确保你能够使用MySQL客户端工具连接和管理远程的MySQL数据库,而不需要在本地安装MySQL服务器。定期更新MySQL客户端可以确保你使用的是最新的功能和安全修复。
293 16
|
3月前
|
关系型数据库 MySQL 数据库
【MySQL基础篇】MySQL概述、Windows下载MySQL8.0超详细图文安装教程
在这一章节,主要介绍两个部分,数据库相关概念及MySQL数据库的介绍、下载、安装、启动及连接。接着,详细描述了MySQL 8.0的版本选择与下载,推荐使用社区版(免费)。安装过程包括自定义安装路径、配置环境变量、启动和停止服务、以及客户端连接测试。此外,还提供了在同一台电脑上安装多个MySQL版本的方法及卸载步骤。最后,解释了关系型数据库(RDBMS)的特点,即基于二维表存储数据,使用SQL语言进行操作,格式统一且便于维护。通过具体的结构图展示了MySQL的数据模型,说明了数据库服务器、数据库、表和记录之间的层次关系。
【MySQL基础篇】MySQL概述、Windows下载MySQL8.0超详细图文安装教程
|
3月前
|
NoSQL 关系型数据库 Redis
《docker高级篇(大厂进阶):1.Docker复杂安装详说》包括:安装mysql主从复制、安装redis集群
《docker高级篇(大厂进阶):1.Docker复杂安装详说》包括:安装mysql主从复制、安装redis集群
146 14