|
|
如何编译程序?
好多程序都需要编译吧./configure,然后完了就该make、make install了。
装xmms
[monketboy@localhost ~]$ su -
]Password:
[root@localhost ~]# cd /tmp
[root@localhost tmp]# cd 1
[root@localhost 1]# cd xmms-1.2.8
[root@localhost xmms-1.2.8]# ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for prefix by checking for xmms... no
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
[root@localhost xmms-1.2.8]# make
make: *** 没有指明目标并且找不到 makefile。 停止。
[root@localhost xmms-1.2.8]# make install
make: *** 没有规则可以创建目标“install”。 停止。
装Mplayer
[root@localhos
t 1]# cd MPlayer-0.92
[root@localhost MPlayer-0.92]# ./configure
Detected operating system: Linux
Detected host architecture: i386
Checking for gcc version ... not found
Checking for gcc-3.1 version ... not found
Checking for gcc3 version ... not found
Checking for gcc-3.0 version ... not found
Checking for cc version ... not found
*** Please downgrade/upgrade C compiler to version gcc-2.95.x or gcc-3.x! ***
You are not using a supported compiler. We do not have the time to make sure
everything works with compilers other than the ones we use. Use either the
same compiler as we do, or use --disable-gcc-checking but DO *NOT* REPORT BUGS
unless you can reproduce them after recompiling with a 2.95.x or 3.x version!
Note for gcc 2.96 users: Some versions of this compiler are known to miscompile
mplayer and lame (which is used for mencoder). If you get compile errors,
first upgrade to the latest 2.96 release (minimum 2.96-85) and try again.
If the problem still exists, try with gcc 3.x (or 2.95.x) *BEFORE* reporting
bugs!
GCC 2.96 IS NOT AND WILL NOT BE SUPPORTED BY US !
*** For details please read DOCS/users_against_developers.html ***
Error: Bad gcc version
Check "configure.log" if you do not understand why it failed.
[root@localhost MPlayer-0.92]# make
Makefile:7: config.mak: 没有那个文件或目录
make: *** 没有规则可以创建目标“config.mak”。 停止。
[root@localhost MPlayer-0.92]# make install
Makefile:7: config.mak: 没有那个文件或目录
make: *** 没有规则可以创建目标“config.mak”。 停止。
[root@localhost MPlayer-0.92]#
系统为Fedore 3 |
|