-bash: ./configure: 没有这样的文件或目录 - 在 Mac OS X 10.6 上安装 MySQL

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1910356/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 14:47:29  来源:igfitidea点击:

-bash: ./configure: No such file or directory - MySQL install on Mac OS X 10.6

mysqlmacos

提问by John

I'm trying to install MySQL on Mac OS X 10.6. After I download MySQL and untar with tar xzvf mysql-5.1.37.tar.gz I then try and run this configure line:

我正在尝试在 Mac OS X 10.6 上安装 MySQL。在我下载 MySQL 并使用 tar xzvf mysql-5.1.37.tar.gz 解压缩后,我尝试运行此配置行:

./configure --prefix=/usr/local/mysql --with-extra-charsets=complex --enable-thread-safe-client --enable-local-infile --enable-shared --with-plugins=innobase

I get the error

我收到错误

-bash: ./configure: No such file or director

-bash: ./configure: 没有那个文件或目录

I thought that configure should be a file in directory mysql, but it is not there. Am I correct, or is configure something else?

我认为 configure 应该是 directory 中的一个文件mysql,但它不存在。我是正确的,还是配置了其他东西?

回答by Tom Bates

You've downloaded the binary version, not the source.

您已经下载了二进制版本,而不是源代码。

This is the reason that you're getting the config error. Go here:

这就是您收到配置错误的原因。到这里:

http://forums.mysql.com/read.php?117,295428,295493#msg-295493

http://forums.mysql.com/read.php?117,295428,295493#msg-295493

for the correct mysql version to compile from source.

为了从源代码编译正确的 mysql 版本。

回答by Kevin Branigan

I was having a similar problem (mysql 5.5.23), which seems to be caused by the fact that they decided to switch to using cmake from autotools.

我遇到了类似的问题(mysql 5.5.23),这似乎是因为他们决定从 autotools 切换到使用 cmake。

MySQL :: MySQL Internals Manual :: 4.6.6 ./configure Emulation

MySQL :: MySQL 内部手册 :: 4.6.6 ./configure 仿真

回答by ndim

Did you actually cd mysql-5.1.37before trying to run ./configure?

你真的cd mysql-5.1.37在尝试跑步之前./configure吗?

回答by MindStalker

Don't forget to

不要忘记

cd mysql-5.1.37

cd mysql-5.1.37

回答by wallyk

Presumably, you verified the file is there, right? You might have to set the execute bit:

据推测,您已验证文件在那里,对吗?您可能必须设置执行位:

chmod 755 configure

回答by pestilence669

The file should be there. It's in the archived version I just downloaded. You might want to grab another copy and try again.

该文件应该在那里。它在我刚刚下载的存档版本中。您可能想要获取另一个副本并重试。