LoginSignup
1
1

More than 5 years have passed since last update.

Travis-CIでgit cloneしたautoconfを使う

Last updated at Posted at 2015-09-21

背景

Travis-CIに入っているImageMagickがどうも自分が期待していた
APIが使えないビルドであった為、これを自前でビルドしようとしたら、
今度はautoconfが古いと怒られた。

autoconfも自前のモノを入れることにした。

ちなみに、この方法は、古いtravis-ci用のファイルの書き方なので、
新しい書き方で書ける人はそうしたほうが負債にならないと思われる。

autoconfをgitでcloneしてビルドする

GNUのツールなので、./configure一発と思いきや、gitで持ってくると
まず、configureがない。

このconfigureを作るのに大変苦労した。

autoconfコマンドを1回叩いて、エラーをくらい、めげずにもう一度叩くと、configureを生成してくれるが、travis-ciだと、コマンドの終了コードが0以外だと即エラーで中断なので、困った。

  • alocalコマンドで、自前のm4フォルダを指定する
  • automakeコマンドでは-aオプションで必要なファイルを自動作成?

辺りがポイントだった。

- git clone http://git.sv.gnu.org/r/autoconf.git
- cd autoconf
- aclocal -I m4
- automake -a
- autoconf
- ./configure --prefix=/usr
- make
- sudo make install
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1