LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1362|回复: 5

64位安装grub出现的问题

[复制链接]
发表于 2007-10-21 02:37:42 | 显示全部楼层 |阅读模式
在64位安装手册没有关于grub的安装,所以就照着32位的手册安装grub,可是当configure的时候,出现这样的错误提示:
root:/sources/grub-0.97# ./configure --prefix=/usr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for gcc... (cached) gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
然后,又看了config.log,下面是它的内容:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GRUB configure 0.97, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --prefix=/usr

## --------- ##
## Platform. ##
## --------- ##

hostname = lfslivecd
uname -m = x86_64
uname -r = 2.6.22.1-64bit
uname -s = Linux
uname -v = #1 SMP Sun Aug 5 12:32:51 GMT 2007

不知道为什么会出现这样的问题,是grub的版本不对,还是什么别的原因,清个各位指点迷津!
发表于 2007-10-21 11:36:15 | 显示全部楼层
Pure64 吗?
请用 lilo
若是 x86_64-Multilib 可以用安装32位的 grub ,编译时用 CC="gcc -m32" ./configure --prefix=/usr

另:
在 LiveCD 中
mkdir $CLFS
cp -v /usr/lib/grub/*/* $CLFS/boot/grub/

然后用 LiveCD 的 grub 写引导到MBR或根目录系统根分区第一扇区。
见手册
http://cross-lfs.org/view/svn/x86_64/final-system/grub.html
回复 支持 反对

使用道具 举报

发表于 2007-10-21 11:45:51 | 显示全部楼层
我的做法是 MBR 安装 lilo 。引导菜单有三项,设引导密码。最后一项是从第一硬盘第三主分区第一扇区载入引导代码,然后找到此分区上的GRUB。GRUB这一关不设防,直接可以引导硬盘上的任何系统,包括 lfslivecd-xxx-version.iso ,因 lfslivecd 直接就是 root 用户了不用输入密码, 这太危险了。 /etc/lilo.conf 为 600 权限。
而笔记本可设开机密码的,这样,就大致安全了。最重要的是第一关,密码只有6位。密码一定要自己记得,不然就比较麻烦。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-12-22 09:21:45 | 显示全部楼层
请楼上详细介绍一下在lfs中安装和配置lilo的步骤,可以吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-12-22 09:22:47 | 显示全部楼层
请楼上详细介绍一下在lfs中安装和配置lilo的步骤,可以吗?我的是pure64
回复 支持 反对

使用道具 举报

发表于 2007-12-22 15:44:33 | 显示全部楼层
CLFS Pure64 手册里不是已经有装 lilo 的方法了吗?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表