loongson & MySQL 如何处理 /etc/lsb-base-logging.sh: line 72: RUNLEVEL: unbound variable
2009-02-25 15:15
603 查看
在龙芯电脑上安装mysql的时候, 出现错误, 而且使用了编译源码方式也没能成功.
后在网上查到,原来是启动脚本里面的变量没定义而造成的.
&&&&&&&&&&&&提示如下&&&&&&&&&&&&
解压缩后会消耗掉 0B 的额外空间。
正在设置 mysql-server-5.0 (5.0.51a-24) ...
/etc/lsb-base-logging.sh: line 72: RUNLEVEL: unbound variable
invoke-rc.d:
init script mysql, action "stop"
failed.
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
I had this problem today, I don't believe it's mysql related, and there was
no need to do anything with mysql to work around it.
I encountered this today on dist-upgrade of debian sid, in sidux [ http://sidux.com ] run sid.
apt-get install -f did not resolve it, dist-upgrade halted on errors no
matter what I did.
The same exact error, so after poking around a little, and realizing that
maybe the error message actually meant what it said, that the RUNLEVEL variable
on line 42 was in fact not set.
Because I needed the upgrade to finish, I just did a simple hack, like
this:
<br />
#<br />
# The first piece is just what it is /lib/lsb/init-functions<br />
# for debian. We probably should supply something else for<br />
# ubuntu.<br />
#<br />
# TODO we need to know whats the next step in the progress<br />
# file and send exit to Splashy before X starts (after setting<br />
# the percentage to the right amount)<br />
#### NOTE: I ADDED THIS RUNLEVEL VARIABLE INITIALIZATION HERE:<br />
RUNLEVEL=''<br />
# int log_end_message (int exitstatus)<br />
log_end_msg () {<br />
# If no arguments were passed, return<br />
[ -z "${1:-}" ] && return 1<br />
Adding that RUNLEVEL initiatialization fixed the halt, allowed mysql to
finish installing. I want to stress though, this looks like an error in this
config file by the, I assume, ubuntu, developer.
I'm not sure what the consequences to this hack are, but since I don't use
splashy it's probably not going to be that bad.
Sorry about the extra junk that's a bug with this blog software, not my
fault.
后在网上查到,原来是启动脚本里面的变量没定义而造成的.
&&&&&&&&&&&&提示如下&&&&&&&&&&&&
解压缩后会消耗掉 0B 的额外空间。
正在设置 mysql-server-5.0 (5.0.51a-24) ...
/etc/lsb-base-logging.sh: line 72: RUNLEVEL: unbound variable
invoke-rc.d:
init script mysql, action "stop"
failed.
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
I had this problem today, I don't believe it's mysql related, and there was
no need to do anything with mysql to work around it.
I encountered this today on dist-upgrade of debian sid, in sidux [ http://sidux.com ] run sid.
apt-get install -f did not resolve it, dist-upgrade halted on errors no
matter what I did.
The same exact error, so after poking around a little, and realizing that
maybe the error message actually meant what it said, that the RUNLEVEL variable
on line 42 was in fact not set.
Because I needed the upgrade to finish, I just did a simple hack, like
this:
<br />
#<br />
# The first piece is just what it is /lib/lsb/init-functions<br />
# for debian. We probably should supply something else for<br />
# ubuntu.<br />
#<br />
# TODO we need to know whats the next step in the progress<br />
# file and send exit to Splashy before X starts (after setting<br />
# the percentage to the right amount)<br />
#### NOTE: I ADDED THIS RUNLEVEL VARIABLE INITIALIZATION HERE:<br />
RUNLEVEL=''<br />
# int log_end_message (int exitstatus)<br />
log_end_msg () {<br />
# If no arguments were passed, return<br />
[ -z "${1:-}" ] && return 1<br />
Adding that RUNLEVEL initiatialization fixed the halt, allowed mysql to
finish installing. I want to stress though, this looks like an error in this
config file by the, I assume, ubuntu, developer.
I'm not sure what the consequences to this hack are, but since I don't use
splashy it's probably not going to be that bad.
Sorry about the extra junk that's a bug with this blog software, not my
fault.
相关文章推荐
- Starting MySQL......./etc/init.d/mysql: line 159 kill : ( ) -没有那个进程
- 类型之间进行隐式和显示转换&创建使用枚举&创建使用结构类型&创建使用数组&;如何处理字符串值
- 如何处理错误"cannot locate source management dll"?
- 如何利用"c3p0"配置Oracle和MySQL连接
- android:baselineAligned="false"
- Shareplex, activate config, " Supplemental logging is not enabled"处理
- 收集MYSQL与Oracle如何处理重复数据的SQL
- 如何使用 <fstream> 类进行文件的 I/O 处理(转)
- 转载:如何理解jsp页面中的“<base href="<%=basePath%>">”?
- [PHP] PHP & HTML & JavaScript & MySQL 代码如何互相传值
- PHP和MySQL中如何进行错误处理与调试
- 关于mysql处理百万级以上的数据时如何提高其查询速度的方法
- VS 如何自动生成 aspx.designer.cs文件内容(解决"The base class includes the field ''"错误)
- 如何解决"last line of file ends without a newline"
- 如何使用rel="canonical"来处理重复内容
- [MySQL]记录一次线上故障处理过程--> has more than 'max_user_connections' active connections
- MySQL中如何处理中文字符问题
- MySQL 5.6 如何更安全的处理密码
- MySQL出现 Can't connect to mysql server on 'localhost'(10061) 处理方法
- post的数据参数内容包含&如何如何处理