[Reprint] The qt+odbc+ of the Kirin Gold Warehouse development environment configuration

Source: Internet
Author: User

First, The Spit Groove

Recently, due to the background of the project, it is necessary to build QT's system on the successful bidder to access the development environment of the People's Bank database by ODBC, which is usually used in Ubuntu extremely easy's characteristics.

In the case of looking for a large half-day and did not find the software source provided by Kirin, I found that it might be based on REHL6.4 depth customization, and simply replaced it with a set of 163 CentOS source, the result is to find a lot of

The installed packages are not very well-dependent, they are really drunk. There is no way only the source code compiled walk: (

Second, the installation of the People's Congress gold warehouse

In terms of overall thinking, the process of installing the NPC Kanakura is divided into two parts: first, choose the installation features, unzip the files, configuration files and environment variables, two, install the driver, install and start the service. In the above installation

Step completion, you can create a DB instance to complete the initialization activity.

The problem with my installation is in the process of executing root.sh. (The previous steps can be followed by the Kanakura database management system kingbasees V7 Quick Installation Guide, generally not a big problem)

From the error information to find the shell file, you can find that the corresponding environment variable is not assigned, resulting in the occurrence of this symbol in the path of $, and cannot find the directory, file and user name. How to solve the problem

is to add these variables in the file that holds the environment variables of the current user, and then modify the root.sh to ensure that the shell file gets the correct value.

The error is as follows:

[Email protected] install]# sh root.sh

Root.sh: Line: $/install/root.log: No file or directory

Root.sh: Line: $/install/root.log: No file or directory

Root.sh: Line: $/install/root.log: No file or directory

CP: Unable to get "$/uninstall/rmln.sh" File Status (STAT): No file or directory

Root.sh: Line No. 247: cd: $/install/startup-desktop/icons: No file or directory

Find: './hicolor ': No file or directory

Tee: $/install/root.log: No file or directory

ID: $: No such user

Chown: Invalid User: "$."

CHMOD: Unable to access "$/install/root.log": No file or directory

Complete.

After solving this problem, it is possible to encounter the problem that the dynamic link library cannot find, and according to its requirement, make a soft link to some existing libraries.

Iii. Configuring an ODBC data source

How to configure an ODBC data source can be referenced by the "Kingbasees system Installation" (the official manual). However, after configuring Odbc.ini with Odbcinst.ini two

File, you still need to configure the environment variables, Odbcini and Odbcsysini, to specify the location of the two configuration files. Otherwise, the following error may occur:

[Email protected] desktop]$ isql-v kingbase

[08001] [UnixODBC] Could not connect to the server

[08001] [UnixODBC] Could not connect to server;

[ISQL] Error:could not SQLConnect

Iv. compiling and installing QT 5.3.2

I used the winning Kylin version, the GCC version is 4.4.7 and does not include the g++ feature. To compile and install QT 5.3.2, use at least GCC 4.8.4 and have g++ functionality.

But GCC4.8.4 has moved to C + +, so the question is, how do I install the higher version of GCC?

GCC 4.8 Release Series changes, New Features, and FIXES:GCC now uses C + + as its implementation language.

This means the to build GCC from sources, and you'll need a C + + compiler that understands C + + 2003

Https://gcc.gnu.org/gcc-4.8/changes.html

You can install a lower version of GCC:)

And then you'll be happy to compile QT 5.3.2.

[Reprint] The qt+odbc+ of the Kirin Gold Warehouse development environment configuration

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.