Created
April 9, 2015 15:20
-
-
Save martron/0091a8379b37a85257f2 to your computer and use it in GitHub Desktop.
Installing libRETS on Ubuntu 14.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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