ラベル rmagick の投稿を表示しています。 すべての投稿を表示
ラベル rmagick の投稿を表示しています。 すべての投稿を表示

2014年10月13日月曜日

bundle installのtiny_tdsのエラー対処

bundle installしたら、tiny_tdsのインストールで以下の様に怒られました
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /Users/name/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb
checking for iconv_open() in iconv.h... no
checking for iconv_open() in -liconv... yes
checking for sybfront.h... no
-----
freetds is missing.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/Users/name/.rvm/rubies/ruby-1.9.3-p327/bin/ruby
    --enable-lookup
    --disable-lookup
    --with-iconv-dir
    --without-iconv-dir
    --with-iconv-include
    --without-iconv-include=${iconv-dir}/include
    --with-iconv-lib
    --without-iconv-lib=${iconv-dir}/lib
    --with-freetds-dir
    --without-freetds-dir
    --with-freetds-include
    --without-freetds-include=${freetds-dir}/include
    --with-freetds-lib
    --without-freetds-lib=${freetds-dir}/lib
    --with-iconvlib
    --without-iconvlib

extconf failed, exit code 1

Gem files will remain installed in /Users/name/.rvm/gems/ruby-1.9.3-p327@restir/gems/tiny_tds-0.6.2 for inspection.
Results logged to /Users/name/.rvm/gems/ruby-1.9.3-p327@restir/extensions/x86_64-darwin-11/1.9.1/tiny_tds-0.6.2/gem_make.out
An error occurred while installing tiny_tds (0.6.2), and Bundler cannot continue.
Make sure that `gem install tiny_tds -v '0.6.2'` succeeds before bundling.
どうやら、freetdsのインストールが必要らしいです。
以下のようにインストールします。
sudo brew install freetds
それからもう一度、bundle install

公式サイト

git-hub rails-sqlserver/tiny_tdsはこちら

bundle installのrmagickでエラー対処

bundle installでrmagickのインストールでエラー発生。
brewでimagemagickを入れ直したりしたけど、全然改善せずで、
以下の方法でimagemagickをインストールし直してから
bundle installしたら成功しました。
cd /tmp
curl -OL ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar -xzf ImageMagick.tar.gz
cd ImageMagick-6.8.9-8/
./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp --with-gs-font-dir=/usr/local/share/ghostscript/fonts
make
sudo make install

statistics