Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to run on UNIX/Mac systems #9

Open
davidhooey opened this issue Sep 6, 2013 · 4 comments
Open

Fails to run on UNIX/Mac systems #9

davidhooey opened this issue Sep 6, 2013 · 4 comments

Comments

@davidhooey
Copy link

It would be awesome if it would work on UNIX systems. I hacked it to work on my Mac with the Oracle Instant Client (11.2.0.3).

Check out the hack here.

davidhooey@f483d71

Basically four things that needed to be done.

  1. Set the DYLD_LIBRARY_PATH environment variable to be system wide.
$ launchctl setenv DYLD_LIBRARY_PATH $DYLD_LIBRARY_PATH 
  1. Add the Instant Client to the PATH variable so Sublime can see it.
  2. Change sqlplus.exe to sqlplus.
  3. For some reason the USER_ERRORS query was failing. I should investigate this further but for now I removed this one query.

Also, Easy Connect needs to be used or Sublime will need to know how to get to the tnsnames.ora file. My build command file looks as follows.

{
    "target": "oracle_exec",
    "selector": "source.plsql.oracle",
    "variants":
    [
        {
            "name": "hooey-davidh",
            "dsn": "davidh/oracle@//hooey.mydomain.net/orcl"
        }
    ]
}

Thanks!

@bizoo
Copy link
Owner

bizoo commented Oct 7, 2013

Sorry for the late answer.

I only use Oracle on a Windows box, so I've no idea what to do on other OS to make it works.
But doesn't the point 1 and 2 be addressed from outside ST ? Or don't you have to do this for every application that use Oracle client ?

@davidhooey
Copy link
Author

Yes, that is correct! Points 1 and 2 are configuration steps for the Oracle Instant Client.

@bizoo
Copy link
Owner

bizoo commented Oct 7, 2013

Thanks for your quick reply.
So basically the only thing to change is the sqlplus binary name ?
And add the configuration steps to the readme.

@davidhooey
Copy link
Author

Yes, however there is still the issue with the USER_ERRORS which I have not figured out yet. I can test some more and see if I can figure it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants