Using Golang to connect to Oracle under Windows

Source: Internet
Author: User

The problem with Oracle SDK compilation is well solved under MacOS and Linux, because GCC and pkg-config are both self-bringing programs. However, there are no two programs under windows that need to be installed on your own. The advantage is that MSYS2 has encapsulated two programs, configured as follows: Install MSYS2 tutorial as follows, point me to view. After the installation is complete, use the

Pacman-s Mingw-w64-x86_64-toolchain

Note: The default for direct use of the pacman–s GCC installation is the Mysy version, which is not good. To use the above command to install to the C:\TOOLS\MSYS64\MINGW64 directory is not counted. Install the GCC program. The command to install the Pkg-config program is as follows:

Pacman-s Pkg-config

Two when the program is installed, it is automatically saved under the C:\TOOLS\MSYS64\USR directory. After installing Pkg-config, you need to configure the oci8.pc file, which is in the directory:

C:\Tools\msys64\usr\share\pkgconfig

For more information, please visit the personal blog, using Golang to connect Oracle under Windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.