解决Ubuntun 12.04编译Mesa10.3 WARNING: 'aclocal-1.14' is missing on your system
安 装Mesa时,最后一个错误报“WARNING: 'aclocal-1.14' is missing on your system.”,虽然是个Warning,但是无法进行下一步make,所以必须解决。根据warning给的提示以及网上搜的信息判断,这是一个时间 戳变化导致的系统以为文件被修改,所以需要重新编译几个脚本文件。实际上我从官网下载来的源文件压缩包我根本没动过,应该是解压过程中系统版本不一样或者 时间差导致的文件时间戳发生了变化而已(能想到这个,因为我从本机往US的服务器传文件时,解压缩时总是会提示文件的时间戳变为什么什么了,也就是常说的 timestamp skew)。这错误比较少见,相关资料实在太少。能Google的都被我Google了,最后还是让我找到了解决方案,记录在这供后来人借鉴以节约时间。
该错误详情:
test@test:/usr/local/src/Mesa_build$
sudo make
CDPATH="${ZSH_VERSION+.}:"
&& cd /install/Mesa-10.3.5 && /bin/bash /install/Mesa-10.3.5/bin/missing aclocal-1.14 -I m4
/install/Mesa-10.3.5/bin/missing:
line 81: aclocal-1.14: command not found
WARNING:
'aclocal-1.14' is missing on your system.
You
should only need it if you modified 'acinclude.m4' or
'configure.ac'
or m4 files included by 'configure.ac'.
The
'aclocal' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
It
also requires GNU Autoconf, GNU m4 and Perl in order to run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
make:
*** [/install/Mesa-10.3.5/aclocal.m4] Error 127
很自然的就想到按提示去装那几个autotools,就如这里建议的:http://stackoverflow.com/questions/24233721/build-m4-autoconf-automake-libtool-on-unix
You
do not need to install the autotools. Most
likely, the
problem is caused by a timestamp skew and some files in the pcre
tarball have been unpacked with incorrect timestamps. (This often
happens if you unpack the tarball on a network drive.)Trying
to recreate the configure script using the autotools is not the simplest solution.
解决方法如下:
用Synaptic
Package Manager搜索安装这些库(显然有些是重复的,当时不清楚用哪个索性全添加了):
autotools-dev
automake
autoconf2.13
m4
perl
libperl5.14
执行如下命令:
test@test:/usr/local/src/Mesa-10.3.5$sudo
autoreconf -ivf 就是这一句解决了问题
注意:这条语句是在源文件目录(Mesa-10.3.5)下执行,否则会找不到文件:
- autoreconf2.50: `configure.ac' or `configure.in' is required
然后重新配置,编译。
test@test:/usr/local/src/Mesa-10.3.5$sudo
./configure --disable-dri3
配置完,编译:
test@test:/usr/local/src/Mesa-10.3.5$sudo
make
不再报开始那个错误了!
参考:
正如https://github.com/SIPp/sipp/issues/61帖子里rkday说的,他建议步骤二中尝试以下2种方法:
Could
you try the two troubleshooting suggestions athttps://github.com/SIPp/sipp#building?
That is, do command:
touch
configure.ac aclocal.m4 configure Makefile.am Makefile.in
or
autoreconf
-ivf
There-running
configure and make, one of them should fixes this
problem.
我两种都试了,touch那个不行,the
second one (autoreconf)
works for me, on my Ubuntu 12.04, good luck!
其它信息:
步骤2)和3)中虽然不再报'aclocal-1.14'
is missing on your system错误,但是还会报如下一些错误(这些都很好解决了):
test@test:/usr/local/src/Mesa-10.3.5$sudo
touch configure.ac aclocal.m4 configure Makefile.am Makefile.in
test@test:/usr/local/src/Mesa-10.3.5$sudo
autoreconf -ivf
Can't
exec "libtoolize": No such file or directory at /usr/bin/autoreconf2.50 line 196.
Use
of uninitialized value in pattern match (m//) at /usr/bin/autoreconf2.50 line 196.
autoreconf2.50:
Entering directory `.'
autoreconf2.50:
configure.ac: not using Gettext
autoreconf2.50:
running: aclocal --force -I m4
autoreconf2.50:
configure.ac: tracing
autoreconf2.50:
configure.ac: not using Libtool
autoreconf2.50:
running: /usr/bin/autoconf --force
autoreconf2.50:
configure.ac: not using Autoheader
autoreconf2.50:
running: automake --add-missing --copy --force-missing
src/egl/drivers/dri2/Makefile.am:36:
Libtool library used but `LIBTOOL' is undefined
src/egl/drivers/dri2/Makefile.am:36:
The usual way to define `LIBTOOL' is to add `LT_INIT'
src/egl/drivers/dri2/Makefile.am:36:
to `configure.ac' and run `aclocal' and `autoconf' again.
src/egl/drivers/dri2/Makefile.am:36:
If `LT_INIT' is in `configure.ac', make sure
src/egl/drivers/dri2/Makefile.am:36:
its definition is in aclocal's search path.
…...
解决方法:用Synaptic
Package Manager搜索安装:libtool和libltdl-dev
test@test:/usr/local/src/Mesa-10.3.5$sudo
autoreconf -ivf
autoreconf2.50:
Entering directory `.'
autoreconf2.50:
configure.ac: not using Gettext
autoreconf2.50:
running: aclocal --force -I m4
autoreconf2.50:
configure.ac: tracing
autoreconf2.50:
running: libtoolize --install --copy --force
libtoolize:
putting auxiliary files in AC_CONFIG_AUX_DIR, `bin'.
libtoolize:
copying file `bin/config.guess'
libtoolize:
copying file `bin/config.sub'
libtoolize:
copying file `bin/install-sh'
libtoolize:
copying file `bin/ltmain.sh'
libtoolize:
putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize:
copying file `m4/libtool.m4'
libtoolize:
You should add the contents of `m4/libtool.m4' to `aclocal.m4'.
libtoolize:
copying file `m4/ltoptions.m4'
libtoolize:
You should add the contents of `m4/ltoptions.m4' to `aclocal.m4'.
libtoolize:
copying file `m4/ltsugar.m4'
libtoolize:
You should add the contents of `m4/ltsugar.m4' to `aclocal.m4'.
libtoolize:
copying file `m4/ltversion.m4'
libtoolize:
copying file `m4/lt~obsolete.m4'
libtoolize:
You should add the contents of `m4/lt~obsolete.m4' to `aclocal.m4'.
autoreconf2.50:
running: /usr/bin/autoconf --force
autoreconf2.50:
configure.ac: not using Autoheader
autoreconf2.50:
running: automake --add-missing --copy --force-missing
src/mesa/Makefile.sources:7:
BUILDDIR multiply defined in condition TRUE ...
src/mesa/Makefile.am:63:
`src/mesa/Makefile.sources' included from here
src/mesa/Makefile.am:62:
... `BUILDDIR' previously defined here
autoreconf2.50:
Leaving directory `.'
成功。
test@test:/usr/local/src/Mesa-10.3.5$sudo
./configure --disable-dri3
checking
build system type... x86_64-unknown-linux-gnu
checking
host system type... x86_64-unknown-linux-gnu
checking
target system type... x86_64-unknown-linux-gnu
checking
for a BSD-compatible install... /usr/bin/install -c
checking
whether build environment is sane... yes
checking
for a thread-safe mkdir -p... /usr/local/bin/mkdir -p
checking
for gawk... no
checking
for mawk... mawk
...
顺利完成。
test@test:/usr/local/src/Mesa-10.3.5$
sudo make
...
CC st_gen_mipmap.lo
CXX st_glsl_to_tgsi.lo
CC st_manager.lo
CC st_mesa_to_tgsi.lo
CC st_program.lo
CC st_texture.lo
CC st_vdpau.lo
CXXLD
libmesagallium.la
make[4]:
Leaving directory `/usr/local/src/Mesa-10.3.5/src/mesa'
Making
all in main/tests
make[4]:
Entering directory `/usr/local/src/Mesa-10.3.5/src/mesa/main/tests'
make[4]:
Nothing to be done for `all'.
make[4]:
Leaving directory `/usr/local/src/Mesa-10.3.5/src/mesa/main/tests'
Making
all in drivers/dri
make[4]:
Entering directory `/usr/local/src/Mesa-10.3.5/src/mesa/drivers/dri'
Making
all in common
make[5]:
Entering directory `/usr/local/src/Mesa-10.3.5/src/mesa/drivers/dri/common'
Making
all in xmlpool
make[6]:
Entering directory `/usr/local/src/Mesa-10.3.5/src/mesa/drivers/dri/common/xmlpool'
Updating
(ca) ca/LC_MESSAGES/options.mo from ca.po.
/bin/bash:
line 4: msgfmt: command not found
make[6]:
*** [ca/LC_MESSAGES/options.mo] Error 127
make[6]:
Leaving directory `/usr/local/src/Mesa-10.3.5/src/mesa/drivers/dri/common/xmlpool'
make[5]:
*** [all-recursive] Error 1
make[5]:
Leaving directory `/usr/local/src/Mesa-10.3.5/src/mesa/drivers/dri/common'
make[4]:
*** [all-recursive] Error 1
make[4]:
Leaving directory `/usr/local/src/Mesa-10.3.5/src/mesa/drivers/dri'
make[3]:
*** [all-recursive] Error 1
make[3]:
Leaving directory `/usr/local/src/Mesa-10.3.5/src/mesa'
make[2]:
*** [all] Error 2
make[2]:
Leaving directory `/usr/local/src/Mesa-10.3.5/src/mesa'
make[1]:
*** [all-recursive] Error 1
make[1]:
Leaving directory `/usr/local/src/Mesa-10.3.5/src'
make:
*** [all-recursive] Error 1
test@test:/usr/local/src/Mesa-10.3.5$
安装:liblocale-msgfmt-perl库,sudo
make 不行,仍然报同样错误。网上搜了下,参考http://feixiong.blog.51cto.com/4216340/1177343说的,安装gettext库。sudo
make,可以了。详情可以点(这里)。
我autoreconf后sudo
make, 还遇到过下面一个奇怪错误:
- checking for make... make
- checking for python2... python2
- checking for a sed that does not truncate output... /bin/sed
- ./configure: line 6427: syntax error near unexpected token `2.2'
- ./configure: line 6427: `LT_PREREQ(2.2)'
解决方法:
把源文件目录清空,build目录也清空,重新解压,重新配置编译就行。
总结:
题外话: 我是新手,第一次接触autoconf, automake,觉得以下文字写的好,备案在此供以后深度学习这个工具时参阅:
autoconf is the tool which generates a configure script based upon a configure.ac file.
autoscan can generate a preliminary configure.ac (named configure.scan) but you'll probably need to adjust it by hand anyway.
automake generates Makefile files based upon user-edited Makefile.am
files and is automatically called by autoconf if the configure.ac script
initializes the automake subsystem (using the AM_INIT_AUTOMAKE()
macro). You can't expect those tools (especially autoscan)
to pick up the right configuration for you at the first try, as only
you know (or should know) how the project is laid out.
Are you using a clone from the git repo or the source tar ball? It
looks like you're using the git repo, which doesn't always work unless
you have the same autoconf/automake versions that I'm using. I have
autoconf 2.69 and automake 1.14 . The 'aclocal'
script is part of automake, which is why 'apt' doesn't find it.
Anyways, you can run the 'autogen.sh' script to regenerate the configure
and makefiles using the autoconf/automake that you have installed on
your system and then rerun configure.
https://github.com/tstack/lnav/issues/54
解决Ubuntun 12.04编译Mesa10.3 WARNING: 'aclocal-1.14' is missing on your system的更多相关文章
- linux 编译 'aclocal-1.14' is missing on your system
centos编译出现:类似情况: $tar -xvf libpcap-1.0.0.tar.gz $cd libpcap-1.0.0.tar.gz $./configure ...
- 对<< ubuntu 12.04编译安装linux-3.6.10内核笔记>>的修正
前题: 在前几个月的时候,写了一篇笔记,说的是kernel compile的事情,当时经验不足,虽说编译过了,但有些地方写的有错误--因为当时的理解是有错误的.今天一一更正,记录如下: 前文笔记链接: ...
- 如何解决ubuntu 12.04重启后出现waiting for network configuration和网络标志消失问题
如何解决ubuntu 12.04重启后出现waiting for network configuration和网络标志消失问题 作为菜鸟的我在学着设置网络后,重启电脑后显示 waiting forne ...
- WARNING: 'aclocal-1.14' is missing on your system.问题解决记录
在编译LXC时,遇到一个问题,提示 'aclocal-1.14'缺失.如下:WARNING: 'aclocal-1.14' is missing on your system. You should ...
- WARNING: 'aclocal-1.14' is missing on your system.
源码安装zabbix agent时进行到make install时报如下错误: WARNING: 'aclocal-1.14' is missing on your system. You shoul ...
- zabbix安装收获-WARNING: 'aclocal-1.14' is missing on your system
zabbix server已经安装成功了,在server端也安装了一个agent,一切OK. 在另外一台pg节点上安装zabbix agent时,报错: WARNING: 'aclocal-1.14' ...
- Ubuntu 12.04 编译bcm93349dcm软件包
1.准备工作操作系统:Ubuntu 12.04 获取bcm93349dcm软件包: bootloader源代码:Bootloader_2_2_0.zip CM源代码:ProdD20_BFC4.4.10 ...
- ubuntu 12.04 编译安装 nginx
下载源码包 nginx 地址:http://nginx.org/en/download.html 编译前先安装两个包: 直接编译安装会碰到缺少pcre等问题,这时候只要到再安装两个包就ok sudo ...
- WARNING: 'automake-1.14' is missing on your system.
检查发现其实已经安装了automake,只不过版本是automake-1.15.1 $ automake --version automake (GNU automake) 1.15.1 解决方法一 ...
随机推荐
- Unity3D学习笔记——Rigdbody刚体组件
Rigdbody刚体组件:必须和碰撞体(Colliders)一起使用,否则会发生穿过的现象.碰撞体(Colliders)不是必须和刚体一起使用. 刚体的作用:使游戏物体能获得重力,接受外界的受力和扭力 ...
- flask session 使用默认配置修改session不生效问题
flask session相关 使用flask 默认sessio是存储在浏览器的cookie中,当请求返回时会将session写在cooKie中,但是在写的时候,默认并不是每次都重新写入 比如下例子 ...
- PHP中MVC的编程思想浅谈
我相信这样的文章已经被写烂了,但是我今天还是愿意冒着风险把自己的经验与大家分享一下.纯属原创,我也没什么可保留,希望对新手有帮助,有说的什么不对的地方,欢迎大家伙吐槽. 什么是MVC? 简单的说就是将 ...
- Linq中GroupBy方法的使用总结(转载)
from:https://www.cnblogs.com/zhouzangood/articles/4565466.html Group在SQL经常使用,通常是对一个字段或者多个字段分组,求其总和,均 ...
- 误: Apache shutdown unexpectedly解决办法
from:http://www.wopus.org/wordpress-basic/getting-started/2536.htmlXAMPP错 2015年10月20日15:58:19 新手上路发 ...
- LeetCode具体分析 :: Recover Binary Search Tree [Tree]
Recover the tree without changing its structure. Note: A solution using O(n) space is pretty straigh ...
- python3使用SMTP发送邮件
环境:python3 ,IDE : pycharm 非常奇怪的是,用163发送邮件,如果电脑连校园网发送,会被当成垃圾邮件拒绝 如果用手机开热点就可以正常发送 代码如下 #!/usr/bin/pyth ...
- The E-pang Palace(暴力几何)
//暴力的几何题,问,n个点可以组成的矩形,不相交,可包含的情况下,最大的面积,还有就是边一定与 x y 轴平行,所以比较简单了 //暴力遍历对角线,搜出所有可能的矩形,然后二重循环所有矩形,判断一下 ...
- JavaScript处理数据完成左侧二级菜单的搭建
我们在项目中应用的后台管理框架基本上都是大同小异,左侧是一个二级菜单,点击选中的菜单,右侧对应的页面展示.我把前端页面封装数据的过程整理了一下,虽然不一定适合所有的管理页面,仅作为案例来参考,只是希望 ...
- 巨蟒python全栈开发django9:一些知识点的汇总
回顾上周内容: 题目: 1.人民出版社出版过的所有书籍的名字以及作者的姓名(三种写法,笔记中有两种写法) 2.手机以2开头的作者出版过的所有书籍名称以及出版社名称(三种写法,笔记中有1种写法) 1.聚 ...