LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: chonger

mandrake的gcc-g++在哪里?

[复制链接]
 楼主| 发表于 2004-10-6 17:04:34 | 显示全部楼层
ps.我用的是10.1c
发表于 2004-10-6 17:16:38 | 显示全部楼层
这么麻烦啊。你用的是什么软件啊?如果是GPL的软件,我直接给你找个RPM算了。
 楼主| 发表于 2004-10-6 17:31:40 | 显示全部楼层
checking for glib-2.0 >= 2.4.0    atk >= 1.0.1    pango >= 1.4.0... Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found

configure: error: Library requirements (glib-2.0 >= 2.4.0    atk >= 1.0.1    pango >= 1.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
好象装上了,但是找不到,怎样设置变量?
Several environment variables are useful to pass to set before running configure. CPPFLAGS contains options to pass to the C compiler, and is used to tell the compiler where to look for include files. The LDFLAGS variable is used in a similar fashion for the linker. Finally the PKG_CONFIG_PATH environment variable contains a search path that pkg-config (see below) uses when looking for for file describing how to compile programs using different libraries. If you were installing GTK+ and it's dependencies into /opt/gtk, you might want to set these variables as:

      CPPFLAGS="-I/opt/gtk/include"
      LDFLAGS="-L/opt/gtk/lib"
      PKG_CONFIG_PATH="/opt/gtk/lib/pkgconfig"
      export CPPFLAGS LDFLAGS PKG_CONFIG_PATH
发表于 2004-10-6 17:43:48 | 显示全部楼层

10.1 Community Public CD 完全不能用来开发

很遗憾,10.1 Community 公开的那 3 张 CD 中缺少很多用于开发的软件,甚至没有 C++ 编译器 g++!其他的就更不用说了。所以完全不能用来开发!
如果需要这些软件,只能通过 Mirror 安装。找一个比较快的 FTP Mirror 添加为“软件源”吧。
我个人觉得这次的 Public Community 在这点上太过分了。或许他只是一个“升级”版吧——只能从 10.0 升级,而不能全新安装。
发表于 2004-10-6 17:44:23 | 显示全部楼层
Mandrakelinux中glib2.0叫做glib2-2.0,不叫glib-2.0。这个是导致问题的原因。

所以,最好的方法是找个RPM。你要编译的是什么软件呢?
 楼主| 发表于 2004-10-6 18:17:20 | 显示全部楼层
很多软件都出错,版主给个RPM的地址吧
发表于 2004-10-6 21:42:03 | 显示全部楼层

要找什么软件你得先清楚

http://ftpsearch.archive.sunet.se:8000/ftpsearch

在这里可以搜索软件的名字。Limit path中填上mandrakelinux/devel/10.1就可以搜出Mandrakelinux专用的RPM了。

当然,最好的办法是将ftp.sunet.se这样的地址添加到软件源管理器中。这样可以直接用urpmi或者rpmdrake来安装。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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