Skip to content

Instantly share code, notes, and snippets.

@martron
martron / install_librets
Created April 9, 2015 15:20
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
bounds = new google.maps.LatLngBounds()
for marker in @markers
bounds.extend(marker.getPosition())
@map.fitBounds(bounds)