markolson / storyboard

Generate PDFs, ePUB and Mobi files from videos
MIT License
94 stars 10 forks source link

Ruby prerequisites #11

Closed mozai closed 10 years ago

mozai commented 11 years ago

I think the list of prerequisite Ruby modules (gems?) is incomplete.

$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
$ git clone git://...
$ cd storyboard
$ bin/storyboard
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- bundler (LoadError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from bin/storyboard:8:in `<main>'
mozai commented 11 years ago

wait, saw at the bottom of the OSX instructions: "gem install storyboard". (I am not a Ruby user, and I really should learn to follow instructions.)

$ sudo gem install storyboard
ERROR:  Error installing storyboard:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from extconf.rb:5:in `<main>'

Seems mkmf is missing from the Ruby dependencies. gem search mkmf -r gives two results: mkmf-lite & mkmfmf, and I don't know which is correct.

markolson commented 11 years ago

No worries about maybe glossing over some instructions. DId you use RVM to install that version of Ruby 1.9.3?

mozai commented 11 years ago

No; found that I already have Ruby on my workstation, with a matching major.minor.minor version number. I wish not to disrupt whatever else I may have that depends on Ruby by installing competing versions on the same workstation.

markolson commented 11 years ago

Ok, if you're on a linux machine and have Ruby 1.9.1 or Ruby 1.9.3 already, you should be able to run the following to install some of the dependencies Storyboard uses:

apt-get install ruby1.9.1-dev libxml2-dev libxslt-dev make yasm imagemagick
gem install bundler

And then for the version of FFmpeg that's required:

wget http://ffmpeg.org/releases/ffmpeg-1.1.1.tar.gz
tar xvf ffmpeg-1.1.1.tar.gz
cd ffmpeg-1.1.1
./configure && make && make install