「又要劳烦各位了」 linux 安装mysql问题

减肥啊啊啊啊啊 2012-03-01 09:48:24
linux : ylmf os 11
mysql: 5.0.87 ,5.5.12 ,还又等着下载的几个。。(濒临崩溃)

我按照readme 和install 说明来一步一步操作的。。


机器上没make 软件中心下make 在安装的时候就卡在50%。。cmake时候还有错误。


cmake . 的错误:


CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:/home/js/下载/mysql-5.5.12/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file:/home/js/下载/mysql-5.5.12/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!



官方提示的这句。
scripts/mysql_install_db --user=mysql

我的路径下没有
只到script 还是个文件。

哦忘了说 mysql 是5.5.12 tar.gz格式的
解压之后这个目录结构

root@js-desktop:/home/js/下载/mysql-5.5.12# ls

BUILD configure.cmake libmysqld regex unittest
BUILD-CMAKE COPYING libservices scripts VERSION
client dbug man sql vio
cmake Docs mysql sql-bench win
CMakeCache.txt extra mysql-test sql-common zlib
CMakeFiles include mysys storage
CMakeLists.txt INSTALL-SOURCE packaging strings
cmd-line-utils INSTALL-WIN-SOURCE plugin support-files
config.h.cmake libmysql README tests


一打cmake 。就出上面提示的话。
机器上还安不上make


最开始其实登录mysql出的是 error:/tmp/mysql.sock not found错误。
是用软件中心下载的mysql5.1.5

各种google 百度 都没能解决。 加链接ln -s 的
当我find / -name mysql.sock 的时候
该文件出现的位置居然是 /root/.local/shar/Trxxx/files/mysql.sock
我把这路径加如链接也不能解决。

还是那个错误。

最后搞的我一顿下mysql 一顿换mysql 一顿暴力删除mysql
后来干脆气的全删除重新下载mysql了
在后来发现在软件中心安不了已经安装的mysql了 (我暴力删除的 rm -fr)
我完全蒙了。


上火啊。


求指明路。

这ylmf os 11 没make 没cmake 没rpm 。。。什么都没。
软件中心下载100%却安不上 总卡在50%那。。。其他的软件倒是能安装。


没yum 没apt-get install


我都不知道我表达是什么意思了。

还是明天来等大神解救我吧。
...全文
845 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
px_hao 2012-05-24
  • 打赏
  • 举报
回复
ylmf OS怎么连cmake都装不上
sciolist 2012-05-23
  • 打赏
  • 举报
回复
cmake .
wyabc1986 2012-05-21
  • 打赏
  • 举报
回复
安装上make 就ok了
  • 打赏
  • 举报
回复
之后又换了 深度 deepin unbuntu
mysql 在软件中心安装。
也能根据命令行安装了。

最后boss说换win7了。


  • 打赏
  • 举报
回复
[Quote=引用 3 楼 liv2005 的回复:]

男人要学会冷静分析问题....
http://blog.csdn.net/liv2005/article/details/7181508

mysql 5.1.X可以按照如下的方式安装
5.0的话,就不需要--with-plugins这句、
5.5的话,就要cmake了,很烦,而且5.5不建议在线上系统使用,个人觉得很多新特性还不是很稳定。

su root
groupa……
[/Quote]


搁浅了。 boss 说实在不行远程连接别人的linux mysql 。。。

ylmf os 我现在对这系统有恐惧感了
还有linux下的mysql数据库
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 fangzhaoguo 的回复:]

引用楼主 sd4000784 的回复:
linux : ylmf os 11
mysql: 5.0.87 ,5.5.12 ,还又等着下载的几个。。(濒临崩溃)

我按照readme 和install 说明来一步一步操作的。。


机器上没make 软件中心下make 在安装的时候就卡在50%。。cmake时候还有错误。


cmake . 的错误:


C/C++ co……
[/Quote]

安装了 cmake 也出来了 make没有
Liv2005 2012-03-02
  • 打赏
  • 举报
回复
男人要学会冷静分析问题....
http://blog.csdn.net/liv2005/article/details/7181508

mysql 5.1.X可以按照如下的方式安装
5.0的话,就不需要--with-plugins这句、
5.5的话,就要cmake了,很烦,而且5.5不建议在线上系统使用,个人觉得很多新特性还不是很稳定。

su root
groupadd mysql
useradd -g mysql -s "/sbin/nologin" mysql
tar zxvf mysql-5.1.58.tar.gz
cd mysql-5.1.58
./configure --prefix=/usr/local/mysql --localstatedir=/home/mysql --with-charset=gbk --with-extra-charsets=all --enable-thread-safe-client --with-plugins=partition,innobase,myisam,innodb_plugin,myisammrg,heap
make
make install
chown mysql:mysql -R /usr/local/mysql/
cd ../

应该就可以了,make这种命令,应该不会没有吧,除非gcc都没有...所以应该是权限问题..
  • 打赏
  • 举报
回复
root@js-desktop:/var/local# ps -ef | grep mysql

root 26875 26757 0 09:05 pts/0 00:00:00 grep --color=auto mysql


find / -name mysql.sock 找不到了(应该我全删了。)



root@js-desktop:/var/local# mysql

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

而且这文件也不能cp 我崩了 重装系统么?


  • 打赏
  • 举报
回复

继续悲剧中。
fangzhaoguo 2012-03-02
  • 打赏
  • 举报
回复
[Quote=引用楼主 sd4000784 的回复:]
linux : ylmf os 11
mysql: 5.0.87 ,5.5.12 ,还又等着下载的几个。。(濒临崩溃)

我按照readme 和install 说明来一步一步操作的。。


机器上没make 软件中心下make 在安装的时候就卡在50%。。cmake时候还有错误。


cmake . 的错误:


C/C++ code


C……
[/Quote]

你安装cmake了没有

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧