在mac os 中安装 autoconf and automake

转载地址: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 -O http://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 -O http://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 -O http://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 -O http://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).

http://www.cnblogs.com/hurricane2011/articles/2503582.html

http://blog.csdn.net/billfanggs/article/details/9948553

时间: 2024-10-05 16:20:42

在mac os 中安装 autoconf and automake的相关文章

Mac OS 中安装 autoconf 和 automake

你需要安装很多东西,请按照以下顺序安装: 安装的版本包也不能错: curl -O http://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 -O http://mirrors.kernel.org/gnu/autoconf/autoconf-2.

如何在mac os中安装gdb及为gdb进行代码签名

1. 安装gdb GDB作为一个强大的c/c++调试工具,一直是程序猿们的良好伴侣,但转到Mac os才发现竟然没有默认安装,所幸还有强大的homebrew工具: brew install homebrew/dupes/gdb 然后就是漫长的等待+编译安装时间了,安装完成后敲击gdb能打印出版本信息,说明已经正确安装了: 如果现在就使用gdb进行程序调试的话会发现,根本行不通: 2. 生成证书 这是由于Mac os的安全机制阻止了我们的gdb对要调试的程序进行完全控制,对此我们要对gdb赋予合适

VMware Mac OS补丁安装

安装了VMware9.0在新建虚拟系统的时候,没有Appel MAC OS系统的选项,上网查了一下是需要打一个VMware Mac OS补丁就可以了.下面我来演示一下VMware Mac OS补丁怎么用? 方法/步骤 1 百度一下[VMware Mac OS补丁下载]就可以看到很多下载的地方.建议找在百度云盘或是CSDN的网站下载. 2 打开下载的文件,找到[Windows]文件夹并解压出来 ,一定要解压出来的,直接压缩文件中打开安装文件是安装不的. 3 解压出来以后,点击文件夹中的[insta

Mac OS Sierra 安装PHP扩展 Operation not permitted

想看详细解读的可以 点这里  只需要解决问题直接往下看就好 ---------------------------------------------------分 割 线------------------------------------------------------- Mac OS Sierra 安装PHP扩展,在make install 的时候,出现类似 cp: /usr/lib/php/extensions/no-debug-non-zts-20131226/#[email p

Mac OS X安装OpenGL

Mac OS X安装OpenGL 安装最新的cmake brew install cmake brew upgrade cmake 安装glew brew install glew 安装GLTools git clone https://github.com/HazimGazov/GLTools cd GLTools cmake . && sudo make install 安装glfw brew install glfw 安装glad 进入在线服务: https://glad.dav1d

MAC OS 中mount nfs 报错问题.

记一下 MAC OS 中mount nfs 报错问题. 环境和配置文件 NFS 服务端 Ubuntu 安装 apt install nfs-kernel-server 服务端的配置文件 cat /etc/exports /nfsdata 192.168.22.1/26(rw,sync,insecure,no_root_squash) CentOS 下测试挂载 yum install nfs-utils -y mount -t nfs -o rw 192.168.22.8:/nfsdata /tm

mac OS X 安装svn

因为从10.5版本开始适用Mac OS,SVN一直都是默认安装的软件. 后来发现一个简单的办法. 如果你有安装XCode,只需要在code > Preferences > download > Command Line Tools > Install即可,速度很快,基本1分钟搞定. 这个Command Line Tools包含最新的SVN.然后如果你没有安装XCode的话,就会很痛苦,采用这种办法就会很痛苦,因为XCode接近于1.5GB了!尤其是对于那些只是需要SVN,而不会用到

Xamarin+Prism开发详解四:简单Mac OS 虚拟机安装方法与Visual Studio for Mac 初体验

Mac OS 虚拟机安装方法 最近把自己的电脑升级了一下SSD固态硬盘,总算是有容量安装Mac 虚拟机了!经过心碎的安装探索,尝试了国内外的各种安装方法,最后在youtube上找到了一个好方法. 简单总结一下成功安装方法: 1,Vmware Player 12.1.1-3770994(Virtual Box 老版本Win10上启动不了,新版本5.1不再支持Mac OS) 2,执行命令关闭Hyper-v服务重启:bcdedit /set hypervisorlaunchtype off (不然无法

Mac OS X 安装Golang

1.确保Mac OS X 安装了Git,Hg,在Mac OS X 10.8+下面安装Xcode CommandLine Tools就可以了,10.9以上安装Xcode就包含了Git工具,hg请安装SourceTree,这个Git GUI工具包含了Mercurial工具 2.下载安装go1.3.1.darwin-amd64-osx10.8.pkg 3.安装Sublime Text,一次安装插件,GoSublime,配置GoSublime-Settings-User文件,切记不要改动任何Defaul