ubuntu 安装mysql-5.1.41 错误

本文涉及的产品
云数据库 RDS MySQL,集群系列 2核4GB
推荐场景:
搭建个人博客
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
云数据库 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
目录
打赏
0
0
0
0
69
分享
相关文章
在Ubuntu上安装MEAN Stack的4个步骤
本指南介绍了在Ubuntu上安装MEAN Stack的四个步骤。MEAN Stack是一种基于JavaScript的开发堆栈,包含MongoDB、ExpressJS、AngularJS和NodeJS。步骤包括:1. 更新系统并准备安装MEAN;2. 从官方源安装最新版MongoDB;3. 安装NodeJS、Git和NPM;4. 克隆mean.io仓库并使用NPM安装剩余依赖项。通过这些步骤,您可以快速搭建基于MEAN Stack的应用开发环境。
35 2
|
10天前
|
在Ubuntu下安装Debian包:dpkg与apt命令的深度解构。
安装Debian包的知识,就像掌握了海上的航行技术,虽然起初会让人感到陌生甚至困惑,但只要你积累熟练,就能在Ubuntu的世界里畅游无阻。就像每一位成功的航海家,掌握好这些工具,去探索属于你的Ubuntu新世界吧!
61 21
容器技术实践:在Ubuntu上使用Docker安装MySQL的步骤。
通过以上的操作,你已经步入了Docker和MySQL的世界,享受了容器技术给你带来的便利。这个旅程中你可能会遇到各种挑战,但是只要你沿着我们划定的路线行进,你就一定可以达到目的地。这就是Ubuntu、Docker和MySQL的灵魂所在,它们为你开辟了一条通往新探索的道路,带你亲身感受到了技术的力量。欢迎在Ubuntu的广阔大海中探索,用Docker技术引领你的航行,随时准备感受新技术带来的震撼和乐趣。
46 16
|
16天前
|
Ubuntu gnome WhiteSur-gtk-theme类mac主题正确安装和卸载方式
通过这个过程,用户不仅可以定制自己的桌面外观,还可以学习到更多关于 Linux 系统管理的知识,从而更好地掌握系统配置和主题管理的技巧。
62 12
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`则是一个功能强大的下载工具,适用于各种下载任务。在实际使用中,根据系统类型和任务需求选择合适的工具,可以大大提高工作效率和系统管理的便利性。
187 25
Docker Compose V2 安装常用数据库MySQL+Mongo
以上内容涵盖了使用 Docker Compose 安装和管理 MySQL 和 MongoDB 的详细步骤,希望对您有所帮助。
226 42
在 Ubuntu 20.04 上安装和配置 Redis
在 Ubuntu 20.04 上安装和配置 Redis 的步骤如下:首先更新系统包,然后通过 `apt` 安装 Redis。安装后,启用并启动 Redis 服务,检查其运行状态。可选配置包括修改绑定 IP、端口等,并确保防火墙设置允许外部访问。最后,使用 `redis-cli` 测试 Redis 功能,如设置和获取键值对。
36 1
ubuntu22 编译安装docker,和docker容器方式安装 deepseek
本脚本适用于Ubuntu 22.04,主要功能包括编译安装Docker和安装DeepSeek模型。首先通过Apt源配置安装Docker,确保网络稳定(建议使用VPN)。接着下载并配置Docker二进制文件,创建Docker用户组并设置守护进程。随后拉取Debian 12镜像,安装系统必备工具,配置Ollama模型管理器,并最终部署和运行DeepSeek模型,提供API接口进行交互测试。
440 15
如何在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`) 验证安装是否成功。
195 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等