阅 读 文 章

[准原创]sol9_x86+apache+mysql+php+discuz

[来源:网上转载 (http://www.chinaunix.net) | 作者:网友(Linux@初学者) | 时间:2007-05-27 | 浏览:人次 ]


环境:VM+Solaris9 for x86
软件:httpd-2.0.52 
      mysql-4.0.16       
      php-4.3.9
      Discuz-2.2F
参考的文档有:
http://bbs.chinaunix.net/forum/viewtopic.php?t=343241&highlight=llzqq
http://bbs.chinaunix.net/forum/viewtopic.php?t=43778
http://bbs.chinaunix.net/forum/viewtopic.php?t=329698
http://bbs.chinaunix.net/forum/viewtopic.php?t=129215&highlight=sql_lex.cc
http://bbs.chinaunix.net/forum/viewtopic.php?t=265341
http://bbs.chinaunix.net/forum/viewtopic.php?t=193717
http://bbs.chinaunix.net/forum/6/040921/411198.html

所需安装的软件包括:
bison-1.875d
perl-5.8.5
ncurse-5.4
autoconf-2.59 
automake-1.9
make-3.80
zlib-1.2.1
gcc-3.4.1(libgcc-3.4.1在这其中)
上述软件可以从http://www.sunfreeware.com/下载


一、修改路径
vi /etc/profile
在最后写入:
PATH=$PATH:/usr/ccs/bin:/usr/local/lib:/usr/local/bin:/usr/lib:/usr/local/httpd/bin:/usr/local/mysql/share/mysql:/usr/local/mysql/bin


CC=gcc 
CFLAGS="-O6" 
CXX=gcc 
CXXFLAGS="-O6 -felide-constructors -fno-exceptions -fno-rtti"
保存退出
执行. /etc/profile
使修改立即生效。

二、编译MYSQL
useradd mysql
groupadd mysql
#./configure --prefix=/usr/local/mysql --with-mysqld-user=mysql --with-charset=gb2312 --with-extra-charsets=all 

--with-unix-socket-path=/usr/local/mysql/var/mysql.sock
如在编译过程中出现:
In file included from /usr/include/sys/reg.h:13, 
from /usr/include/sys/regset.h:24, 
from /usr/include/sys/ucontext.h:21, 
from /usr/local/lib/gcc/i386-pc-solaris2.9/3.4.0/include/sys/signal.h:249, 
from /usr/include/signal.h:27, 
from mysql.cc:40: 
/usr/include/ia32/sys/reg.h:300: error: `upad128_t' does not name a type 
/usr/include/ia32/sys/reg.h:301: error: `upad128_t' does not name a type 
/usr/include/ia32/sys/reg.h:331: error: `upad128_t' does not name a type 
make[2]: *** [mysql.o] Error 1 
make[2]: Leaving directory `/export/home/z3j/mysql-4.0.18/client' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/export/home/z3j/mysql-4.0.18' 
make: *** [all] Error 2

请修改/usr/include/ia32/sys/reg.h 
在第245行 
写入
typedef union { 
long _q; 
uint32_t _l[4]; 
} upad128_t;


如果出现:
sql_lex.cc: In function `void lex_init()': 
sql_lex.cc:85: `symbols' undeclared (first use this function) 
sql_lex.cc:85: (Each undeclared identifier is reported only once 
论坛热门帖子: [lch203] 写得蛮好的linux学习笔记(10-21)
[黑马制造] 学习java的30个目标(10-19)
[笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19)
[udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18)
[沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18)
TAG标签: 原创 回复 make http://bbs.chinaunix.net/forum/viewtopic.php

最新评论 共有0位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表

网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.chmhome.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.