【发布时间】:2012-08-24 03:02:22
【问题描述】:
在 Linux 上安装 c 库的一般方法是什么?
特别是,我想安装this 库,目的是编译这个:
#include <SDL_image.h> // it errs that it does not recognize this
int main()
{
}
我尝试过的:
- 从here获取二进制文件
- 输入
/etc/usr/clibs - 将此路径添加到
/etc/ld.so.conf
=> 失败。仍然无法编译我的文件。
我从here安装了rpm
=> 失败,仍然无法编译
我尝试从源代码构建:
在运行configure 时,它说:
checking for sdl-config... no
checking for SDL - version >= 1.2.10... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
我不明白,它需要一个安装脚本,其存在是安装的结果...
我不知道该尝试什么了...我花了很多时间试图解决这个问题,所以如果有人可以给我一个解决方案来做这个和那个,那就太好了。回答一般问题将是一个很大的奖励。
谢谢。
【问题讨论】:
标签: c linux dependencies installation