標(biāo)題: 請(qǐng)問高手linux里gcc是什么?我裝apache [打印本頁] 作者: hoter 時(shí)間: 2003-04-08 20:34 標(biāo)題: 請(qǐng)問高手linux里gcc是什么?我裝apache 請(qǐng)問高手linux里gcc是什么?我裝apache _1.3.27和php-4.3.1時(shí)老提示?????????
======== Error Output for sanity check ========
cd ..; c89 -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEED `./apaci` -o helpers/dummy helpers/dummy.c -lm
/usr/bin/c89: line 10: /usr/bin/gcc: No such file or directory
/usr/bin/c89: line 10: exec: /usr/bin/gcc: cannot execute: No such file or diretory
make: *** [dummy] Error 126
============= End of Error Report =============
[root@hao php-4.3.1]# ./configure --with-apache=../apache_1.3.27 --enable-trackvars
creating cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for working sed... sed
checking host system type... i686-pc-linux-gnu
Updated php_version.h
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
[root@hao php-4.3.1]# make
make: *** No targets specified and no makefile found. Stop.
[root@hao php-4.3.1]# make install
make: *** No rule to make target `install'. Stop.作者: scaning 時(shí)間: 2003-04-08 20:47 標(biāo)題: 請(qǐng)問高手linux里gcc是什么?我裝apache 是一種編譯器,Unix下很多程序都是用C編的,因此,必須有CC或者GCC來編譯。作者: hoter 時(shí)間: 2003-04-08 20:56 標(biāo)題: 請(qǐng)問高手linux里gcc是什么?我裝apache 我的是 linux,這樣我 怎么解決上面的問題呢,謝謝,急啊!!!!!作者: enfuzion 時(shí)間: 2003-04-08 21:29 標(biāo)題: 請(qǐng)問高手linux里gcc是什么?我裝apache 安裝gcc作者: peter333 時(shí)間: 2003-04-08 21:48 標(biāo)題: 請(qǐng)問高手linux里gcc是什么?我裝apache install development tools作者: hoter 時(shí)間: 2003-04-08 22:11 標(biāo)題: 請(qǐng)問高手linux里gcc是什么?我裝apache install development tools是什么啊,拜托,我是菜鳥,說詳細(xì)好么作者: hoter 時(shí)間: 2003-04-08 22:11 標(biāo)題: 請(qǐng)問高手linux里gcc是什么?我裝apache 怎么安裝gcc啊作者: enfuzion 時(shí)間: 2003-04-08 22:15 標(biāo)題: 請(qǐng)問高手linux里gcc是什么?我裝apache 如果是debian,只要輸入apt-get install gcc
然后進(jìn)入新建的目錄執(zhí)行
./configure
make
make install (must root)作者: hoter 時(shí)間: 2003-04-08 22:40 標(biāo)題: 請(qǐng)問高手linux里gcc是什么?我裝apache 又出現(xiàn)這樣,慘啊!!!!
[root@hao gcc-3.2.2]# ./configure
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /root/download/gz/gcc-3.2.2 using "mt-frag"
./configure: line 7: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
[root@hao gcc-3.2.2]# make
Configuring in ./libiberty
creating cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo
checking for perl... perl
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ar... ar
checking for ranlib... ranlib
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
make: *** [configure-target-libiberty] Error 1
[root@hao gcc-3.2.2]# make install
/bin/sh ./mkinstalldirs /usr/local /usr/local作者: buaaytt 時(shí)間: 2003-04-08 23:05 標(biāo)題: 請(qǐng)問高手linux里gcc是什么?我裝apache 你的安裝光盤里肯定有g(shù)cc的rpm包,裝上就行了作者: hoter 時(shí)間: 2003-04-08 23:12 標(biāo)題: 請(qǐng)問高手linux里gcc是什么?我裝apache 怎么查看現(xiàn)在是否已經(jīng)裝有了gcc,或cc,還有版本作者: lb_20016 時(shí)間: 2003-04-08 23:57 標(biāo)題: 請(qǐng)問高手linux里gcc是什么?我裝apache
如果沒有安裝gcc,那么就先安裝gcc,然后再
./configure
make
make install作者: hoter 時(shí)間: 2003-04-09 09:18 標(biāo)題: 請(qǐng)問高手linux里gcc是什么?我裝apache 可是,我裝的時(shí)候出現(xiàn)
先解壓了然后
[root@hao gcc-3.2.2]# ./configure
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /root/download/gz/gcc-3.2.2 using "mt-frag"
./configure: line 7: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
[root@hao gcc-3.2.2]# make
Configuring in ./libiberty
creating cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo
checking for perl... perl
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ar... ar
checking for ranlib... ranlib
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
make: *** [configure-target-libiberty] Error 1
[root@hao gcc-3.2.2]# make install
/bin/sh ./mkinstalldirs /usr/local /usr/local作者: enfuzion 時(shí)間: 2003-04-09 09:21 標(biāo)題: 請(qǐng)問高手linux里gcc是什么?我裝apache 你沒有安裝gcc,先安裝了再說作者: hoter 時(shí)間: 2003-04-09 09:44 標(biāo)題: 請(qǐng)問高手linux里gcc是什么?我裝apache 怎么安裝gcc啊,嗚^^^^^^^^^^^
用光盤都不行啊,我在添加軟件包那里刪除了,再安裝可是還是gcc -v還是不出來作者: lb_20016 時(shí)間: 2003-04-09 10:06 標(biāo)題: 請(qǐng)問高手linux里gcc是什么?我裝apache [quote]原帖由 "hoter"]在終端那里用鼠標(biāo)選擇,然后單機(jī)右鍵就可以復(fù)制了[/quote 發(fā)表:
復(fù)制完之后粘貼到哪里啊,好象在win2000下不能訪問linux分區(qū)啊?該不會(huì)是用軟盤,優(yōu)盤之類的吧?
還有就是gcc不是原先就安裝上了的嗎?在你裝系統(tǒng)的時(shí)候。
默認(rèn)安裝的呀!作者: hoter 時(shí)間: 2003-04-09 10:17 標(biāo)題: 請(qǐng)問高手linux里gcc是什么?我裝apache 復(fù)制后直接粘貼\到這里來啊.
我不知道什么時(shí)候給搞掉了gcc,慘啊,幫幫我把高手們,嗚^^^^^^^^^^^
我現(xiàn)在一解壓執(zhí)行就這樣
[root@hao gz]# cd gcc-3.2.2
[root@hao gcc-3.2.2]# ./configure
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /root/download/gz/gcc-3.2.2 using "mt-frag"
./configure: line 7: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.作者: hoter 時(shí)間: 2003-04-09 16:09 標(biāo)題: 請(qǐng)問高手linux里gcc是什么?我裝apache ok了,用系統(tǒng)設(shè)置->;軟件包把整個(gè)開發(fā)工具都刪除,然后在安裝ok,只是要用光盤.誰要是研究出用tar或rpm裝的告訴我,謝謝