[问题]有劳各位,为什么安装GCC不成功?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
relaaxx
帖子: 121
注册时间: 2007-05-20 14:07

[问题]有劳各位,为什么安装GCC不成功?

#1

帖子 relaaxx » 2007-09-15 23:43

[root@localhost xu]# cd gcc-4.1.0
[root@localhost gcc-4.1.0]# ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
janker2lonely
帖子: 557
注册时间: 2007-01-09 11:09
来自: 廣州

#2

帖子 janker2lonely » 2007-09-16 0:09

安装源里的吧,最新版本是4.1.2。
头像
relaaxx
帖子: 121
注册时间: 2007-05-20 14:07

#3

帖子 relaaxx » 2007-09-16 0:15

乍么回事嘛?想安装都不行哎?前一段已解压,不放上来了
firefox wqy-bitmapfont-0.8.1-7.noarch.rpm
firefox-2.0.0.6.tar.gz z.planner

[root@localhost xu]# cd firefox
[root@localhost firefox]# ./configure
-bash: ./configure: 没有那个文件或目录
[root@localhost firefox]#
janker2lonely
帖子: 557
注册时间: 2007-01-09 11:09
来自: 廣州

#4

帖子 janker2lonely » 2007-09-16 0:17

relaaxx 写了:乍么回事嘛?想安装都不行哎?前一段已解压,不放上来了
firefox wqy-bitmapfont-0.8.1-7.noarch.rpm
firefox-2.0.0.6.tar.gz z.planner

[root@localhost xu]# cd firefox
[root@localhost firefox]# ./configure
-bash: ./configure: 没有那个文件或目录
[root@localhost firefox]#
rpm是redhat类发行版的安装格式,deb才是debian/ubuntu。不用下安装包,用新立得装就可以了。
头像
relaaxx
帖子: 121
注册时间: 2007-05-20 14:07

#5

帖子 relaaxx » 2007-09-16 0:21

黑黑,安装了两个系统,一个是ubuntu,一个是centos 5 想试试最为原始的安装格式哦,结果弄不来。新手来的哦 :)
帮我看看,这到底是什么原因?下载的是TAR包,三个步子吧:1、./configure;2、make;3、make install ;解压没问题,结果到安装就遇到问题 了,乍么解决呀?求解~
janker2lonely
帖子: 557
注册时间: 2007-01-09 11:09
来自: 廣州

#6

帖子 janker2lonely » 2007-09-16 0:26

解压后目录里有什么?ls解压后的目录,把结果贴上来!不同的内容有不同的安装方法。有直接安装的,也有编译安装的。
你装什么软件要去下安装包?很多软件都能用新立得装,启动新立得,搜索你要的软件,安装它,十分容易的。 :shock: 用debian/ubuntu的话,您应该熟悉新立得。
头像
relaaxx
帖子: 121
注册时间: 2007-05-20 14:07

#7

帖子 relaaxx » 2007-09-16 0:43

来了,
[root@localhost xu]# tar xzfv firefox-2.0.0.6.tar.gz
firefox/
firefox/.autoreg
firefox/chrome/
firefox/chrome/zh-CN.manifest
firefox/chrome/zh-CN.jar
firefox/chrome/browser.jar
firefox/chrome/browser.manifest
firefox/chrome/classic.jar
firefox/chrome/classic.manifest
firefox/chrome/comm.jar
firefox/chrome/comm.manifest
firefox/chrome/toolkit.jar
firefox/chrome/toolkit.manifest
firefox/chrome/icons/
firefox/chrome/icons/default/
firefox/chrome/icons/default/default.xpm
firefox/chrome/reporter.manifest
firefox/chrome/reporter.jar
firefox/chrome/pippki.jar
firefox/chrome/pippki.manifest
firefox/chrome/chromelist.txt
firefox/defaults/
firefox/defaults/pref/
firefox/defaults/pref/firefox-l10n.js
firefox/defaults/pref/reporter.js
firefox/defaults/pref/firefox.js
firefox/defaults/pref/firefox-branding.js
firefox/defaults/pref/channel-prefs.js
firefox/defaults/profile/
firefox/defaults/profile/bookmarks.html
firefox/defaults/profile/localstore.rdf
firefox/defaults/profile/search.rdf
firefox/defaults/profile/mimeTypes.rdf
firefox/defaults/profile/chrome/
firefox/defaults/profile/chrome/userChrome-example.css
firefox/defaults/profile/chrome/userContent-example.css
firefox/defaults/autoconfig/
firefox/defaults/autoconfig/platform.js
firefox/defaults/autoconfig/prefcalls.js
firefox/browserconfig.properties
firefox/old-homepage-default.properties
firefox/README.txt
firefox/updater.ini
firefox/libmozjs.so
firefox/libplc4.so
firefox/libplds4.so
firefox/libxpcom.so
firefox/libxpcom_core.so
firefox/libxpistub.so
firefox/libnspr4.so
firefox/components/
firefox/components/libxpinstall.so
firefox/components/libjar50.so
firefox/components/libjsd.so
firefox/components/FeedProcessor.js
firefox/components/FeedConverter.js
firefox/components/FeedWriter.js
firefox/components/WebContentConverter.js
firefox/components/nsBrowserContentHandler.js
firefox/components/nsBrowserGlue.js
firefox/components/nsSetDefaultBrowser.js
firefox/components/nsMicrosummaryService.js
firefox/components/nsSearchService.js
firefox/components/nsSearchSuggestions.js
firefox/components/jsconsole-clhandler.js
firefox/components/nsCloseAllWindows.js
firefox/components/nsDictionary.js
firefox/components/nsFilePicker.js
firefox/components/nsHelperAppDlg.js
firefox/components/nsInterfaceInfoToIDL.js
firefox/components/nsProxyAutoConfig.js
firefox/components/nsSidebar.js
firefox/components/nsXmlRpcClient.js
firefox/components/nsExtensionManager.js
firefox/components/nsUpdateService.js
firefox/components/nsBookmarkTransactionManager.js
firefox/components/nsSessionStartup.js
firefox/components/nsSessionStore.js
firefox/components/nsURLFormatter.js
firefox/components/nsDefaultCLH.js
firefox/components/nsSafebrowsingApplication.js
firefox/components/nsUrlClassifierListManager.js
firefox/components/nsUrlClassifierLib.js
firefox/components/nsUrlClassifierTable.js
firefox/components/libmozgnome.so
firefox/components/libmyspell.so
firefox/components/libspellchecker.so
firefox/components/libnkgnomevfs.so
firefox/components/browser.xpt
firefox/libxpcom_compat.so
firefox/firefox-bin
firefox/firefox
firefox/mozilla-xremote-client
firefox/run-mozilla.sh
firefox/plugins/
firefox/plugins/libnullplugin.so
firefox/res/
firefox/res/cmessage.txt
firefox/res/hiddenWindow.html
firefox/res/ua.css
firefox/res/html.css
firefox/res/quirk.css
firefox/res/forms.css
firefox/res/EditorOverride.css
firefox/res/table-add-column-after-active.gif
firefox/res/table-add-column-after-hover.gif
firefox/res/table-add-column-after.gif
firefox/res/table-add-column-before-active.gif
firefox/res/table-add-column-before-hover.gif
firefox/res/table-add-column-before.gif
firefox/res/table-add-row-after-active.gif
firefox/res/table-add-row-after-hover.gif
firefox/res/table-add-row-after.gif
firefox/res/table-add-row-before-active.gif
firefox/res/table-add-row-before-hover.gif
firefox/res/table-add-row-before.gif
firefox/res/table-remove-column-active.gif
firefox/res/table-remove-column-hover.gif
firefox/res/table-remove-column.gif
firefox/res/table-remove-row-active.gif
firefox/res/table-remove-row-hover.gif
firefox/res/table-remove-row.gif
firefox/res/arrowd.gif
firefox/res/grabber.gif
firefox/res/viewsource.css
firefox/res/mathml.css
firefox/res/arrow.gif
firefox/res/loading-image.gif
firefox/res/broken-image.gif
firefox/res/fonts/
firefox/res/fonts/fontEncoding.properties
firefox/res/fonts/mathfont.properties
firefox/res/fonts/mathfontCMEX10.properties
firefox/res/fonts/mathfontCMSY10.properties
firefox/res/fonts/mathfontMath1.properties
firefox/res/fonts/mathfontMath2.properties
firefox/res/fonts/mathfontMath4.properties
firefox/res/fonts/mathfontMTExtra.properties
firefox/res/fonts/mathfontPUA.properties
firefox/res/fonts/mathfontSymbol.properties
firefox/res/fonts/pangoFontEncoding.properties
firefox/res/dtd/
firefox/res/dtd/mathml.dtd
firefox/res/dtd/xhtml11.dtd
firefox/res/html/
firefox/res/html/gopher-audio.gif
firefox/res/html/gopher-binary.gif
firefox/res/html/gopher-find.gif
firefox/res/html/gopher-image.gif
firefox/res/html/gopher-menu.gif
firefox/res/html/gopher-movie.gif
firefox/res/html/gopher-sound.gif
firefox/res/html/gopher-telnet.gif
firefox/res/html/gopher-text.gif
firefox/res/html/gopher-unknown.gif
firefox/res/unixcharset.properties
firefox/res/charsetalias.properties
firefox/res/charsetData.properties
firefox/res/langGroups.properties
firefox/res/language.properties
firefox/res/entityTables/
firefox/res/entityTables/html40Latin1.properties
firefox/res/entityTables/html40Special.properties
firefox/res/entityTables/html40Symbols.properties
firefox/res/entityTables/htmlEntityVersions.properties
firefox/res/entityTables/mathml20.properties
firefox/res/entityTables/transliterate.properties
firefox/res/svg.css
firefox/xpicleanup
firefox/extensions/
firefox/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/
firefox/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/install.rdf
firefox/extensions/inspector@mozilla.org/
firefox/extensions/inspector@mozilla.org/install.rdf
firefox/extensions/inspector@mozilla.org/components/
firefox/extensions/inspector@mozilla.org/components/inspector-cmdline.js
firefox/extensions/inspector@mozilla.org/chrome.manifest
firefox/extensions/inspector@mozilla.org/chrome/
firefox/extensions/inspector@mozilla.org/chrome/inspector.jar
firefox/extensions/inspector@mozilla.org/defaults/
firefox/extensions/inspector@mozilla.org/defaults/preferences/
firefox/extensions/inspector@mozilla.org/defaults/preferences/inspector.js
firefox/extensions/talkback@mozilla.org/
firefox/extensions/talkback@mozilla.org/install.rdf
firefox/extensions/talkback@mozilla.org/chrome.manifest
firefox/extensions/talkback@mozilla.org/components/
firefox/extensions/talkback@mozilla.org/components/libqfaservices.so
firefox/extensions/talkback@mozilla.org/components/qfaservices.xpt
firefox/extensions/talkback@mozilla.org/components/talkback/
firefox/extensions/talkback@mozilla.org/components/talkback/master.ini
firefox/extensions/talkback@mozilla.org/components/talkback/talkback
firefox/extensions/talkback@mozilla.org/components/talkback/talkback.so
firefox/extensions/talkback@mozilla.org/components/talkback/XTalkback.ad
firefox/icons/
firefox/icons/mozicon16.xpm
firefox/icons/mozicon50.xpm
firefox/icons/document.png
firefox/icons/mozicon128.png
firefox/greprefs/
firefox/greprefs/all.js
firefox/greprefs/security-prefs.js
firefox/greprefs/xpinstall.js
firefox/libnssckbi.so
firefox/libnss3.so
firefox/libsmime3.so
firefox/libsoftokn3.chk
firefox/libsoftokn3.so
firefox/libfreebl3.chk
firefox/libfreebl3.so
firefox/libssl3.so
firefox/updater
firefox/readme.txt
firefox/removed-files
firefox/searchplugins/
firefox/searchplugins/amazondotcom.xml
firefox/searchplugins/eBay-zh-CN.xml
firefox/searchplugins/google.xml
firefox/searchplugins/yahoo-zh-CN.xml
firefox/searchplugins/baidu.xml
firefox/searchplugins/taobao.xml


[root@localhost firefox]# ./configure
-bash: ./configure: 没有那个文件或目录
[root@localhost firefox]#

这此啦,乍办呢?centos 5 系统 ;不是不想用ubuntu 只是想学编驿而已,好象ubuntu好容易哦,谢谢
janker2lonely
帖子: 557
注册时间: 2007-01-09 11:09
来自: 廣州

#8

帖子 janker2lonely » 2007-09-16 0:51

这不是源代码包,你用configure、make当然不行了。firefox直接到新立得里装就可以了,而且版本很新,何必大费周章呢?!
头像
relaaxx
帖子: 121
注册时间: 2007-05-20 14:07

#9

帖子 relaaxx » 2007-09-16 0:54

那我这包要如何安装?我现在在centos 下,它没有所谓的新力得,yum install firefox时慢得象娲牛,firefox是1.5版的,好多插件没法用;要2.0以上,所以要安装新的firefox呀
janker2lonely
帖子: 557
注册时间: 2007-01-09 11:09
来自: 廣州

#10

帖子 janker2lonely » 2007-09-16 1:29

你不是有ubuntu吗?为什么不用要去用centOS呢?
去下rpm包吧,然后rpm -ivh xxx.rpm(xxx是你下的rpm的名字)
或者去www.firefox.org下源代码包,编译安装。
janker2lonely
帖子: 557
注册时间: 2007-01-09 11:09
来自: 廣州

#11

帖子 janker2lonely » 2007-09-16 1:29

这里是ubuntu的论坛,我回答了你不知道会不会挨鸡蛋啊。 :shock:
GaRY
帖子: 101
注册时间: 2007-03-25 1:18

#12

帖子 GaRY » 2007-09-16 2:18

janker2lonely 写了:这里是ubuntu的论坛,我回答了你不知道会不会挨鸡蛋啊。 :shock:
不会 :D 我想这里的人这点包容心总有吧
另外,如果楼主真想学编译步骤。研究下configure生成的makefile,就知道了。这样即使出问题,也能自行解决
回复