您的位置:首页 > 数据库 > MySQL

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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: