|
使用的LIVECD是lfslivecd-x86_64-6.3-r2160.iso 手册是里面自带的Linux From Scratch Version SVN-x86_64-20070807
软件包里没有grub,自己安装gurb。
以下是编译grub0.97时候遇到的问题
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
See `config.log' for more details.
config.log中的截取内容如下:
configure:1434: checking for a BSD-compatible install
configure:1489: result: /usr/bin/install -c
configure:1500: checking whether build environment is sane
configure:1543: result: yes
configure:1608: checking for gawk
configure:1624: found /usr/bin/gawk
configure:1634: result: gawk
configure:1644: checking whether make sets $(MAKE)
configure:1664: result: yes
configure:1839: checking build system type
configure:1857: result: x86_64-unknown-linux-gnu
configure:1865: checking host system type
configure:1879: result: x86_64-unknown-linux-gnu
configure:1903: checking whether to enable maintainer-specific portions of Makefiles
configure:1912: result: no
configure:2028: checking for gcc
configure:2044: found /usr/bin/gcc
configure:2054: result: gcc
configure:2112: checking for gcc
configure:2138: result: gcc
configure:2382: checking for C compiler version
configure:2385: gcc --version </dev/null >&5
gcc (GCC) 4.1.2
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2388: $? = 0
configure:2390: gcc -v </dev/null >&5
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.1.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --disable-multilib
Thread model: posix
gcc version 4.1.2
configure:2393: $? = 0
configure:2395: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2398: $? = 1
configure:2421: checking for C compiler default output file name
configure:2424: gcc -m32 conftest.c >&5
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/./libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/./libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
请问这个问题如何解决?
我因为不会解决这个问题 才用的grub1.98,倒是能编译安装过去,后期grub-install的时候也过去了
不知道哪里没弄好,重启后进入GRUB>
---------------------------------------------------------------------------------------------------------------------
我自己根据其他手册下载了grub1.98 然后在VIM编译以后编译了grub,然后编译内核了。可是到设置grub的时候,提示找不到grub这个命令。我看了下,boot下没有grub的东西,/usr下有不少,求教这个怎么解决?
另外不是说grub也能引导64位Linux吗?是我这个地方安装的方法不对吗?求教高人给提供个能引导启动的办法
谢谢!!拜谢!
--------------------------------------------------------------------------------------------------
grub2的用法也看了,按照另一个手册中的做法
使用
grub-install --grub-setup=/bin/true /dev/hda
grub-mkconfig -o /boot/grub/grub.cfg
grub-setup /dev/hda
三条命令
重启后倒是只能进入
grub>
之后用了各种命令,也不行。
求高人指点这里应该怎么做
--------------------------------------------------------------------------------------------------------------
那么多人在线,怎么没人帮忙解答下呢。
----- |
|