Skip to content

Instantly share code, notes, and snippets.

@martron
Created April 9, 2015 15:20
Show Gist options
  • Save martron/0091a8379b37a85257f2 to your computer and use it in GitHub Desktop.
Save martron/0091a8379b37a85257f2 to your computer and use it in GitHub Desktop.
Installing libRETS on Ubuntu 14.04
# Installing librets in Ubuntu 14.04 can actually be fairly painless. Took me half an hour.
# I followed the instructions found at https://gist.github.com/sarkis/4472012 and made some modifications to keep it current.
cd ~/; mkdir src; cd src # or go to whatever folder you want to build source from
sudo apt-get update && sudo apt-get install build-essential
sudo apt-get install libexpat1-dev libcurl3-dev libboost-dev libboost-filesystem-dev antlr antlr3 libantlr-dev swig libboost-program-options-dev python-dev
git clone https://github.com/NationalAssociationOfRealtors/libRETS
cd libRETS
rbenv local 1.8.7-p371 # or whatever version you want to use
./autogen
./configure
make
sudo make install
# Afterward, if you want to get librets working for different ruby patchlevels you can just symlink librets_native.so:
cd ~/.rbenv/versions/1.8.7-p375/lib/ruby/1.8/x86_64-linux
ln -s /home/martron/.rbenv/versions/1.8.7-p371/lib/ruby/site_ruby/1.8/x86_64-linux/librets_native.so ./
# To test, just open irb:
require 'librets_native'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment