Remove the old unixODBC and install 2.3.2 unixODBC in redhat 6.3

I am trying to install msodbcsql v13 in redhat 6.3. It shows a dependency error for unixODBC (64 bit)> = 2.3.1 before installing msodbcsql.

I tried to execute the command below,

 odbcinst -j

It shows that unixODBC 2.3.2 is installed. I also tried in some other way,

yum provides /usr/lib64/odbcinst.so.2.0.0

The above command shows that ODBC version 2.2 is installed. Also, if I run a local yum installation, it shows the 32-bit version of unixODBC available on the machine.

To remove unixODBC, I tried the following commands. But it doesn’t work out.

yum remove unixODBC
yum erase unixODBC
rpm -e unixODBC*
rpm rpm -qa | grep unixODBC

I want to remove all unixODBC available in the machine. And reinstall the actual version that we need.

+4
source share
2

  • unixODBC (, unixODBC 2.2.11). Red Hat Enterprise Linux 5 6 : yum unixODBC. SUSE Linux Enterprise zypper unixODBC.
  • http://www.unixodbc.org. , . , unixODBC-2.3.0.tar.gz . UnixODBC-2.3.1 Microsoft ODBC Driver 11 SQL Server.
  • Linux : tar xvzf unixODBC-2.3.0.tar.gz.
  • unixODBC-2.3.0.
  • : CPPFLAGS = "- DSIZEOF_LONG_INT = 8" .
  • : CPPFLAGS.
  • : "./configure --prefix =/usr --libdir =/usr/lib64 --sysconfdir =/etc --enable-gui = no --enable- drivers = no --enable-iconv --with-iconv- char -enc = UTF8 --with-iconv-ucode-enc = UTF16LE" .
  • ( root) : .
  • ( root) : make install.

-

0

unixODBC, :

sudo yum remove unixODBC*

unixODBC, unixODBC-utf16.

:

curl -s https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/msprod.repo
sudo yum update
sudo yum info unixODBC*
sudo yum install unixODBC-utf16

. : SQL Server Linux.


, : Microsoft PHP SQL Server AMA Amazon Linux.

0

Source: https://habr.com/ru/post/1678531/


All Articles