UC故事2011/12/16 build linux servers
2011-12-16 19:32
393 查看
在Redhat上编译InfoServer
1. 安装mysql
# rmp -ivh mysql-5.0.45-7.el5.i386.rpm
[root@localhost software-repository]# rpm -ivh mysql-5.0.45-7.el5.i386.rpm
warning: mysql-5.0.45-7.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
perl(DBI) is needed by mysql-5.0.45-7.el5.i386
serach
安装mysql
1. 安装perl-DBI-1.52-1.fc6.i386.rpm
2. 安装perl-DBD-MySQL-3.0007-1.fc6.i386.rpm
3. 安装mysql-5.0.45-7.el5.i386.rpm
4. 安装mysql-server-5.0.45-7.el5.i386.rpm
启动服务器
service mysqld start
修改root密码
mysqladmin -u root password '123456'
[root@localhost software-repository]# rpm -ivh perl-DBI-1.52-1.fc6.i386.rpm
warning: perl-DBI-1.52-1.fc6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing... ########################################### [100%]
1:perl-DBI ########################################### [100%]
[root@localhost software-repository]# rpm -ivh mysql-5.0.45-7.el5.i386.rpm
warning: mysql-5.0.45-7.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:mysql ########################################### [100%]
2. Info server
# make
Begin: 19:11 end: 19:19
SAME ERROR AS AT OFFICE
make[2]: Leaving directory `/root/project-space/box-infoserver-trunk-20111116/src/Server/PSTN/TelephoneMeeting'
make[1]: Leaving directory `/root/project-space/box-infoserver-trunk-20111116/src/Server/InfoSvr4.2'
g++ -Wall -Wpointer-arith -pipe -D_REENTRANT -D_GNU_SOURCE -Wall -Wpointer-arith -pipe -D_REENTRANT -D_GNU_SOURCE -g -g -g -g -O3 -O3 -DRT_UNIX -DRT_LINUX -DRT_UNIX -DRT_LINUX -D__MYSQL__ -D_Support_Dump_ -DSNMP_SUPPORT -D__INFO_ENABLE_FLOW_CONTROL__ -DRT_DEBUG
-DRT_DISABLE_ASSERTE -I../../../src/util/h -I../../../src/h -I../../../src/common/h -I../../../src/Server/InfoSvr4.2/gcc -I../../../src/Server/InfoSvr4.2/mcs -I../../../src/Server/InfoSvr4.2/sdd -I../../../src/Server/InfoSvr4.2/h -I../../../src/Server/InfoSvr4.2/application
-I../../../h -I../../../src/Server/h -I../../../src/Server/common -I../../../src/Server/InfoSvr4.2/ServerInternalPdu -I../../../src/Server/InfoSvr4.2/application -I/usr/include/mysql -I../../../src/Server/messageBus -I../../../src/Server/SvrConfProxy -I../../../src/Server/PSTN/TelephoneMeeting
-c -o ../../../bin/Server/InfoServer/InfoServer.o InfoServer.cpp
g++ -Wall -Wpointer-arith -pipe -D_REENTRANT -D_GNU_SOURCE -Wall -Wpointer-arith -pipe -D_REENTRANT -D_GNU_SOURCE -g -g -g -g -O3 -O3 -DRT_UNIX -DRT_LINUX -DRT_UNIX -DRT_LINUX -D__MYSQL__ -D_Support_Dump_ -DSNMP_SUPPORT -D__INFO_ENABLE_FLOW_CONTROL__ -DRT_DEBUG
-DRT_DISABLE_ASSERTE -I../../../src/util/h -I../../../src/h -I../../../src/common/h -I../../../src/Server/InfoSvr4.2/gcc -I../../../src/Server/InfoSvr4.2/mcs -I../../../src/Server/InfoSvr4.2/sdd -I../../../src/Server/InfoSvr4.2/h -I../../../src/Server/InfoSvr4.2/application
-I../../../h -I../../../src/Server/h -I../../../src/Server/common -I../../../src/Server/InfoSvr4.2/ServerInternalPdu -I../../../src/Server/InfoSvr4.2/application -I/usr/include/mysql -I../../../src/Server/messageBus -I../../../src/Server/SvrConfProxy -I../../../src/Server/PSTN/TelephoneMeeting
-c -o ../../../bin/Server/InfoServer/InfoSvrConfigLoader.o InfoSvrConfigLoader.cpp
g++ -Wall -Wpointer-arith -pipe -D_REENTRANT -D_GNU_SOURCE -Wall -Wpointer-arith -pipe -D_REENTRANT -D_GNU_SOURCE -g -g -g -g -O3 -O3 -DRT_UNIX -DRT_LINUX -DRT_UNIX -DRT_LINUX -D__MYSQL__ -D_Support_Dump_ -DSNMP_SUPPORT -D__INFO_ENABLE_FLOW_CONTROL__ -DRT_DEBUG
-DRT_DISABLE_ASSERTE -I../../../src/util/h -I../../../src/h -I../../../src/common/h -I../../../src/Server/InfoSvr4.2/gcc -I../../../src/Server/InfoSvr4.2/mcs -I../../../src/Server/InfoSvr4.2/sdd -I../../../src/Server/InfoSvr4.2/h -I../../../src/Server/InfoSvr4.2/application
-I../../../h -I../../../src/Server/h -I../../../src/Server/common -I../../../src/Server/InfoSvr4.2/ServerInternalPdu -I../../../src/Server/InfoSvr4.2/application -I/usr/include/mysql -I../../../src/Server/messageBus -I../../../src/Server/SvrConfProxy -I../../../src/Server/PSTN/TelephoneMeeting
-o ../../../bin/InfoServer ../../../bin/Server/InfoServer/InfoServer.o ../../../bin/Server/InfoServer/InfoSvrConfigLoader.o -ldl -lpthread -lrt -ldl -lpthread -lrt ../../../bin/libgcc.a ../../../bin/libapplication.a ../../../bin/libInfoTelMeeting.a ../../../bin/libmcs.a
../../../bin/libsdd.a ../../../bin/libsdcommon.a ../../../bin/libfilemanager.a ../../../bin/libinfosessioncommon.a ../../../bin/libSvrConfProxy.a ../../../bin/libmessagebus.a ../../../bin/libinfofilecache.a ../../../bin/libconnmgr.a ../../../bin/libdblog.a
../../../bin/libs/libdbthread.a ../../../bin/libinfoapppdu.a ../../../bin/libfilerecord.a ../../../bin/libaudiomixengine.a ../../../bin/libServerInternalPdu.a ../../../bin/libinfoapppdu.a ../../../bin/common/GcServerPdu.o ../../../bin/common/GcClientPdu/GcClientPdu.o
../../../bin/libmonitor.a ../../../bin/libs/libaudiocodec32.a ../../../bin/libsecurity.a ../../../bin/libnetwork.a ../../../bin/libframework.a -lmysqlclient -lz
../../../bin/libs/libdbthread.a: could not read symbols: File format not recognized
collect2: ld 返回 1
make: *** [../../../bin/InfoServer] 错误 1
3. mysql的安装目录
http://hi.baidu.com/%D7%F3%C6%B2%D7%D3%B5%CE%C5%BC/blog/item/8c8915501059544e1038c2f1.html
mysql的安装:http://linux.chinaunix.net/techdoc/database/2007/04/27/956470.shtml
从源代码开始编译安装MySQL:/article/6934390.html
4. 再次build
主要问题:
* libdbthread.a有问题,单独build它
.a ../../../bin/libnetwork.a ../../../bin/libframework.a -lmysqlclient -lz
../../../bin/libs/libdbthread.a: could not read symbols: File format not recognized
* libdbthread.a,对mysql的位置进行修改
* -lmysqlclient找不到,增加-L/usr/local/mysql/lib/mysql
* 最后问题:大量的编译错误:
/root/project-space/box-infoserver-trunk-20111116/src/Server/InfoSvr4.2/mcs/ChannelPort.cpp:49: undefined reference to `CInfoSvrSyncChannelInfoRequestPdu::Decode(CRtMessageBlock&)'
/root/project-space/box-infoserver-trunk-20111116/src/Server/InfoSvr4.2/mcs/ChannelPort.cpp:54: undefined reference to `CInfoSvrSyncChannelInfoRequestPdu::~CInfoSvrSyncChannelInfoRequestPdu()'
/root/project-space/box-infoserver-trunk-20111116/src/Server/InfoSvr4.2/mcs/ChannelPort.cpp:81: undefined reference to `CInfoSvrServerJoinChannelRequestPdu::CInfoSvrServerJoinChannelRequestPdu()'
/root/project-space/box-infoserver-trunk-20111116/src/Server/InfoSvr4.2/mcs/ChannelPort.cpp:82: undefined reference to `CInfoSvrServerJoinChannelRequestPdu::D
1. 安装mysql
# rmp -ivh mysql-5.0.45-7.el5.i386.rpm
[root@localhost software-repository]# rpm -ivh mysql-5.0.45-7.el5.i386.rpm
warning: mysql-5.0.45-7.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
perl(DBI) is needed by mysql-5.0.45-7.el5.i386
serach
安装mysql
1. 安装perl-DBI-1.52-1.fc6.i386.rpm
2. 安装perl-DBD-MySQL-3.0007-1.fc6.i386.rpm
3. 安装mysql-5.0.45-7.el5.i386.rpm
4. 安装mysql-server-5.0.45-7.el5.i386.rpm
启动服务器
service mysqld start
修改root密码
mysqladmin -u root password '123456'
[root@localhost software-repository]# rpm -ivh perl-DBI-1.52-1.fc6.i386.rpm
warning: perl-DBI-1.52-1.fc6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing... ########################################### [100%]
1:perl-DBI ########################################### [100%]
[root@localhost software-repository]# rpm -ivh mysql-5.0.45-7.el5.i386.rpm
warning: mysql-5.0.45-7.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:mysql ########################################### [100%]
2. Info server
# make
Begin: 19:11 end: 19:19
SAME ERROR AS AT OFFICE
make[2]: Leaving directory `/root/project-space/box-infoserver-trunk-20111116/src/Server/PSTN/TelephoneMeeting'
make[1]: Leaving directory `/root/project-space/box-infoserver-trunk-20111116/src/Server/InfoSvr4.2'
g++ -Wall -Wpointer-arith -pipe -D_REENTRANT -D_GNU_SOURCE -Wall -Wpointer-arith -pipe -D_REENTRANT -D_GNU_SOURCE -g -g -g -g -O3 -O3 -DRT_UNIX -DRT_LINUX -DRT_UNIX -DRT_LINUX -D__MYSQL__ -D_Support_Dump_ -DSNMP_SUPPORT -D__INFO_ENABLE_FLOW_CONTROL__ -DRT_DEBUG
-DRT_DISABLE_ASSERTE -I../../../src/util/h -I../../../src/h -I../../../src/common/h -I../../../src/Server/InfoSvr4.2/gcc -I../../../src/Server/InfoSvr4.2/mcs -I../../../src/Server/InfoSvr4.2/sdd -I../../../src/Server/InfoSvr4.2/h -I../../../src/Server/InfoSvr4.2/application
-I../../../h -I../../../src/Server/h -I../../../src/Server/common -I../../../src/Server/InfoSvr4.2/ServerInternalPdu -I../../../src/Server/InfoSvr4.2/application -I/usr/include/mysql -I../../../src/Server/messageBus -I../../../src/Server/SvrConfProxy -I../../../src/Server/PSTN/TelephoneMeeting
-c -o ../../../bin/Server/InfoServer/InfoServer.o InfoServer.cpp
g++ -Wall -Wpointer-arith -pipe -D_REENTRANT -D_GNU_SOURCE -Wall -Wpointer-arith -pipe -D_REENTRANT -D_GNU_SOURCE -g -g -g -g -O3 -O3 -DRT_UNIX -DRT_LINUX -DRT_UNIX -DRT_LINUX -D__MYSQL__ -D_Support_Dump_ -DSNMP_SUPPORT -D__INFO_ENABLE_FLOW_CONTROL__ -DRT_DEBUG
-DRT_DISABLE_ASSERTE -I../../../src/util/h -I../../../src/h -I../../../src/common/h -I../../../src/Server/InfoSvr4.2/gcc -I../../../src/Server/InfoSvr4.2/mcs -I../../../src/Server/InfoSvr4.2/sdd -I../../../src/Server/InfoSvr4.2/h -I../../../src/Server/InfoSvr4.2/application
-I../../../h -I../../../src/Server/h -I../../../src/Server/common -I../../../src/Server/InfoSvr4.2/ServerInternalPdu -I../../../src/Server/InfoSvr4.2/application -I/usr/include/mysql -I../../../src/Server/messageBus -I../../../src/Server/SvrConfProxy -I../../../src/Server/PSTN/TelephoneMeeting
-c -o ../../../bin/Server/InfoServer/InfoSvrConfigLoader.o InfoSvrConfigLoader.cpp
g++ -Wall -Wpointer-arith -pipe -D_REENTRANT -D_GNU_SOURCE -Wall -Wpointer-arith -pipe -D_REENTRANT -D_GNU_SOURCE -g -g -g -g -O3 -O3 -DRT_UNIX -DRT_LINUX -DRT_UNIX -DRT_LINUX -D__MYSQL__ -D_Support_Dump_ -DSNMP_SUPPORT -D__INFO_ENABLE_FLOW_CONTROL__ -DRT_DEBUG
-DRT_DISABLE_ASSERTE -I../../../src/util/h -I../../../src/h -I../../../src/common/h -I../../../src/Server/InfoSvr4.2/gcc -I../../../src/Server/InfoSvr4.2/mcs -I../../../src/Server/InfoSvr4.2/sdd -I../../../src/Server/InfoSvr4.2/h -I../../../src/Server/InfoSvr4.2/application
-I../../../h -I../../../src/Server/h -I../../../src/Server/common -I../../../src/Server/InfoSvr4.2/ServerInternalPdu -I../../../src/Server/InfoSvr4.2/application -I/usr/include/mysql -I../../../src/Server/messageBus -I../../../src/Server/SvrConfProxy -I../../../src/Server/PSTN/TelephoneMeeting
-o ../../../bin/InfoServer ../../../bin/Server/InfoServer/InfoServer.o ../../../bin/Server/InfoServer/InfoSvrConfigLoader.o -ldl -lpthread -lrt -ldl -lpthread -lrt ../../../bin/libgcc.a ../../../bin/libapplication.a ../../../bin/libInfoTelMeeting.a ../../../bin/libmcs.a
../../../bin/libsdd.a ../../../bin/libsdcommon.a ../../../bin/libfilemanager.a ../../../bin/libinfosessioncommon.a ../../../bin/libSvrConfProxy.a ../../../bin/libmessagebus.a ../../../bin/libinfofilecache.a ../../../bin/libconnmgr.a ../../../bin/libdblog.a
../../../bin/libs/libdbthread.a ../../../bin/libinfoapppdu.a ../../../bin/libfilerecord.a ../../../bin/libaudiomixengine.a ../../../bin/libServerInternalPdu.a ../../../bin/libinfoapppdu.a ../../../bin/common/GcServerPdu.o ../../../bin/common/GcClientPdu/GcClientPdu.o
../../../bin/libmonitor.a ../../../bin/libs/libaudiocodec32.a ../../../bin/libsecurity.a ../../../bin/libnetwork.a ../../../bin/libframework.a -lmysqlclient -lz
../../../bin/libs/libdbthread.a: could not read symbols: File format not recognized
collect2: ld 返回 1
make: *** [../../../bin/InfoServer] 错误 1
3. mysql的安装目录
http://hi.baidu.com/%D7%F3%C6%B2%D7%D3%B5%CE%C5%BC/blog/item/8c8915501059544e1038c2f1.html
mysql的安装:http://linux.chinaunix.net/techdoc/database/2007/04/27/956470.shtml
从源代码开始编译安装MySQL:/article/6934390.html
4. 再次build
主要问题:
* libdbthread.a有问题,单独build它
.a ../../../bin/libnetwork.a ../../../bin/libframework.a -lmysqlclient -lz
../../../bin/libs/libdbthread.a: could not read symbols: File format not recognized
* libdbthread.a,对mysql的位置进行修改
* -lmysqlclient找不到,增加-L/usr/local/mysql/lib/mysql
* 最后问题:大量的编译错误:
/root/project-space/box-infoserver-trunk-20111116/src/Server/InfoSvr4.2/mcs/ChannelPort.cpp:49: undefined reference to `CInfoSvrSyncChannelInfoRequestPdu::Decode(CRtMessageBlock&)'
/root/project-space/box-infoserver-trunk-20111116/src/Server/InfoSvr4.2/mcs/ChannelPort.cpp:54: undefined reference to `CInfoSvrSyncChannelInfoRequestPdu::~CInfoSvrSyncChannelInfoRequestPdu()'
/root/project-space/box-infoserver-trunk-20111116/src/Server/InfoSvr4.2/mcs/ChannelPort.cpp:81: undefined reference to `CInfoSvrServerJoinChannelRequestPdu::CInfoSvrServerJoinChannelRequestPdu()'
/root/project-space/box-infoserver-trunk-20111116/src/Server/InfoSvr4.2/mcs/ChannelPort.cpp:82: undefined reference to `CInfoSvrServerJoinChannelRequestPdu::D
相关文章推荐
- UC故事 2011/12/19 build linix servers
- UC故事 05/10/2011 杂记
- UC故事2011/12/17 build系统研究
- ASP.NET Core 2.0 MVC 发布部署--------- SUSE 16 Linux Enterprise Server 12 SP2 X64 具体操作
- Linux那些事儿之我是UHCI(12)一个函数引发的故事(三)
- UC 故事 05/13/2011 杂记:代码
- UC故事 05/08/2011 杂记
- UC故事 05/09/2011
- UC故事 05/13/2011 - 2:代码
- UC故事 2012/04/07 build server/client
- UC故事 2011/10/09
- 戴文的Linux内核专题:16 配置内核 (12)
- 微型嵌入式GUI(图形界面系统,Linux,DOS,uC/OS)-相关下载!
- LinuxStudyNote(12)-Linux常用命令(2)-文件处理命令(7)mv文件目录剪切及更名
- 每天一个linux命令(12):more命令
- UC故事2011/11/18
- Linux 学习笔记_12_文件共享服务_2_FTP应用--vsftpd
- 16-Linux-权限扩展
- Linux--12:嫌Ubuntu 12.04字体发虚,对眼睛保护有加的进来
- 操作系统Unix、Windows、Mac OS、Linux的故事