LinuxSir.cn,穿越时空的Linuxsir!

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

如何编译程序?

[复制链接]
发表于 2005-2-9 20:07:57 | 显示全部楼层 |阅读模式
如何编译程序?

好多程序都需要编译吧./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
发表于 2005-2-9 20:43:12 | 显示全部楼层
………………………………………………

开发程序包装了么?
回复 支持 反对

使用道具 举报

发表于 2005-2-10 00:57:23 | 显示全部楼层
要把东西装全了才行。
GCC, GLIBC
回复 支持 反对

使用道具 举报

发表于 2005-2-10 01:23:16 | 显示全部楼层
装程序一般不需要自己编译


一般用 deb 包或 rpm 包
回复 支持 反对

使用道具 举报

发表于 2005-2-10 12:32:37 | 显示全部楼层
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 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

你什么开发工具包都没装,用什么编译程序呀?
回复 支持 反对

使用道具 举报

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

本版积分规则

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