解决The source directory "/usr/local" does not appear to contain CMakeLists.txt错误

风信网(ithov.com)原创文章:今天编译mysql-5.6.15-linux-glibc2.5-x86_64.tar.gz版本,决是报错,信息如下:

[root@localhost mysql]# scripts/mysql_install_db --user=">mysql --basedir=/usr/local/mysql --datadir=/data/mysql/data --force

sh: /usr/local/mysql/bin/my_print_defaults: cannot execute binary file

FATAL ERROR: Neither host 'localhost.localdomain' nor 'localhost' could be looked up with

/usr/local/mysql/bin/resolveip

Please configure the 'hostname' command to return a correct

hostname.

If you want to solve this at a later stage, restart this script

with the --force option

使用命令修改了hostname还是不行

[root@localhost scripts]# echo "127.0.0.1 localhost.localdomain localhost" >> /etc/hosts

依旧报sh: /usr/local/mysql/bin/my_print_defaults: cannot execute binary file错误

查看mysql官方关于5.6的源代码安装文档,发现官方使用cmake命令进行编译的,运行cmake报错信息如下:

[root@localhost mysql]# cmake .

CMake Error: The source directory "/usr/local" does not appear to contain CMakeLists.txt.

Specify --help for usage, or press the help button on the CMake GUI.

查看mysql文件夹,发现没有CMakeLists文件,原来如此。重新下载,我们需要找MySQL Community Server 5.6.15这个版本中的(mysql-5.6.15.tar.gz),截图如下:

下载完成之后,解压使用cmake命令,安装成功。

时间: 2024-08-03 09:19:00

解决The source directory "/usr/local" does not appear to contain CMakeLists.txt错误的相关文章

解决Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid

  重新启动服务器,访问web服务发现无法浏览啦!登陆服务器之后进到nginx使用./nginx -s reload重新读取配置文件,发现报nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)错误,进到logs文件发现的确没有nginx.pid文件 [root@localhost sbin]# ./nginx -s reload nginx: [erro

解决nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed错误

风信网(ithov.com) 原创文章: 重新启动服务器,访问web服务发现无法浏览啦!登陆服务器之后进到nginx使用./nginx -s reload重新读取配置文件,发现报nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)错误,进到logs文件发现 的确没有nginx.pid文件 &http://www.aliyun.com/zixun/

解决Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid错误

重新启动服务器,访问web服务发现无法浏览啦!登陆服务器之后进到nginx使用./nginx -s reload重新读取配置文件,发现报nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)错误,进到logs文件发现的确没有nginx.pid文件   [root@localhost sbin]# ./nginx -s reload nginx: [erro

mysql-cmake编译MySQL时报错:the source directory "xxx" does not exist 怎么解决啊

问题描述 cmake编译MySQL时报错:the source directory "xxx" does not exist 怎么解决啊 系统ubuntu 13.04 gcc version 4.7.3 cmake version 2.8.10.1 安装完cmake后,在mysql解压缩目录下,使用如下命令行: cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/data/mysql -DSYSCONFDIR

/usr/local/php/bin/php^M: bad interpreter: No such file or directory

在使用php作为linux上shell脚本运行时出现了以下错误: /usr/local/php/bin/php^M: bad interpreter: No such file or directory 原因是你的文本以DOS文件形式保存,如下图所示 解决办法,使用dos2unix命令转换文档类型: dos2unix test.php centos安装dos2unix命令: yum -y install dos2unix 以上是小编为您精心准备的的内容,在的博客.问答.公众号.人物.课程等栏目也

/usr/local/lib /libstdc++.so.6: no version information available解决方法

用apt-get install ,总是出现:/usr/local/lib /libstdc++.so.6: no version information available之类的错误.然后用ldconfig检查&http://www.aliyun.com/zixun/aggregation/37954.html">nbsp; ldconfig -p | grep libstd ,结果如下: libstdc++.so.6 (libc6) => /usr/local/lib/l

[error][/usr/local/share/perl5/MHA/Server.pm, ln242] Getting relay log directory or current relay logfile from repication table failed

MHA切换后检查主从复制出现: [root@Devops-mha-150 logs]# masterha_check_repl -conf=/etc/mha/10.66.150.117.cnf Tue Mar 14 12:27:23 2017 - [info] Reading default configuratoins from /etc/masterha_default.cnf.. Tue Mar 14 12:27:23 2017 - [info] Reading application d

configure: error: Cannot find libmysqlclient under /usr/local/mysql.

执行下面语句: ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql  --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --wit

chmod: cannot access `/usr/local/apache2/modules/libphp5.so': No such file

Installing PHP SAPI module: apache2handler /usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apr/build-1/libtool' libphp5.la /usr/local/apache2/modules /usr/local/apr/build-1/libtool --mode=install install libphp5.la /usr/local/apache2/modul