紧急求助(跪求):cmake编译mysql-5.5.18问题,

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
mswwjick
帖子: 645
注册时间: 2009-01-28 21:42

紧急求助(跪求):cmake编译mysql-5.5.18问题,

#1

帖子 mswwjick » 2011-12-23 18:06

紧急求助(都是用源码编译的):
我先编译了cmake软件包,然后想用cmake来编译mysql,编译步骤是这样的:
cmake -DCMAKE_INSTALL_PREFIX=/iCSP/res/mysql \
-DMYSQL_UNIX_ADDR=/tmp/mysql.sock \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DWITH_EXTRA_CHARSETS:STRING=utf8,gbk \
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_MEMORY_STORAGE_ENGINE=1 \
-DWITH_READLINE=1 \
-DENABLED_LOCAL_INFILE=1 \
-DMYSQL_DATADIR=/var/mysql/data \
-DMYSQL_USER=mysql
但是一按回车就出现以下问题了,不知道坛里哪位大侠知道能不能有办法解决,先谢谢了
CMake Error at CMakeLists.txt:493 (INCLUDE):
include could not find load file:
/pkg/mysql/Tests/CMakeInstall.cmake
CMake Error at CMakeLists.txt:497 (INCLUDE):
include could not find load file:
CompileFlags.cmake
CMake Error at CMakeLists.txt:228 (ADD_SUBDIRECTORY):
add_subdirectory given source "Source/kwsys" which is not an existing
directory.
Call Stack (most recent call first):
CMakeLists.txt:522 (CMAKE_BUILD_UTILITIES)
CMake Error: File /pkg/mysql/cmake_uninstall.cmake.in does not exist.
CMake Error at CMakeLists.txt:577 (CONFIGURE_FILE):
configure_file Problem configuring file
CMake Error at CMakeLists.txt:584 (INCLUDE):
include could not find load file:
CMakeCPack.cmake
CMake Error: File /pkg/mysql/Templates/CTestScript.cmake.in does not exist.
CMake Error at CMakeLists.txt:160 (CONFIGURE_FILE):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:587 (CMAKE_SETUP_TESTING)
CMake Error: File /pkg/mysql/DartLocal.conf.in does not exist.
CMake Error at CMakeLists.txt:588 (CONFIGURE_FILE):
configure_file Problem configuring file
CMake Error at CMakeLists.txt:599 (ADD_SUBDIRECTORY):
add_subdirectory given source "Source" which is not an existing directory.
CMake Error at CMakeLists.txt:600 (ADD_SUBDIRECTORY):
add_subdirectory given source "Utilities" which is not an existing
directory.
CMake Error at CMakeLists.txt:601 (ADD_SUBDIRECTORY):
add_subdirectory given source "Tests" which is not an existing directory.
-- Configuring incomplete, errors occurred!
头像
mswwjick
帖子: 645
注册时间: 2009-01-28 21:42

Re: 紧急求助(跪求):cmake编译mysql-5.5.18问题,

#2

帖子 mswwjick » 2011-12-23 18:24

:em19 :em21 :em19 :em21 :em87 :em87 :em87 :em87
回复