有谁知道如何从MAC卸载freetds?我按照以下说明从源代码安装了它:
tar zxvf freetds-stable.tgz
cd freetds-'0.91'
./configure --prefix = / usr / local
使
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
我能够成功卸载freetds和tiny_tds gem。
首先我卸载了tiny_tds gem,如下所示:
gem uninstall tiny_tds
要卸载freetds,请按照说明在运行make uninstall之前配置和构建freetds。(否则会出现此错误:make:***没有规则可以使目标`uninstall'。停止。)
cd freetds-'0.91'
./configure --prefix=/usr/local
make
sudo make uninstall
sudo make clean
您必须手动删除freetds.conf文件,如下所示:
sudo rm /usr/local/etc/freetds.conf
要确保已成功卸载freetds,请运行以下命令:
tsql -C
它不应该报告freetds细节。
从您运行'sudo make install'的目录中:
sudo make uninstall
sudo rm /usr/local/etc/freetds.conf
应该这样做,但你必须单独卸载gem。祝好运。