-
Notifications
You must be signed in to change notification settings - Fork 24
How to install on MacOS 10.10 Yosemite
Starting with MacOS 10.10 Yosemite RubyCocoa is no longer bundled.
To get wkpdf working on Yosemite, do this on your terminal:
-
Install Ruby 1.8.7 through RVM with specific options:
rvm install 1.8.7-head --debug --reconfigure -C --enable-shared=yes
-
Start using the newly installed ruby:
rvm use 1.8.7
-
Install wkpdf
gem install wkpdf
and edit its binnano /usr/bin/wkpdf
so that in the first#!
line it uses your newly installed ruby (do awhich ruby
and it should be something like~/.rvm/rubies/ruby-1.8.7-head/bin/ruby
) and not system ruby (which as of Yosemite is Ruby 2.0, which isn't compatible with RubyCocoa). -
Download the latest RubyCocoa version:
wget http://sourceforge.net/projects/rubycocoa/files/RubyCocoa/1.2.0/RubyCocoa-1.2.0.tar.gz/download RubyCocoa-1.2.0.tar.gz -O RubyCocoa-1.2.0.tar.gz
-
Uncompress into a folder and move into it:
tar xzf RubyCocoa-1.2.0.tar.gz && rm RubyCocoa-1.2.0.tar.gz && cd RubyCocoa-1.2.0
-
Config the RubyCocoa installation:
ruby install.rb config --target-archs="x86_64"
(see this gist) -
Setup & run the RubyCocoa installation:
ruby install.rb setup
sudo ruby install.rb install
-
That's it, run wkpdf's help to test it works:
wkpdf --help