Rootop 服务器运维与web架构

2010-12-02
发表者 Venus
暂无评论

Unable to find the ncurses libraries or the *** required header files.

[root@localhost linux-2.6.35.7]# make menuconfig
 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** ‘make menuconfig’ requires the ncurses libraries.
 ***
 *** Install ncurses (ncurses-devel) and try again.
 ***
make[1]: *** [scripts/kconfig/dochecklxdialog] 错误 1
make: *** [menuconfig] 错误 2
[root@localhost linux-2.6.35.7]#
[root@localhost linux-2.6.35.7]# yum install -y make
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
xxx                                                      | 1.3 kB     00:00
Setting up Install Process
Package 1:make-3.81-3.el5.i386 already installed and latest version
Nothing to do
[root@localhost linux-2.6.35.7]#
[root@localhost linux-2.6.35.7]# yum install -y ncurses-devel
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package ncurses-devel.i386 0:5.5-24.20060715 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package               Arch         Version                   Repository   Size
================================================================================
Installing:
 ncurses-devel         i386         5.5-24.20060715           xxx         1.6 M

Transaction Summary
================================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 1.6 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : ncurses-devel                                            1/1

Installed:
  ncurses-devel.i386 0:5.5-24.20060715

Complete!
[root@localhost linux-2.6.35.7]#

ncurses-devel 用于显示编译内核时显示字符界面。

今天再次编译的时候提示错误:

[root@fedora /usr/src/kernels/2.6.21-1.3194.fc7-i686]#make
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
在包含自 scripts/kconfig/lxdialog/checklist.c:24 的文件中:
scripts/kconfig/lxdialog/dialog.h:32:20: 错误:curses.h:没有那个文件或目录
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:97: 错误:expected specifier-qualifier-list before ‘chtype’
scripts/kconfig/lxdialog/dialog.h:187: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:193: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:195: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:196: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:197: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:198: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:200: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:31: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:59: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:95: 错误:expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c: 在函数 ‘dialog_checklist’ 中:
scripts/kconfig/lxdialog/checklist.c:116: 错误:‘WINDOW’ 未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:116: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
scripts/kconfig/lxdialog/checklist.c:116: 错误:所在的函数内只报告一次。)
scripts/kconfig/lxdialog/checklist.c:116: 错误:‘dialog’ 未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:116: 错误:‘list’ 未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:116: 警告:逗号表达式的左操作数不起作用
scripts/kconfig/lxdialog/checklist.c:129: 警告:隐式声明函数 ‘getmaxy’
scripts/kconfig/lxdialog/checklist.c:129: 错误:‘stdscr’ 未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:130: 错误:‘KEY_MAX’ 未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:131: 警告:隐式声明函数 ‘getmaxx’
scripts/kconfig/lxdialog/checklist.c:137: 错误:‘COLS’ 未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:138: 错误:‘LINES’ 未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:140: 警告:隐式声明函数 ‘draw_shadow’
scripts/kconfig/lxdialog/checklist.c:142: 警告:隐式声明函数 ‘newwin’
scripts/kconfig/lxdialog/checklist.c:143: 警告:隐式声明函数 ‘keypad’
scripts/kconfig/lxdialog/checklist.c:143: 错误:‘TRUE’ 未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:145: 警告:隐式声明函数 ‘draw_box’
scripts/kconfig/lxdialog/checklist.c:146: 错误:‘struct dialog_color’ 没有名为 ‘atr’ 的成员
scripts/kconfig/lxdialog/checklist.c:146: 错误:‘struct dialog_color’ 没有名为 ‘atr’ 的成员
scripts/kconfig/lxdialog/checklist.c:147: 警告:隐式声明函数 ‘wattrset’
scripts/kconfig/lxdialog/checklist.c:147: 错误:‘struct dialog_color’ 没有名为 ‘atr’ 的成员
scripts/kconfig/lxdialog/checklist.c:148: 警告:隐式声明函数 ‘mvwaddch’
scripts/kconfig/lxdialog/checklist.c:150: 警告:隐式声明函数 ‘waddch’
scripts/kconfig/lxdialog/checklist.c:151: 错误:‘struct dialog_color’ 没有名为 ‘atr’ 的成员
scripts/kconfig/lxdialog/checklist.c:154: 警告:隐式声明函数 ‘print_title’
scripts/kconfig/lxdialog/checklist.c:156: 错误:‘struct dialog_color’ 没有名为 ‘atr’ 的成员
scripts/kconfig/lxdialog/checklist.c:157: 警告:隐式声明函数 ‘print_autowrap’
scripts/kconfig/lxdialog/checklist.c:164: 警告:隐式声明函数 ‘subwin’
scripts/kconfig/lxdialog/checklist.c:171: 错误:‘struct dialog_color’ 没有名为 ‘atr’ 的成员
scripts/kconfig/lxdialog/checklist.c:171: 错误:‘struct dialog_color’ 没有名为 ‘atr’ 的成员
scripts/kconfig/lxdialog/checklist.c:189: 警告:隐式声明函数 ‘print_item’
scripts/kconfig/lxdialog/checklist.c:192: 警告:隐式声明函数 ‘print_arrows’
scripts/kconfig/lxdialog/checklist.c:195: 警告:隐式声明函数 ‘print_buttons’
scripts/kconfig/lxdialog/checklist.c:197: 警告:隐式声明函数 ‘wnoutrefresh’
scripts/kconfig/lxdialog/checklist.c:199: 警告:隐式声明函数 ‘doupdate’
scripts/kconfig/lxdialog/checklist.c:202: 警告:隐式声明函数 ‘wgetch’
scripts/kconfig/lxdialog/checklist.c:210: 错误:‘KEY_UP’ 未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:210: 错误:‘KEY_DOWN’ 未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:220: 错误:‘FALSE’ 未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:221: 警告:隐式声明函数 ‘scrollok’
scripts/kconfig/lxdialog/checklist.c:222: 警告:隐式声明函数 ‘wscrl’
scripts/kconfig/lxdialog/checklist.c:232: 警告:隐式声明函数 ‘wrefresh’
scripts/kconfig/lxdialog/checklist.c:293: 警告:隐式声明函数 ‘delwin’
scripts/kconfig/lxdialog/checklist.c:297: 错误:‘KEY_LEFT’ 未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:298: 错误:‘KEY_RIGHT’ 未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:310: 警告:隐式声明函数 ‘on_key_esc’
scripts/kconfig/lxdialog/checklist.c:312: 错误:‘KEY_RESIZE’ 未声明 (在此函数内第一次使用)
make[1]: *** [scripts/kconfig/lxdialog/checklist.o] 错误 1
make: *** [] 错误 2

附件情况:2:scripts/kconfig/lxdialog/dialog.h:31:20: error: curses.h: 没有那个文件或目录

2010-12-02
发表者 Venus
暂无评论

RedHat or CentOS get warnning “received packet with own address as source address”

got “received packet with own address as source address
这个是系统中的一个bug,出现在5.3版本中,解决方法,我还没找到,建议升级到5.5
 
Status:
POST
 
Aliases:
None (edit)
hideEditableField( ‘alias_edit_area_showhide_container’, ‘alias_edit_area’, ‘alias_edit_area_showhide’, ”, ”);
 
Product:
Red Hat Enterprise Linux 5
Component:
xen (Show Red Hat Enterprise Linux 5/xen bugs)
Version:
5.3
Platform:
All Linux assignToDefaultOnChange([‘product’, ‘component’]);
 
Priority:
low Severity: medium
Target Milestone:
rc
Assigned To:
” href=”mailto:pbonzini@redhat.com”>Paolo Bonzini
QA Contact:
” href=”mailto:virt-bugs@redhat.com”>Virtualization Bugs
 
URL:
Whiteboard:
 
Keywords:
 
 
Depends on:
 
Blocks:
514499
 
Show dependency tree
 
Reported:
2009-07-06 04:28 EDT by ” href=”mailto:wezhang@redhat.com”>wmg
Modified:
2010-09-20 02:59 EDT (History)
CC List:
Add me to CC list
7 users (edit)
Add
clalance@redhat.com drjones@redhat.com llim@redhat.com minovotn@redhat.com mrezanin@redhat.com pbonzini@redhat.com xen-maint@redhat.com
Remove selected CCs
hideEditableField( ‘cc_edit_area_showhide_container’, ‘cc_edit_area’, ‘cc_edit_area_showhide’, ”, ”);

2010-12-02
发表者 Venus
暂无评论

Linux和Windows双系统Grub丢失恢复

今天我也遇到了这么个问题,search后解决方案如下:

每次重装win后,MBR都会被重写,这样原来的GRUB或LILO就会丢失,或者由于某些原因使得原来的GRUB不见了,这个时候只要重装GRUB就行。

1.用安装光盘启动,选升级安装,再只选安装GRUB行了。

2.用安装光盘启动,到BOOT那里输入linux rescue也就是进入救援模式,切换/目录 chroot /mnt/sysimage,然后再输入grub-install /dev/hda   // 我所采用的修复方式

3.没有软驱如何修复grub/lilo引导菜单?

a.把第一张linux安装盘里的dosutils目录复制到windows盘中。如果是iso可以用winrar提取。

b.进入纯dos,进入dosutils目录,执行loadlin autoboot/vmlinuz root=/dev/hdxx()hdxx是你的linux根分区。这样就能进入linux。

c.执行grub-install /dev/hdx(x=a,b,c,d) 或lilo即可以重写引导。

sh#

e.我们就可以操作GRUB了.输入grub:

sh#grub

会出现这样的提示符:

grub>

我们就可以在这样的字符后面,输入:

grub>root (hdX,Y)

grub>setup (hd0)

如果成功会有一个successful……

这里的X,如果是一个盘,就是0,如果你所安装的linux的根分区在第二个硬盘上,那X就是1了;Y,就是装有linux系统所在的根分区。 setup (hd0)就是把GRUB写到硬盘的MBR上。

另外说下,有人说我没安装光盘啊?我是从硬盘安装的.呵呵,那你的ISO文件还在吧..那再来次硬盘安装进入安装界面也是一样的….

5.如何把GRUB或LILO删掉?

只要在DOS下执行FDISK /MBR 即可

2010-12-02
发表者 Venus
暂无评论

VMware Workstation unrecoverable error (disk error while paging) has occurred

为了方便,虚拟机都是采用挂起状态,今天在启动虚拟机的时候出现如下提示错误:

VMware Workstation unrecoverable error: (vmx)
Exception 0xc0000006 (disk error while paging) has occurred.
A log file is available in “F:\vmware\RHEL5.4-RHCE-Server\vmware.log”.  A core file is available in “F:\vmware\RHEL5.4-RHCE-Server\vmware-vmx-3148.dmp”.  Please request support and include the contents of the log file and core file. 
To collect data to submit to VMware support, choose “Collect Support Data” from the Help menu.
You can also run the “vm-support” script in the Workstation folder directly.
We will respond on the basis of your support entitlement.

查看日志:

Jun 23 17:06:28.967: vmx| Warning: the system was unable to load a page of memory; this can be caused by network problems or a failing hard disk drive.
Jun 23 17:06:28.967: vmx|
Jun 23 17:06:28.967: vmx| Msg_Post: Error
Jun 23 17:06:28.967: vmx| [msg.log.error.unrecoverable] VMware Workstation unrecoverable error: (vmx)
Jun 23 17:06:28.967: vmx| Exception 0xc0000006 (disk error while paging) has occurred.
Jun 23 17:06:28.967: vmx| [msg.panic.haveLog] A log file is available in “F:\vmware\RHEL5.4-RHCE-Server\vmware.log”.  [msg.panic.haveCore] A core file is available in “F:\vmware\RHEL5.4-RHCE-Server\vmware-vmx-3148.dmp”.  [msg.panic.requestSupport.withLogAndCore] Please request support and include the contents of the log file and core file.  [msg.panic.requestSupport.vmSupport.windows]
Jun 23 17:06:28.967: vmx| To collect data to submit to VMware support, choose “Collect Support Data” from the Help menu.
Jun 23 17:06:28.967: vmx| You can also run the “vm-support” script in the Workstation folder directly.
Jun 23 17:06:28.967: vmx| [msg.panic.response] We will respond on the basis of your support entitlement.
Jun 23 17:06:28.967: vmx| —————————————-

开始以为虚拟内存出现问题,重启机器问题依旧。

GOOGLE之

解决方法:删除或修改虚拟机目录下拓展名为.vmss文件,再次启动即可。

2010-12-02
发表者 Venus
暂无评论

redhat 修改字体

前几天在图形界面将语言设置为中文,然后系统重启后乱码了,才想到没安装中文语言包
也懒得再去装,今天用的时候,忘了编辑哪个配置文件了,一搜又想起来。今儿就写在这里吧
别以后又忘了~~~
vi  /etc/sysconfig/i18n
LANG=”en_US.UTF-8″           (    or    LANG=”zh_CN.UTF-8″)
SYSFONT=”默认”
记得在修改为中文时,不要忘记先安装语言包,否则~~~
乱了~