CentOS installation Ocilib 4.2.1 (Linux)

Source: Internet
Author: User

Project to use Oracle, Windows Ocilib Good, today installed under Linux, compile always error, the last few lines are as follows:

Checking for ocilib install path .../usr/localls:cannot access *.html:no such file or Directoryls:cannot access *.css: No such file or directoryls:cannot access *.png:no such file or directorychecking for ocilib version ... v4.2.1 checking For ocilib Options ... import:linkage, charset = ANSI checking for Oracle home ... defined by environment:checking for Or Acle OCI Headers location ... configure:error:variable not set or unable to guess

Then search for the Configure file, and finally found that the header file of the Oracle OCI folder was not found;

And then to the Oracle official website Download Instantclient-sdk-linux is a toss, do not know what he smoked crazy, dead or alive can not download, download page Click to jump to the error page ~ ~ ~

Later on the Internet to find a download, fortunately, can be used (file size only 625KB), address: http://download.csdn.net/detail/lsxy117/5118691

But after the download decompression configure in the path actually does not have the configuration of the Include folder, and the blog, I wrote it (about 12,775th line):

      # Find out the Oracle public OCI headers path      if test "$ac _headers_path" = NO, then        if test "$ac _oracle_home"! = N O Then          test_include_path= $ac _oracle_home/rdbms/public          if test-d "$test _include_path" and then            Ac_headers_ Path= $test _include_path          else            test_include_path= $ac _oracle_home/rdbms/demo            if test-d "$test _include_ Path "; Then              ac_headers_path= $test _include_path            else              echo "line 12775, Lzpong add the Ac_headers_path to $ac _ Oracle_home/include, need to download Instantclient-sdk-linux-xx.xx.xx.zip to get includes file!!!! "              Ac_headers_path= $ac _oracle_home/include fi fi fi fi      

Because I have directly extracted the SDK's include folder to/usr/local/instantclient_12_1, so I wrote it directly:

Ac_headers_path= $ac _oracle_home/include

Then you configure the!!! of the environment variable

According to here (HTTP://LJHZZYX.BLOG.163.COM/BLOG/STATIC/3838031220107139322436/) configured, did not re-login did not work, thereupon directly executed the following:

Export Oracle_home=/usr/local/instantclient_12_1export path= $ORACLE _home: $PATHexport ld_library_path= $LD _library_ PATH: $ORACLE _homeexport tns_admin= $ORACLE _home/network/adminexport nls_lang= "Simplified Chinese_china". Zhs16gbk./configuremakemake Install

At this point, the ^_^ has been installed, there is no error oh,

lib files on/usr/local/lib

Header file in/usr/local/include

Well, you can use the Ocilib 4.2.1;

can also view his readme file, you can match some parameters make install

Website:http://www.ocilib.net

Github:https://github.com/vrogier/ocilib

PS: But this library seems to be compiled 32-bit, such as how to compile 64-bit, please know the classmates told me, thank you!

CentOS installation Ocilib 4.2.1 (Linux)

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.