gcc: error trying to exec 'cc1plus': execvp: そのようなファイルやディレクトリはありません
というエラーが出ました。
apt-get install g++
として、g++をインストールすれば解消できます。
cd /usr/local/src
wget http://www.unixodbc.org/unixODBC-2.2.14.tar.gz
wget http://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-stable.tgz
tar zxvf unixODBC-2.2.14.tar.gz
cd unixODBC-2.2.14
./configure --disable-gui
make
make install
cd ../
tar zxvf freetds-stable.tgz
cd freetds-0.82
./configure --with-unixodbc=/usr/local/src/unixODBC-2.2.14 --with-msdblib --with-libiconv-prefix=/usr/local/lib
make
make install
設定ファイルを編集
vi /usr/local/etc/odbc.ini
[ODBC Data Sources]
freetds = FreeTDS ODBC Driver
[freetds]
Driver = /usr/local/lib/libtdsodbc.so
Description = Microsoft SQL Server
Servername = sqlserver
Database = test_database
Port = 1433
Traceback (most recent call last):
File "./mconvert.py", line 3, in ?
import pyodbc
File "build/bdist.linux-i686/egg/pyodbc.py", line 7, in ?
File "build/bdist.linux-i686/egg/pyodbc.py", line 6, in __bootstrap__
ImportError: libodbc.so.1: cannot open shared object file: No such file or directory