LoginSignup
2
0

More than 5 years have passed since last update.

SlideShow(S9)入れた時のメモ

Last updated at Posted at 2014-11-19

思ったよりも手間取ったので。同じようなことがあった時のために。

とりあえず

% gem install slideshow

Symbol not found というエラーで弾かれる。opensslがないよって言ってるけれど入ってる。ぐぐってみるとパスが通ってないことが原因であるとのこと。

そこでリンクを張ってあげる。

% brew link openssl --force

でもダメ。

もう少し調べてみるとruby install時にパスを指定してあげればいいみたい。
丁度2.1.5を入れてなかったのでそれを入れつつ指定。

% RUBY_CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl`" rbenv install 2.1.5

再度 gem slideshow install すると無事インストールできた。

実行してみる。

% slideshow
.rbenv/versions/2.1.5/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- active_record (LoadError)
    from /Users/e105711/.rbenv/versions/2.1.5/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Users/e105711/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/props-1.1.1/lib/props/db.rb:7:in `<top (required)>'
.
.
.

すごい怒られる。active_record がないそうです。入れる。

% gem install activerecord

もっかい実行。

% slideshow
/Users/e105711/.rbenv/versions/2.1.5/lib/ruby/2.1.0/rubygems/specification.rb:2064:in `raise_if_conflicts': Unable to activate activerecord-4.1.7, because activesupport-4.2.0.beta4 conflicts with activesupport (= 4.1.7) (Gem::LoadError)
.
.
.

activesupportが衝突しているそうです。beta版を消す。

% gem uninstall activesupport
Select gem to uninstall:
 1. activesupport-4.1.7
 2. activesupport-4.2.0.beta4
 3. All versions
> 2

もっかい実行。

% slideshow
confdb/1.1.1 on Ruby 2.1.5 (2014-11-13) [x86_64-darwin13.0]
fetcher/0.4.4 on Ruby 2.1.5 (2014-11-13) [x86_64-darwin13.0]
NAME
.
.
.

うごいた!とりあえずサンプル出させてビルドしてもらおう。

% slideshow n
% slideshow b welcome.text
*** error: undefined method `left' for #<Slideshow::Gen:0x007f89b2790408>

エラー。ここによると最新版にしてプラグインを入れてくださいとのこと。

する。

% slideshow update
% slideshow install plugins
% slideshow b welcome.text
confdb/1.1.1 on Ruby 2.1.5 (2014-11-13) [x86_64-darwin13.0]
fetcher/0.4.4 on Ruby 2.1.5 (2014-11-13) [x86_64-darwin13.0]
Loading shortcut index from '/Users/e105711/slideshow.index.yml'...
Slide Show (S9) 2.3.0 on Ruby 2.1.5 (2014-11-13) [x86_64-darwin13.0]
.
.
.

うごいた!生成されたhtmlにも問題なし。なんでこんなに時間がかかったんだろ。

後でわかったんだけど、homebrewでopensslを入れた後にrbenvでrubyをインストールすればパスの指定等はいらないみたい。

ruby側ではインストール時のopensslのライブラリしか見ていなくてhomebrewでアップデートして古いの消しちゃうから見つかんなかったってことなのかな?

2
0
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
2
0