- 主题:YTHTBBS配置文件的修改
那现在我该怎么做呢?
现在我在/home/bbssrc/local_utl里make
出现echo "#include <mysql/mysql.h>" > usesql.h
/bin/sh: line 1: usesql.h: 权限不够
make: *** [usesql.h] Error 1
现在我到底应该怎么做呢?
【 在 dinger.bbs@ytht.net (test) 的大作中提到: 】
: 就是说如果不是全新安装 就最好别再bbssrc或bbssrc/src里make install
: 会覆盖掉.BOARDS
: 【 在 yaomaohua.bbs@bbs.qxntc.edu.cn (缘起缘灭) 的大作中提到: 】
: : 什么备份?
: : 我一直安装来的。现在就差shminit了
: : 因为我是第二次安装bbs,所以不会备份。呵呵,不好意思
: ...................
--
FROM 219.141.123.114
它说权限不够
是不是要chown一下?
【 在 yaomaohua.bbs@bbs.qxntc.edu.cn (缘起缘灭) 的大作中提到: 】
: 那现在我该怎么做呢?
: 现在我在/home/bbssrc/local_utl里make
: 出现echo "#include <mysql/mysql.h>" > usesql.h
: /bin/sh: line 1: usesql.h: 权限不够
: make: *** [usesql.h] Error 1
: 现在我到底应该怎么做呢?
: 【 在 dinger.bbs@ytht.net (test) 的大作中提到: 】
: ...................
--
FROM 211.155.251.247
可是我看过了呀
usesql.h
这个文件是属于bbs这个用户的呀
【 在 dinger (test) 的大作中提到: 】
: 它说权限不够
: 是不是要chown一下?
: 【 在 yaomaohua.bbs@bbs.qxntc.edu.cn (缘起缘灭) 的大作中提到: 】
: : 那现在我该怎么做呢?
: : 现在我在/home/bbssrc/local_utl里make
: : 出现echo "#include <mysql/mysql.h>" > usesql.h
: : /bin/sh: line 1: usesql.h: 权限不够
: ...................
--
FROM 218.194.248.3
我chown完了,再make,又出错了。麻烦dinger再帮我看看
echo "#include <mysql/mysql.h>" > usesql.h
cat /home/bbs/etc/sysconf.ini|grep SQL|sed -e 's/^/#define /;s/=//g' >> usesql.h
gcc -D_GNU_SOURCE -Wall -O2 -mmmx -msse -mcpu=pentium4 -march=pentium4 -pipe -DCONF_HAVE_OPENPTY -I../include -I../ythtlib -I../libythtbbs -g -DLINUX -I/usr/include/mysql -DENABLE_MYSQL -c -g bbsevad.c
bbsevad.c: In function `connsql':
bbsevad.c:17: `SQLUSER' undeclared (first use in this function)
bbsevad.c:17: (Each undeclared identifier is reported only once
bbsevad.c:17: for each function it appears in.)
bbsevad.c:17: `SQLPASSWD' undeclared (first use in this function)
bbsevad.c:17: `SQLDB' undeclared (first use in this function)
make: *** [bbsevad.o] Error 1
【 在 dinger (test) 的大作中提到: 】
: 它说权限不够
: 是不是要chown一下?
: 【 在 yaomaohua.bbs@bbs.qxntc.edu.cn (缘起缘灭) 的大作中提到: 】
: : 那现在我该怎么做呢?
: : 现在我在/home/bbssrc/local_utl里make
: : 出现echo "#include <mysql/mysql.h>" > usesql.h
: : /bin/sh: line 1: usesql.h: 权限不够
: ...................
--
FROM 218.194.248.3
usesql.h类似这样就行:
#include <mysql/mysql.h>
#define SQLDB "test"
#define SQLUSER "test"
#define SQLPASSWD "test"
【 在 sdymhua (毛毛) 的大作中提到: 】
: 我chown完了,再make,又出错了。麻烦dinger再帮我看看
: echo "#include <mysql/mysql.h>" > usesql.h
: cat /home/bbs/etc/sysconf.ini|grep SQL|sed -e 's/^/#define /;s/=//g' >> usesql.h
: gcc -D_GNU_SOURCE -Wall -O2 -mmmx -msse -mcpu=pentium4 -march=pentium4 -pipe -DCONF_HAVE_OPENPTY -I../include -I../ythtlib -I../libythtbbs -g -DLINUX -I/usr/include/mysql -DENABLE_MYSQL -c -g bbsevad.c
: ...................
--
FROM 211.155.251.247
太恐怖了!
src
make install
完了
【 在 yaomaohua.bbs@bbs.qxntc.edu.cn (缘起缘灭) 的大作中提到: 】
: 现在我在安装shminit
: 完成后再$make install
: 又出现错误了
: make -C src install
: make[1]: Entering directory `/home/bbssrc/src'
: ( cd ..; ./Install.sh)
: This script will install the whole BBS to /home/bbs...
: ...................
--
FROM 202.114.14.228
对,我的usesql.h就是这样。
现在我该怎么做呢?
【 在 dinger (test) 的大作中提到: 】
: usesql.h类似这样就行:
: #include <mysql/mysql.h>
: #define SQLDB "test"
: #define SQLUSER "test"
: #define SQLPASSWD "test"
: 【 在 sdymhua (毛毛) 的大作中提到: 】
: : 我chown完了,再make,又出错了。麻烦dinger再帮我看看
: ...................
--
FROM 218.194.248.3
然后不能编译么? 提示什么错误
【 在 sdymhua (毛毛) 的大作中提到: 】
: 对,我的usesql.h就是这样。
: 现在我该怎么做呢?
: 【 在 dinger (test) 的大作中提到: 】
: : usesql.h类似这样就行:
: : #include <mysql/mysql.h>
: : #define SQLDB "test"
: : #define SQLUSER "test"
: : #define SQLPASSWD "test"
: ...................
--
FROM 211.155.251.247
感谢dinger
照你所说的,我make install完成了
谢谢
【 在 sdymhua.bbs@ytht.net (毛毛) 的大作中提到: 】
: 对,我的usesql.h就是这样。
: 现在我该怎么做呢?
: 【 在 dinger (test) 的大作中提到: 】
: : usesql.h类似这样就行:
: : #include <mysql/mysql.h>
: : #define SQLDB "test"
: : #define SQLUSER "test"
: : #define SQLPASSWD "test"
: ...................
--
FROM 219.141.123.114
可以了
我make install
就行了
【 在 dinger.bbs@ytht.net (test) 的大作中提到: 】
: 然后不能编译么? 提示什么错误
: 【 在 sdymhua (毛毛) 的大作中提到: 】
: : 对,我的usesql.h就是这样。
: : 现在我该怎么做呢?
: : ...................
--
FROM 219.141.123.114