LinuxSir.cn,穿越时空的Linuxsir!

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

编译软件时出现gcc-config error的问题,麻烦帮我看看!

[复制链接]
发表于 2005-8-31 17:27:44 | 显示全部楼层 |阅读模式
编译某些软件时出现如下提示
gcc-config error: Could not run/locate "i386-pc-linux-gnu-gcc"

该如何解决呢?谢谢!
发表于 2005-8-31 18:23:04 | 显示全部楼层
emerge sync 以后 emerge phthon 试试
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-31 18:54:44 | 显示全部楼层
Post by laonainai
emerge sync 以后 emerge phthon 试试


不行啊,还是出现同样的错误
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-31 18:55:57 | 显示全部楼层
详细提示如下:
  1. make[2]: Leaving directory `/var/tmp/portage/pyorbit-2.0.1/work/pyorbit-2.0.1/src'
  2. Making all in tests
  3. make[2]: Entering directory `/var/tmp/portage/pyorbit-2.0.1/work/pyorbit-2.0.1/tests'
  4. Making all in c-inproc
  5. make[3]: Entering directory `/var/tmp/portage/pyorbit-2.0.1/work/pyorbit-2.0.1/tests/c-inproc'
  6. orbit-idl-2 --add-imodule testcall.idl
  7. orbit-idl-2 2.12.2 compiling
  8.   mode, show preprocessor errors, passes: stubs skels common headers

  9. gcc-config error: Could not run/locate "i386-pc-linux-gnu-gcc"
  10. Error: Empty file

  11. ** (process:7512): WARNING **: testcall.idl compilation failed
  12. make[3]: *** [testcall.h] 错误 1
  13. make[3]: Leaving directory `/var/tmp/portage/pyorbit-2.0.1/work/pyorbit-2.0.1/tests/c-inproc'
  14. make[2]: *** [all-recursive] 错误 1
  15. make[2]: Leaving directory `/var/tmp/portage/pyorbit-2.0.1/work/pyorbit-2.0.1/tests'
  16. make[1]: *** [all-recursive] 错误 1
  17. make[1]: Leaving directory `/var/tmp/portage/pyorbit-2.0.1/work/pyorbit-2.0.1'
  18. make: *** [all] 错误 2

  19. !!! ERROR: dev-python/pyorbit-2.0.1 failed.
  20. !!! Function gnome2_src_compile, Line 48, Exitcode 2
  21. !!! compile failure
  22. !!! If you need support, post the topmost build error, NOT this status message.
复制代码
回复 支持 反对

使用道具 举报

发表于 2005-8-31 19:02:29 | 显示全部楼层
gcc-config -l
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-31 19:12:07 | 显示全部楼层
gcc-config -l
  1. [1] i686-pc-linux-gnu-3.3.5-20050130 *
  2. [2] i686-pc-linux-gnu-3.3.5-20050130-hardened
  3. [3] i686-pc-linux-gnu-3.3.5-20050130-hardenednopie
  4. [4] i686-pc-linux-gnu-3.3.5-20050130-hardenednopiessp
  5. [5] i686-pc-linux-gnu-3.3.5-20050130-hardenednossp
复制代码
回复 支持 反对

使用道具 举报

发表于 2005-8-31 23:24:29 | 显示全部楼层
  1. cd /usr/${CHOST}/gcc-bin/${gcc-version}/
  2. ln -s i686-pc-linux-gnu-gcc i386-pc-linux-gnu-gcc
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-1 12:04:54 | 显示全部楼层
Post by kbe
  1. cd /usr/${CHOST}/gcc-bin/${gcc-version}/
  2. ln -s i686-pc-linux-gnu-gcc i386-pc-linux-gnu-gcc
复制代码


搞定!多谢!
回复 支持 反对

使用道具 举报

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

本版积分规则

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