Uninstalling freetds from OS X Mavericks

Does anyone know how to uninstall freetds from OS X? I have installed it from source by following instructions:

tar zxvf freetds-stable.tgz   
cd freetds-'0.91'   
./configure --prefix=/usr/local   
make  
sudo make install 

gem install tiny_tds -- --with-freetds-include=/usr/local/include --with-freetds-lib=/usr/local/lib --with-iconv-include=/usr/local/Cellar/libiconv/1.14/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib

My question is, what are the steps to uninstall this software?


I was able to successfully uninstall freetds and tiny_tds gem.

first I uninstalled tiny_tds gem as below:

 gem uninstall tiny_tds

To uninstall freetds follow the instructions to configure and build the freetds before running make uninstall.(otherwise it will give this error: make: *** No rule to make target `uninstall'. Stop. )

cd freetds-'0.91'  
./configure --preifx=/usr/local   
make
sudo make uninstall
sudo make clean

You will have to remove freetds.conf file manually as below:

sudo rm /usr/local/etc/freetds.conf

To ensure you have successfully uninstalled freetds run the following:

tsql -C

It should not report freetds details.


The gem package is easy to reverse:

gem uninstall tiny_td

You could run gem cleanup to check for older versions of that package, but if you just installed it once and never updated, that isn't going to do anything further.

I've never used FreeTDS but if you're lucky this should undo what you've done : and go back to where you ran make install the first time then run make uninstall or make -n uninstall

If you're not lucky you'll have to do it manually (delete the files related to FreeTDS) which shouldn't be too hard, since you installed them all in to /usr/local - you could navigate there in Finder (command + G) and paste in that path).