A-A+

ubuntu上编译源代码问题小计

2008年11月29日 未分类 暂无评论 阅读 1 次

出现aclocal: not found

执行命令;sudo apt-get install eva

搞定,又出新的问题

baby@dnsbackup:~/sphinx/mysql-5.1.26-rc$ sudo sh BUILD/autorun.sh
[sudo] password for baby:
BUILD/autorun.sh: 23: aclocal: not found
Can't execute aclocal

1. if you got error messages saying that it couldn't find x11 libraries (that is -lX11 not found on my debian box), try to apt-get install libx11-6 and libx11-dev. This solved my problem and it should solves yours as well 😉 (it better does coz I spent 2 hours try to figure out the solution........ a bit of dummy, uh?).

2. if you got an error message saying that "aclocal" not found, it's likely that you haven't got "automake" installed, so, guess you know what's the next step, apt-get install automake. For a reference, this is the full error message I got while trying to "make":

root@0[bbsload-0.2.8]# make
cd . && aclocal
/bin/sh: line 1: aclocal: command not found
make: *** [aclocal.m4] 错误 127

baby@dnsbackup:~/sphinx/mysql-5.1.26-rc$ sudo sh BUILD/autorun.sh
[sudo] password for baby:
BUILD/autorun.sh: 26: libtoolize: not found
Can't execute libtoolize

libtoolize 是 libtool包里面的。安装了这个包就有了。。
可是,现在还差点。。

./configure --with-plugins=sphinx --prefix=/usr/local/mysql-search/ --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-big-tables --with-readline --with-ssl --with-embedded-server --enable-local-infile
出现

checking for termcap functions library... configure: error: No curses/termcap library found

需要安装ncurses-5.2.tar.gz,安装好之后把安装路径设置到PATH中。?????
  ./configure --with-named-curses-libs=/usr/lib/libncursesw.so.5

and installed it with:

apt-get install libncurses5-dev            solved problem.

Fixed it by doing: yum install ncurses-devel ?????
and i also fixed it by doing: yum -y install ncurses-devel
终于通过了。

给我留言

Copyright © 浩然东方 保留所有权利.   Theme  Ality 07032740

用户登录