Coder Social home page Coder Social logo

Cannot build project in Cygwin about odpi HOT 9 CLOSED

oracle avatar oracle commented on August 15, 2024
Cannot build project in Cygwin

from odpi.

Comments (9)

kubo avatar kubo commented on August 15, 2024 1

Replacing this line with #if defined _WIN32 || defined __CYGWIN__ will fix this issue.
Cygwin compiler doesn't define _WIN32.

from odpi.

anthony-tuininga avatar anthony-tuininga commented on August 15, 2024

The error "no such file or directory" suggests that OCI.DLL cannot be found. Check your PATH environment variable again. Also, if you download and unpack the sqlplus package in the same directory, you can use it to test as well. If it runs, so will ODPI-C in the same configuration.

from odpi.

nskforward avatar nskforward commented on August 15, 2024

I double checked PATH environment variable. Also I downloaded sqlplus, sdk packages and copied unzipped files to C:\instant_client but I get the same error.
Do you have other suggestions?

from odpi.

anthony-tuininga avatar anthony-tuininga commented on August 15, 2024

Can you try it in a regular command prompt (ie not Cygwin)? It is something as simple as using a ";" instead of a ":" in your Cygwin PATH? Can you show the exact commands you are issuing and the exact output that you are receiving -- both for SQL*Plus and your application?

from odpi.

anthony-tuininga avatar anthony-tuininga commented on August 15, 2024

I have added the check, as suggested. Can you confirm that resolves the issue for you? Thanks.

from odpi.

nskforward avatar nskforward commented on August 15, 2024

Antony, I figured out that everything works fine in Windows 7, but I still have error the same error in Windows 10

I tried to follow your suggestion and copied sqlplus to the same directory as instant client. When I try to run sqlplus (with admin rights) from Windows CMD I get the following error:
error while loading shared libraries: MSVCR100.dll: cannot open shared object file: No

Do you have ideas why this file is missing and what I should install to have this file in the right place?

from odpi.

nskforward avatar nskforward commented on August 15, 2024

I have fixed this issue by installing additional Windows package from:
https://www.microsoft.com/en-us/download/details.aspx?id=14632

Now everything works fine in odpi under Cygwin

from odpi.

cjbj avatar cjbj commented on August 15, 2024

@nskforward did you test with or without the patch that @kubo suggested? This was committed in 2.0.0-beta.4

from odpi.

nskforward avatar nskforward commented on August 15, 2024

@cjbj
I tested it with the patch. I did not test it without the patch.

from odpi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.