sql_lex.cc:85: for each function it appears in.)
sql_lex.cc:87: `sql_functions' undeclared (first use this function)
sql_lex.cc: In function `int find_keyword(LEX *, unsigned int, bool)':
sql_lex.cc:171: implicit declaration of function `int get_hash_symbol(...)'
sql_lex.cc:171: initialization to `SYMBOL *' from `int' lacks a cast
解决办法:
cd sql
make gen_lex_hash
./gen_lex_hash >; lex_hash.h (如果提示xx文件找不到,就把/usr/local/lib/的xx文件cp到/usr/lib下)
make
# cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf
# /usr/local/mysql/bin/mysql_install_db
# chmod -R 1777 /usr/local/mysql/var
# chown -R mysql /usr/local/mysql/
# chgrp -R mysql /usr/local/mysql/
启动MYSQL:
# /usr/local/mysql/share/mysql/mysql.server start
# /usr/local/mysql/bin/mysqladmin -u root password 123456
# cp /usr/local/lib/libncurses.so.5 /usr/local/mysql/lib/mysql
# /usr/local/mysql/bin/mysql -uroot -p123456
三、编译APACHE
#./configure --prefix=/usr/local/httpd --enable-track-vars --enable-cgi --with-config-file-path=/usr/local/httpd/conf
--with-charset=gb2312 --with-extra-charsets=all --enable-so;make;make install
修改配置文件:
vi /usr/local/httpd/conf/httpd.conf
将Group #-1改为Group nobody
找到#AddType application/x-tar .tgz 这行,在下面加一行。前面不要加#号。
AddType application/x-httpd-php .php
找到下面一行在后面加上index.php,这表示网站的默认页也能够为index.php
DirectoryIndex index.html index.html.var index.php
在行AddDefaultCharset ISO-8859-1下加入:
AddDefaultCharset GB2312
并注释掉AddDefaultCharset ISO-8859-1
四、编译PHP
#./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/httpd/bin/apxs --enable-track-vars
--enable-force-cgi-redirect --with-config-file-path=/usr/local/php/etc;make;make install
vi /usr/local/httpd/htdocs/index.php
写入:<? phpinfo(); ?>;
#chmod 755 index.php
#apachectl start
然后在IE中输入ip,测试一下是否成功了。
五、安装Discuz论坛
将下载下来的包中的Discuz!目录下的文件考到APACHE的网页根目录
在mysql中创建一个数据库bbs:
mysql>;create database bbs;
重启一下APACHE:
#apachectl restart
在IE地址栏输入:http://ip/install.php
按提示操作:
# chmod 707 config.php
# chmod 777 ./tem*
# chmod 777 ./for*
# chmod 777 ./foru*/templ*
| 论坛热门帖子: | [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 |
注册
个人空间
