`
BestUpon
  • 浏览: 284330 次
  • 性别: Icon_minigender_1
  • 来自: 兰州
社区版块
存档分类
最新评论

在mac os 中安装 autoconf and automake

    博客分类:
  • MAC
阅读更多

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).

分享到:
评论

相关推荐

    openslide-java:Java与OpenSlide的绑定

    建造要求JDK 阿帕奇蚂蚁OpenSlide> = 3.4.0在Linux或Mac OS X上构建 ./configuremakemake install(如果从Git存储库构建,则首先需要安装autoconf,automake,libtool和pkg-config并运行autoreconf -i 。)Windows与...

    Shiranui:Shiranui是一种新的编程语言,支持实时测试驱动的编程

    $ autoreconf$ automake --add-missing$ autoreconf$ ./configure$ make如何在Mac OS上构建我使用Macports安装Boost。 $ export LIBRARY_PATH=$LIBRARY_PATH:/opt/local/lib$ export LD_LIBRARY_PATH=$LD_LIBRARY_...

    monodevelop-build:一步在OS X上构建MonoDevelop

    此存储库的目标是使在全新的OS X安装上构建...安装autoconf和automake 安装Xamarin.Mac和Mono开发套件 克隆mono / monodevelop仓库 配置和构建monodevelop,包括OS X应用程序捆绑包 本身打开主要的MonoDevelop工作区

    libmodbus:适用于Linux,Mac OS X,FreeBSD,QNX和Windows的Modbus库

    该库是用C语言编写的,旨在在Linux,Mac OS X,FreeBSD和QNX和Windows上运行。安装您只需要安装automake,autoconf,libtool和C编译器(gcc或clang)来编译库,并安装asciidoc和xml来生成文档(可选)。 要安装,只...

    opencore-amr-js

    opencore-amr-js Javascript中...env.shsudo apt-get install nodejs-legacy安装automake和autoconf工具: sudo apt-get install libtool automake autoconf 在项目源代码树的js目录下运行make 。在Mac OS X下构建安装

    external_exfat

    编译中要在GNU / Linux上构建此项目,您需要安装以下软件包: 保险丝-开发(或libfuse-dev)在Mac OS X上: 自动配置自动制作pkg-config (旧版包含自动工具,但其版本过旧) 在OpenBSD上: 吉特autoconf(设置...

    lowjs:Node.JS的端口,具有较低的系统要求。 POSIX系统(例如Linux,uClinux或Mac OS X)的社区版本

    低级low.js是JavaScript运行时Node.js的一个免费使用的开源端口,具有较低的系统要求,使其可以在基于ESP32-WROVER模块的廉价,省电的微控制器... 编译之前,请确保已安装以下软件: make g++automake autoconf libtool

    jellyfin-media-player:基于Plex Media Player的Jellyfin桌面客户端

    支持Windows,Mac OS和Linux。 与Jellyfin Desktop不同,媒体使用jellyfin-web界面在同一窗口中播放。 支持音频直通。 基于 。 资料下载: 相关文件: 相应的Web客户端: API文档 这样的构建消除了播放器中很多...

    pseudogen:一种从源代码自动生成伪代码的工具-ps source code

    假性原 一种从源代码自动生成伪代码的工具。 安装 使用Docker 泊坞窗就是您所需要的。 docker attach `docker run -itd ...对于Mac OS X用户: GIZA++是为Linux编写的,因此您可能需要做一些修改才能安装。 git c

    smuxi:Smuxi是基于GNOME GTK +Linux,Windows和Mac OS X的用户友好型免费IRC客户端

    软件需求首先,您将需要安装一些库来编译源代码构建工具和库: Automake,Autoconf,gettext,pkg-config Mono SDK(> = 4.6.2) 妮妮(> = 1.1) log4net SQLite3 GTK#(> = 2.10)(可选,但对于GNOME前端是必需...

    opensc-0.12.0.tar.gz

    * Build script for a binary Mac OS X installer for 10.5 and 10.6 systems. Binary installer includes OpenSC.tokend for platform integration. 10.6 installer includes engine_pkcs11. * Modify Rutoken S ...

    Evenk:一个用于并发编程的C ++库

    埃文克 一个用于并行编程的C ++ 14库。... 需要在您的系统上安装以下工具:automake,autoconf,当然还有make和gcc或clang。 一旦拥有这些,只需运行以下命令: > ./bootstrap > ./configure > make

Global site tag (gtag.js) - Google Analytics