loongson & MySQL 如何处理 /etc/lsb-base-logging.sh: line 72: RUNLEVEL: unbound variable
来源:互联网 发布:网络拓扑软件 编辑:程序博客网 时间:2024/05/16 10:51
在龙芯电脑上安装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.
- loongson & MySQL 如何处理 /etc/lsb-base-logging.sh: line 72: RUNLEVEL: unbound variable
- Linux Standard Base (LSB)
- Ceph部署时提示:/etc/init.d/ceph: line 15: /lib/lsb/init-functions: No such file or directory
- Base Line
- MSB LSB转换处理
- what is "LSB " Linux Standard Base介绍
- Unbound classpath variable: 'M2_REPO' in project ....
- zt:mina源码经maven2处理后,导入eclipse有Unbound classpath variable: 'M2_REPO报错的解决方法
- zt:mina源码经maven2处理后,导入eclipse有Unbound classpath variable: 'M2_REPO报错的解决方法
- runlevel
- runlevel
- runlevel
- 第一只进程init及配置文件/etc/inittab与runlevel
- MySQL问题: Starting MySQL/etc/init.d/mysql: line 159: kill: (21755) - No such process
- /etc/profile add PATH variable
- LSB
- Received value [sh: /etc/zabbix/scripts/mysql: Permission denied] is not suitable for value type
- Starting MySQL......./etc/init.d/mysql: line 159 kill : ( ) -没有那个进程
- 关于电源和地的处理
- 树:Struts2 + JSON + Extjs Tree
- web页面性能调整
- 使用RLibrary加载DLL
- java操作excel文件()
- loongson & MySQL 如何处理 /etc/lsb-base-logging.sh: line 72: RUNLEVEL: unbound variable
- Nehe OpenGL AppWizards with vs 2008
- ORACLE SQL性能优化系列(十)
- Configure and compile Python with Zlib
- 参禅
- SQL查询连续号码段
- SQL SERVER 2000 导入导出数据
- 关于网络文件系统NFS
- Moblin