手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

LAMP架构+Discuz论坛

[日期:2014-04-06] 来源:Linux社区  作者:许鹤 [字体:大 中 小]

Discuz:

cd /root/Desktop/LAMP/

unzip Discuz_7.2_FULL_SC_GBK.zip

cp -rupload/  /usr/local/apache/htdocs/或直接把安装包拿到/usr/local/apache/htdocs/下解压

chmod 777 -R /usr/local/apache/htdocs/upload/

测试:在linux-firefox浏览器地址栏输入http://127.0.0.1/upload/install (本机测试)

或在win-IE浏览器地址栏输入http://xxx.xxx.xxx.xxx/upload/install  (支持中文,桥接/NAT模式)

进入Discuz论坛安装界面

Discuz

搭建过程中遇到的问题:

1.安装MySQL,执行./INSTALL-SOURCE时,遇到以下两种情况:

checking for g++... no

checking for c++... no

checking for gpp... no

checking for aCC... no

checking for CC... no

checking for cxx... no

checking for cc++... no

checking for cl... no

checking for FCC... no

checking for KCC... no

checking for RCC... no

checking for xlC_r... no

checking for xlC... No

  .................

configure: error: C++ preprocessor "/lib/cpp" fails sanity check

See `config.log' for more details.

原因:未装gcc等编译工具

解决:# yum install gcc* -y再./INSTALL-SOURCE

 


checking for tgetent in -lncurses... no              lncurses======>l : lib

checking for tgetent in -lcurses... No                    ==>ncurses: 库名(待装)

checking for tgetent in -ltermcap... no

checking for termcap functions library... configure: error: No curses/termcap library found

make: *** 没有指明目标并且找不到 makefile。 停止。

make: *** 没有规则可以创建目标“install”。 停止。

cp: 无法 stat “support-files/my-medium.cnf”: 没有那个文件或目录

./INSTALL-SOURCE: line 6: cd: /usr/local/mysql: 没有那个文件或目录

./INSTALL-SOURCE: line 7: bin/mysql_install_db: 没有那个文件或目录

chown: 无法访问 “var”: 没有那个文件或目录

./INSTALL-SOURCE: line 11: bin/mysqld_safe: 没有那个文件或目录

原因:ncurses/curses/termcap 库没有安装

解决:

① 下载一个ncurses-5.6.tar.gz,wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz
tar zxvf ncurses-5.6.tar.gz
cd ncurses-5.6
./configure –prefix=/usr –with-shared –without-debug
make
make install clean

② 或者yum install ncurses* -y

再./INSTALL-SOURCE

linux
相关资讯       lamp 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款