rst2pdf and rst2html5 on OS X 10.9.2 with XCode 5.1

This was almost the new nightmare on elm street scenario. But we got over it. Below are the complete steps to get rst2pdf and rst2html5 running on your sparkling new OS X 10.9.2 Mavericks.

Prerequisites

  • XCode 5.1
  • Homebrew 0.9.5

Steps


# install jpeg lib via homebrew
brew install libjpeg

# install pip via easy_install
sudo easy_install --upgrade pip

# install dependencies manually using the unused argument hack
sudo pip install --upgrade pdfrw

sudo pip install --upgrade Pygments

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install --upgrade reportlab

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install --allow-unverified PIL PIL

# install the bad boy
sudo pip install -U rst2pdf
sudo pip install -U rst2html5

Advertisements

3 thoughts on “rst2pdf and rst2html5 on OS X 10.9.2 with XCode 5.1

  1. Pingback: Building vagent2 for Varnish Cache 4.0.0 beta 1 for OS X 10.9.2 | something else

  2. symlinking rst2html5 as rst2html helps sometimes if you have stuff expecting to call rst2html instead of rst2html5. good place to put that symlink is in ~/bin. Ensure that path is included in $PATH.
    ln -s /usr/local/bin/rst2html5 ~/bin/rst2html

  3. The following might be needed in your ~/.bash_profile
    # Setting for the new UTF-8 terminal support in Lion or Mavericks
    export LC_CTYPE=en_US.UTF-8
    export LC_ALL=en_US.UTF-8

    # Ensure user-installed binaries take precedence
    export PATH=/usr/local/sbin:$PATH

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s