分页: 1 / 1

[问题]为什么说我没有C编译器?

发表于 : 2007-04-25 12:23
永恒不永恒
我装的是ubuntu的6.06,gnome桌面的.
想bt下载的时候,发现默认自带的那个bt下载总遇到中文乱码,导致无法保存种子,自然也无法下载了。
在论坛上搜索一轮,找不到有关的解决方法,就想下载其他的bt客户端看看情况。
在qbittorrent主页上,只看到有未编译的源码包,下载回来。
首先要安装lib,按照readme里面的,
第一步执行 configure,
但是就这个就出问题了,在执行的时候遇到的是这样的情况:

代码: 全选

xzw@VIA-PC1500:~/Download/libtorrent-0.11$sudo ./configure
Password:
checking for a BSD-compatible install .../usr/bin/install -c
checking whether build environment is sane ... yes
checking for gawk ... no
checking for mawk ... mawk
checking for gcc ... no
checking for cc ... no
checking for cl ... no
configure:error: no acceptable C compiler found in $PATH
See 'config.log' for more details.
xzw@VIA-PC1500:~/Download/libtorrent-0.11$
开始以为我自己没有安装编译器,于是打开新立得管理器看看,发现g++4.0/gcc4.0都安装了。那么现在是什么问题导致无法安装呢?[/code]

发表于 : 2007-04-25 12:29
bones7456
执行./configure 前面不要加sudo的,另外你要安装build-essential这个包。

发表于 : 2007-04-25 12:39
永恒不永恒
感谢楼上的提示。
不加sudo不行,会提示Permission denied的.
不过在安装了build-essential包后,刚才那个问题解决了,但是在进行到后面的时候,又停下来了
提示:
configure:error:unable to find Boost.DateTime library, currently this is required.
请问应该如何解决呢?

发表于 : 2007-04-25 12:54
Element
缺啥装啥

发表于 : 2007-04-25 13:04
BigSnake.NET
sudo apt-get install libboost-dev