在mac os 中安装 autoconf and automake
来源:互联网 发布:大数据工程师加班多吗 编辑:程序博客网 时间:2024/05/20 04:28
http://www.mattvsworld.com/blog/2010/02/install-the-latest-autoconf-and-automake-on-mac-os-10-6/
I noticed today that while Mac OS 10.6 (specifically, 10.6.2) comes with automake and autoconf, the versions are a little bit dated. Normally I wouldn’t care, but I ran into an issue when trying to generate a portable distribution using those tools on my mac, and then configure, compile, and install the result on a linux box. What I discovered is that the version of autoconf and automake on OSX can generate a “configure” file which doesn’t work as expected on linux (at least one with gcc 4.3) — specifically, the step “checking for working mktime…” can hang and eventually return “no”, when that is not the correct result. Apparently you need at least autoconf 2.62 in order to avoid this bug.
I figured as long as I was updating autoconf i’d update automake, m4, and libtool as well. Here’s the quick script (as always, I assume you prefer the installation prefix /usr/local as i do). It’s nothing too fancy, but the sequence of the installs is important:
curl -Ohttp://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz
tar -xzvf m4-1.4.13.tar.gz
cd m4-1.4.13
./configure --prefix=/usr/local
make
sudo make install
cd ..
curl -Ohttp://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz
tar -xzvf autoconf-2.65.tar.gz
cd autoconf-2.65
./configure --prefix=/usr/local # ironic, isn't it?
make
sudo make install
cd ..
# here you might want to restart your terminal session, to ensure the new autoconf is picked up and used in the rest of the script
curl -Ohttp://mirrors.kernel.org/gnu/automake/automake-1.11.tar.gz
tar xzvf automake-1.11.tar.gz
cd automake-1.11
./configure --prefix=/usr/local
make
sudo make install
cd ..
curl -Ohttp://mirrors.kernel.org/gnu/libtool/libtool-2.2.6b.tar.gz
tar xzvf libtool-2.2.6b.tar.gz
cd libtool-2.2.6b
./configure --prefix=/usr/local
make
sudo make install
and now, (assuming you have /usr/local in your path), when you use autotools your distribution should be correctly portable (at least in regards to this mktime bug).
0 0
- 在mac os 中安装 autoconf and automake
- 在mac os 中安装 autoconf and automake
- 在mac os 中安装 autoconf and automake
- 在mac os 中安装 autoconf and automake
- 在mac os 中安装 autoconf and automake
- 在mac os 中安装 autoconf and automake
- 在mac os 中安装 autoconf and automake
- 转 mac下autoconf automake安装
- automake and autoconf
- Mac OS X系统安装GNU Autoconf,Automake和Libtool构建工具来生成makefiles和动态库
- autoconf和automake安装
- 安装 Autoconf, Automake & Libtool
- Autotools: Autoconf, Automake and Libtool
- 安装autoconf, automake, 以及 libtool
- 安装m4, autoconf, automake, libtool
- 在Mac OS中安装 wget
- 如何在Mac OS中安装 wget
- 在Mac OS中安装 wget
- 分享一个比JDK的ThreadPoolExecutor更好用的线程池-JohanThreadPool
- Socket 通信原理(Android客户端和服务器以TCP&&UDP方式互通)
- 华为机试题----找一句话中最长的单词
- cocos2d-x技能冷却效果
- 对话框的MFC,为什么一点回车键,程序就退出
- 在mac os 中安装 autoconf and automake
- Eclipse下建立第一个Servlet程序步骤
- 反恐!!——生物特征识别技术可以做很多
- Linux中find常见用法示例
- Codeforces Round #231 (Div. 2)
- 如何成为iOS开发高手
- 工作流开发总结
- Windows线程同步的方法
- rsync 用法